/* HackerNews-inspired styling for Keywatch */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    background-color: #f6f6ef;
    color: #000;
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f6f6ef;
}

/* Header */
.header {
    background-color: #ff6600;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 12pt;
}

.nav a {
    color: #000;
    text-decoration: none;
    margin: 0 4px;
}

.nav a:hover {
    text-decoration: underline;
}

/* Search bar */
.search-bar {
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.search-bar input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 10pt;
}

.hidden {
    display: none !important;
}

/* Main content */
.content {
    background-color: #f6f6ef;
    padding: 8px 0;
}

/* Item styling */
.item {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #e5e5e5;
    margin: 0 8px;
}

.item:hover {
    background-color: #f0f0f0;
}

.vote-section {
    width: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 8px;
}

.vote-btn {
    background: none;
    border: none;
    font-size: 12pt;
    color: #828282;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

.vote-btn:hover {
    color: #ff6600;
}

.vote-count {
    font-size: 8pt;
    color: #828282;
    margin-top: 2px;
}

.vote-score {
    font-size: 8pt;
    color: #000;
    margin: 2px 0;
}

.vote-btn.voted {
    color: #ff6600;
}

.vote-breakdown {
    color: #828282;
    font-size: 8pt;
}

.paper-summary {
    margin-top: 10px;
    font-size: 9pt;
    color: #333;
}

.item-content {
    flex: 1;
}

.item-title {
    margin-bottom: 2px;
}

.title-link {
    color: #000;
    text-decoration: none;
    font-size: 10pt;
    line-height: 1.2;
}

.title-link:visited {
    color: #828282;
}

.title-link:hover {
    text-decoration: underline;
}

.domain {
    color: #828282;
    font-size: 8pt;
    margin-left: 4px;
}

.item-meta {
    font-size: 8pt;
    color: #828282;
    margin-top: 2px;
}

.separator {
    margin: 0 4px;
}

.comment-link {
    color: #828282;
    text-decoration: none;
}

.comment-link:hover {
    text-decoration: underline;
}

/* Comments section */
.comments-section {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #e5e5e5;
}

.comment-form {
    margin-bottom: 12px;
}

.comment-form textarea {
    width: 100%;
    height: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 9pt;
    resize: vertical;
}

.comment-form-footer {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form input {
    padding: 4px;
    border: 1px solid #ccc;
    font-size: 9pt;
}

.comment-form button {
    padding: 4px 8px;
    background-color: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 9pt;
}

.comment-form button:hover {
    background-color: #e55a00;
}

.comment-list {
    margin-top: 8px;
}

.comment {
    margin-bottom: 8px;
    padding: 6px;
    background-color: #f9f9f9;
    border-left: 3px solid #ff6600;
}

.comment-header {
    font-size: 8pt;
    color: #828282;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 9pt;
    line-height: 1.3;
}

/* Footer */
.footer {
    background-color: #ff6600;
    padding: 8px;
    text-align: center;
    font-size: 8pt;
    color: #000;
    margin-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0;
    }
    
    .item {
        margin: 0 4px;
    }
    
    .vote-section {
        width: 30px;
    }
    
    .title-link {
        font-size: 9pt;
    }
    
    .comment-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-form input {
        margin-bottom: 6px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
}

.vote-btn.voted {
    color: #ff6600;
    font-weight: bold;
}

/* Error pages */
.error-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h2 {
    color: #ff6600;
    font-size: 2em;
    margin-bottom: 20px;
}

.error-page p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.error-page a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
}

.error-page a:hover {
    text-decoration: underline;
} 
