/* Custom styles for Papers Clone */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.code-snippet {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}

.notification-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-unread {
    background-color: #e3f2fd;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.thread-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
}

.vote-button {
    border: none;
    background: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
}

.vote-button:hover {
    color: #007bff;
}

.vote-button.active {
    color: #007bff;
}

.vote-count {
    font-weight: bold;
    margin: 0.25rem 0;
}

.github-integration {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.github-repo-link {
    color: #0969da;
    text-decoration: none;
}

.github-repo-link:hover {
    text-decoration: underline;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s;
}

.file-upload-area:hover {
    border-color: #007bff;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin: 0.125rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.comment-thread {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 1rem;
}

.comment-reply {
    margin-left: 2rem;
    border-left: 2px solid #f8f9fa;
    padding-left: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .vote-buttons {
        flex-direction: row;
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .vote-button {
        margin: 0 0.25rem;
    }

    .comment-reply {
        margin-left: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .code-snippet {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .github-integration {
        background-color: #2d3748;
        border-color: #4a5568;
    }
}