/**
 * Akademik Sayfası - Digital Library & Science Lab Teması
 * Prof. Dr. Mustafa Gerek
 */

/* ================================================
   1. PAGE BACKGROUND & SCIENTIFIC PATTERN
================================================ */
.akademik-page {
    background-color: #FDFBF7;
    position: relative;
    overflow-x: hidden;
}

.akademik-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Scientific Pattern: Stethoscope, Microscope, DNA, Flask */
    /* Increased stroke-opacity to 0.06 for better visibility */
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23800000' stroke-width='1.5' stroke-opacity='0.06'%3E%3C!-- Stethoscope --%3E%3Cpath d='M50,150 C50,200 110,200 110,150 V100 M80,200 V250 M80,260 Circle%20cx%3D%2780%27%20cy%3D%27270%27%20r%3D%2710%27' /%3E%3C!-- Flask --%3E%3Cpath d='M250,100 L250,140 L230,180 H270 L250,140' /%3E%3C!-- DNA --%3E%3Cpath d='M320,50 Q340,75 320,100 T320,150 T320,200' /%3E%3Cpath d='M340,50 Q320,75 340,100 T340,150 T340,200' /%3E%3C!-- Microscope --%3E%3Cpath d='M100,50 L100,100 L80,120 M100,90 L120,90 M100,100 L100,140 M90,140 H110' /%3E%3C!-- Random Molecules --%3E%3Ccircle cx='180' cy='80' r='5' /%3E%3Ccircle cx='200' cy='60' r='5' /%3E%3Ccircle cx='350' cy='250' r='8' /%3E%3Cline x1='180' y1='80' x2='200' y2='60' /%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* ================================================
   2. PAGE BANNER
================================================ */
.akademik-banner {
    position: relative;
    overflow: hidden;
}

/* ================================================
   3. MAIN LAYOUT
================================================ */
.akademik-main {
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}

.akademik-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* ================================================
   4. SIDEBAR - LAB PANEL STYLE
================================================ */
.akademik-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #800000 #f0e6d3;
}

.sidebar-module {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.sidebar-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sidebar-module h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e6d3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-module h3 i {
    color: #800000;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0e6d3;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fdfbf7;
    transition: all 0.3s ease;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #800000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.05);
}

/* Filter Group styling with colors */
.filter-group h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.filter-label:hover {
    background: #f8f9fa;
    color: #000;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #800000;
    cursor: pointer;
    border-radius: 4px;
}

/* Profile Buttons */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-btn i {
    font-size: 1.2rem;
}

.profile-btn.google-scholar {
    background: #E8F0FE;
    color: #1967D2;
}

.profile-btn.google-scholar:hover {
    background: #1967D2;
    color: #fff;
}

.profile-btn.researchgate {
    background: #E0F7F4;
    color: #00CCBB;
}

.profile-btn.researchgate:hover {
    background: #00CCBB;
    color: #fff;
}

.profile-btn.sciencedirect {
    background: #FFF3E0;
    color: #FF6D00;
}

.profile-btn.sciencedirect:hover {
    background: #FF6D00;
    color: #fff;
}

.profile-btn.pubmed {
    background: #E3F2FD;
    color: #1565C0;
}

.profile-btn.pubmed:hover {
    background: #1565C0;
    color: #fff;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: #fff;
    border: 1px solid #f0e6d3;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* ================================================
   5. CONTENT AREA
================================================ */
.content-header h2 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.content-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
}

.year-header {
    margin: 40px 0 20px;
    position: relative;
    padding-left: 20px;
}

.year-badge {
    display: inline-block;
    background: #2c3e50;
    /* Neutral dark for years */
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================================================
   6. PUBLICATION CARDS - COLOR SYSTEM
================================================ */
.publication-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Minimal base border */
    border-left: 5px solid #ccc;
    /* Default fallback */
    display: flex !important;
    gap: 25px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pub-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pub-journal {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}

.pub-category-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e0d6c8;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* --- COLOR THEMES BASED ON DATA CATEGORY --- */

/* 1. KANSER - BORDO */
.publication-card[data-category="kanser"] {
    border-left-color: #800000;
}

.publication-card[data-category="kanser"] .pub-category-tag {
    background: #ffe3e3;
    color: #800000;
}

.publication-card[data-category="kanser"] .btn-view:hover {
    background: #800000;
    color: #fff;
    border-color: #800000;
}

.publication-card[data-category="kanser"]:hover {
    border-color: rgba(128, 0, 0, 0.2);
}

/* 2. UYKU - NAVY BLUE */
.publication-card[data-category="uyku"] {
    border-left-color: #1e3799;
}

.publication-card[data-category="uyku"] .pub-category-tag {
    background: #e8f0fe;
    color: #1e3799;
}

.publication-card[data-category="uyku"] .btn-view:hover {
    background: #1e3799;
    color: #fff;
    border-color: #1e3799;
}

.publication-card[data-category="uyku"]:hover {
    border-color: rgba(30, 55, 153, 0.2);
}

/* 3. RINOPLASTI - TEAL */
.publication-card[data-category="rinoplasti"] {
    border-left-color: #008B8B;
}

.publication-card[data-category="rinoplasti"] .pub-category-tag {
    background: #e0f2f1;
    color: #00695c;
}

.publication-card[data-category="rinoplasti"] .btn-view:hover {
    background: #008B8B;
    color: #fff;
    border-color: #008B8B;
}

.publication-card[data-category="rinoplasti"]:hover {
    border-color: rgba(0, 139, 139, 0.2);
}

/* 4. SES - PURPLE */
.publication-card[data-category="ses"] {
    border-left-color: #6a0572;
}

.publication-card[data-category="ses"] .pub-category-tag {
    background: #f3e5f5;
    color: #6a0572;
}

.publication-card[data-category="ses"] .btn-view:hover {
    background: #6a0572;
    color: #fff;
    border-color: #6a0572;
}

.publication-card[data-category="ses"]:hover {
    border-color: rgba(106, 5, 114, 0.2);
}

/* 5. DIGER / GENEL - GREY */
.publication-card[data-category="diger"] {
    border-left-color: #576574;
}

.publication-card[data-category="diger"] .pub-category-tag {
    background: #eceff1;
    color: #455a64;
}

.publication-card[data-category="diger"] .btn-view:hover {
    background: #576574;
    color: #fff;
    border-color: #576574;
}

/* ================================================
   7. RESPONSIVE
================================================ */
@media (max-width: 1024px) {
    .akademik-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .akademik-layout {
        grid-template-columns: 1fr;
    }

    .akademik-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-height: none;
        /* Remove scroll limitation on mobile */
    }

    .sidebar-module {
        height: 100%;
    }
}

@media (max-width: 600px) {
    .akademik-main {
        padding: 40px 0;
    }

    .akademik-sidebar {
        grid-template-columns: 1fr;
    }

    .publication-card {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .pub-action {
        width: 100%;
    }

    .btn-view {
        width: 100%;
        justify-content: center;
        background: #f8f9fa;
        /* More visible on mobile */
    }

    .akademik-page::before {
        background-size: 250px 250px;
        /* Smaller pattern for mobile */
    }
}