/* Research Tracker Custom Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Paper Detail Page Styles */
.paper-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.paper-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.paper-info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.paper-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.topic-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--success-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.citation-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.citation-box code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.paper-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    margin-right: 0.5rem;
}

.paper-section {
    margin-bottom: 2rem;
}

.section-header {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header h5 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.abstract-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: #495057;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.info-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.info-list li:last-child {
    border-bottom: none;
}

.action-buttons {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.btn-action {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.related-papers-placeholder {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px dashed #90caf9;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .paper-detail-header h1 {
        font-size: 2rem;
    }
    
    .author-avatar,
    .topic-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-action {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
}

.navbar {
    box-shadow: var(--box-shadow);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.paper-card {
    margin-bottom: 1.5rem;
}

.paper-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.paper-card .card-title a {
    color: var(--dark-text);
    text-decoration: none;
}

.paper-card .card-title a:hover {
    color: var(--secondary-color);
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges and Tags */
.journal-badge {
    background: var(--secondary-color) !important;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
}

.topic-tag {
    background: var(--light-bg) !important;
    color: var(--dark-text) !important;
    border: 1px solid #dee2e6;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    margin: 0.2rem;
    display: inline-block;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select:hover {
    border-color: var(--secondary-color);
}

/* Sort indicator */
.form-select[name="sort"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6-4 6 4M2 11l6 4 6-4'/%3e%3c/svg%3e");
}

/* Authors */
.authors-list {
    color: #6c757d;
    font-size: 0.9rem;
}

.authors-list i {
    color: var(--secondary-color);
}

/* Date stamps */
.date-stamp {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background: var(--light-bg);
    color: #6c757d;
    margin-top: 3rem;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .paper-card .card-title {
        font-size: 1rem;
    }
}

/* Animation for new content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Update button special styling */
.btn-update {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-update:hover {
    background: #229954;
    border-color: #229954;
    color: white;
}