/* Academic Search Interface Styles */
:root {
    --primary-color: #003366; /* KKU Koyu Mavi */
    --secondary-color: #E30613; /* KKU Kırmızı */
    --accent-color: #FF6B6B;
    --text-color: #333;
    --bg-color: #f5f5f5;
}

/* Animated Background SVG */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-svg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

    .shape:nth-child(1) {
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .shape:nth-child(2) {
        top: 20%;
        right: 15%;
        animation-delay: 2s;
    }

    .shape:nth-child(3) {
        bottom: 15%;
        left: 20%;
        animation-delay: 4s;
    }

    .shape:nth-child(4) {
        bottom: 25%;
        right: 10%;
        animation-delay: 6s;
    }

.pattern-shapes {
    opacity: 0.6;
}

.wave-patterns {
    opacity: 0.4;
}

.wave {
    animation-timing-function: linear;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Container positioning */
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-background {
        opacity: 0.5;
    }

    .shape {
        opacity: 0.6 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animated-background * {
        animation: none !important;
    }
}

/* Header Styles */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    animation: fadeInDown 0.8s ease-out;
}

    .page-header::before {
        display: none;
    }

    .page-header::after {
        display: none;
    }

    .page-header .container {
        position: relative;
        z-index: 2;
    }

    .page-header .row {
        align-items: center;
    }

    .page-header img {
        max-height: 60px;
        transition: transform 0.3s ease;
    }

        .page-header img:hover {
            transform: scale(1.05);
        }

    .page-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 600;
        text-shadow: none;
        position: relative;
        padding-left: 20px;
        color: white;
    }

        .page-header h1::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: var(--secondary-color);
            border-radius: 2px;
        }

@media (max-width: 576px) {
    .page-header {
        padding: 10px 0;
    }

        .page-header h1 {
            font-size: 1.4rem;
        }
}

.main-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   PREMIUM SEARCH DESIGN
   ============================================ */

.premium-search-container {
    margin: 40px auto 50px;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
    animation: fadeInUp 0.8s ease-out;
}

.premium-search-wrapper {
    position: relative;
}

/* Ana Arama Kutusu */
.premium-search-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e7ff;
    border-radius: 20px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

    .premium-search-box:focus-within {
        border-color: #E30613;
        box-shadow: 0 15px 50px rgba(227, 6, 19, 0.15), 0 5px 15px rgba(227, 6, 19, 0.1);
        transform: translateY(-2px);
    }

.search-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background: linear-gradient(135deg, #E30613 0%, #c00510 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
}

.premium-search-box:focus-within .search-icon-container {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.search-main-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.premium-search-box:focus-within .search-main-icon {
    transform: scale(1.1);
}

.search-input-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.premium-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    color: #1e293b;
    padding: 15px 0;
    font-weight: 400;
    transition: all 0.3s ease;
}

    .premium-search-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .premium-search-input:focus::placeholder {
        color: #cbd5e1;
    }

/* Arama Önerileri */
.search-suggestions-wrapper {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 2005;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* Öneriler kutusunu premium-search-wrapper içinde premium-search-box ile aynı genişlikte yap */
.premium-search-wrapper .search-suggestions-wrapper {
    width: 100%;
    left: 0;
    right: 0;
}

    .search-suggestions-wrapper.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    flex-wrap: nowrap;
}

.suggestions-title {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
}

    .suggestions-title i {
        color: #E30613;
    }

.suggestions-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

    .suggestions-close:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

.suggestions-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    padding-top: 15px;
}

.suggestion-item {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

    .suggestion-item:hover {
        background: #f1f5f9;
        transform: translateX(5px);
    }

    .suggestion-item i {
        color: #E30613;
        font-size: 0.9rem;
        width: 20px;
    }

    .suggestion-item span {
        color: #334155;
        font-size: 0.95rem;
    }

/* Arama Aksiyonları */
.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.search-filter-btn,
.search-clear-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .search-filter-btn:hover {
        background: #E30613;
        color: white;
        transform: scale(1.05);
    }

    .search-filter-btn.active {
        background: #E30613;
        color: white;
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    }

.search-clear-btn {
    display: flex;
}

    .search-clear-btn:hover {
        background: #ef4444;
        color: white;
        transform: scale(1.05);
    }

.search-loading-indicator {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f1f5f9;
    border-top-color: #E30613;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Premium Arama Butonu */
.premium-search-btn {
    min-width: 140px;
    height: 58px;
    background: linear-gradient(135deg, #E30613 0%, #c00510 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

    .premium-search-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .premium-search-btn:hover::before {
        left: 100%;
    }

    .premium-search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(227, 6, 19, 0.4);
        background: linear-gradient(135deg, #c00510 0%, #a0040d 100%);
    }

    .premium-search-btn:active {
        transform: translateY(0);
    }

.btn-text {
    transition: transform 0.3s ease;
}

.premium-search-btn:hover .btn-text {
    transform: translateX(-3px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.premium-search-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Hızlı Filtreler */
.quick-filters {
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

    .filter-tag:hover {
        border-color: #E30613;
        color: #E30613;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.15);
    }

    .filter-tag.active {
        background: linear-gradient(135deg, #E30613 0%, #c00510 100%);
        border-color: #E30613;
        color: white;
        box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    }

    .filter-tag i {
        font-size: 0.85rem;
    }

/* Gelişmiş Filtreler Panel */
.advanced-filters-panel {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    max-height: 600px;
    overflow: hidden;
}

    .advanced-filters-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

    .filters-header h4 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .filters-header h4 i {
            color: #E30613;
        }

.close-filters {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

    .close-filters:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

.filters-content {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .filter-group label {
        font-weight: 600;
        color: #475569;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .filter-group label i {
            color: #E30613;
            font-size: 0.85rem;
        }

.filter-select,
.year-input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #334155;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

    .filter-select:focus,
    .year-input:focus {
        border-color: #E30613;
        box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    }

.year-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .year-range span {
        color: #64748b;
        font-weight: 500;
    }

.year-input {
    flex: 1;
}

/* Tarih Filtresi - Tek Satır Düzeni */
.filter-group-date {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.date-filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .date-filter-row .date-range-picker {
        flex: 1;
        min-width: 300px;
        margin: 0;
    }

    .date-filter-row .quick-date-filters {
        flex: 1;
        min-width: 200px;
        margin: 0;
        justify-content: flex-start;
    }

/* Hızlı Tarih Filtreleri - Minimal Tasarım */
.quick-date-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    padding: 0;
}

.quick-date-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

    .quick-date-btn span {
        display: block;
    }

    .quick-date-btn:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #475569;
    }

    .quick-date-btn.active {
        background: #E30613;
        border-color: #E30613;
        color: white;
        font-weight: 600;
    }

        .quick-date-btn.active::before {
            content: '';
            position: absolute;
            top: 2px;
            right: 2px;
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
        }

/* Tarih Seçiciler */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.date-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.3s ease;
}

    .date-input-wrapper:hover {
        border-color: #cbd5e1;
    }

    .date-input-wrapper:focus-within {
        border-color: #E30613;
        box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    }

.date-icon {
    color: #64748b;
    font-size: 0.9rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.date-input-wrapper:focus-within .date-icon {
    color: #E30613;
}

.date-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #334155;
    background: transparent;
}

    .date-input::placeholder {
        color: #94a3b8;
    }

.date-separator {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.date-range-picker:focus-within .date-separator {
    background: #E30613;
    color: white;
    transform: scale(1.05);
}

.filters-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-reset-filters,
.btn-apply-filters {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-reset-filters {
    background: #e2e8f0;
    color: #64748b;
}

    .btn-reset-filters:hover {
        background: #cbd5e1;
        color: #475569;
    }

.btn-apply-filters {
    background: linear-gradient(135deg, #E30613 0%, #c00510 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

    .btn-apply-filters:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
    }

/* ============================================
   ARAMA SONUÇLARI - KATEGORİ KARTLARI
   ============================================ */

.search-results-container {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.results-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .results-title i {
        color: #E30613;
        font-size: 1.3rem;
    }

.close-results-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .close-results-btn:hover {
        background: #E30613;
        color: white;
        transform: rotate(90deg);
    }

.search-results-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}

/* Kategori Kartı */
.result-category-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

    .result-category-card:hover {
        border-color: var(--category-color, #E30613);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.category-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--category-bg, rgba(227, 6, 19, 0.05));
    border-bottom: 2px solid var(--category-color, #E30613);
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--category-color, #E30613) 0%, var(--category-color, #E30613) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-title {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.category-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.category-items {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: visible;
    width: 100%;
    box-sizing: border-box;
}

/* Sonuç Item Kartı */
.result-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

    .result-item-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--category-color, #E30613);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .result-item-card:hover {
        background: white;
        border-color: var(--category-color, #E30613);
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

        .result-item-card:hover::before {
            transform: scaleY(1);
        }

.result-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--category-color, #E30613) 0%, var(--category-color, #E30613) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item-card:hover .result-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Personel önerileri için profil görseli */
.suggestion-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.suggestion-icon-wrapper {
    padding: 0;
    background: transparent;
}

.suggestion-icon-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--category-color, #E30613) 0%, var(--category-color, #E30613) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
}

/* Ad soyadın ilk harfleri için placeholder */
.suggestion-initials-wrapper,
.suggestion-initials-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--category-color, #E30613) 0%, var(--category-color, #E30613) 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
}

.suggestion-initials-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.initials-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.result-card-content {
    flex: 1;
    min-width: 0;
}

.result-card-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

    .meta-item i {
        font-size: 0.75rem;
        color: var(--category-color, #E30613);
    }

.result-card-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.result-item-card:hover .result-card-arrow {
    color: var(--category-color, #E30613);
    transform: translateX(4px);
}

/* Sonuç Bulunamadı */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

    .no-results i {
        font-size: 4rem;
        color: #cbd5e1;
        margin-bottom: 20px;
        display: block;
    }

    .no-results h4 {
        margin: 0 0 12px 0;
        font-size: 1.3rem;
        color: #475569;
        font-weight: 600;
    }

    .no-results p {
        margin: 0;
        color: #94a3b8;
        font-size: 0.95rem;
    }

/* Öneri bulunamadı mesajı */
.no-suggestions {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    margin: 16px;
}

.no-suggestions-icon {
    margin-bottom: 16px;
}

.no-suggestions-icon i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
}

.no-suggestions h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #475569;
    font-weight: 600;
}

.no-suggestions p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   BİRİMLERE GÖRE ÖĞRENCİ CİNSİYET DAĞILIMI
   ============================================ */

.unit-gender-distribution-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

    .unit-gender-distribution-section .trend-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        gap: 2rem;
    }

    .unit-gender-distribution-section .trend-title-section {
        flex-shrink: 0;
        min-width: 200px;
    }

    .unit-gender-distribution-section .trend-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1a202c;
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .unit-gender-distribution-section .trend-title i {
            color: #4299e1;
            font-size: 1.25rem;
        }

    .unit-gender-distribution-section .trend-subtitle {
        font-size: 0.875rem;
        color: #718096;
        margin: 0;
    }

.section-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chart-view-select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

    .chart-view-select:hover {
        border-color: #E30613;
        color: #E30613;
    }

    .chart-view-select:focus {
        border-color: #E30613;
        box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    }

.gender-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 10;
}

    .chart-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f1f5f9;
        border-top-color: #E30613;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-bottom: 15px;
    }

    .chart-loading p {
        margin: 0;
        color: #64748b;
        font-size: 0.95rem;
        font-weight: 500;
    }

/* Bölüm Detay Grafikleri */
#departmentChartsContainer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.department-chart-wrapper {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

    .department-chart-wrapper::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #4299e1 0%, #3182ce 100%);
        z-index: 1;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #4299e1;
    position: relative;
    z-index: 2;
}

.department-chart-title-section {
    flex: 1;
}

.department-chart-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .department-chart-title i {
        color: #4299e1;
        font-size: 1.2rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.close-department-chart {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .close-department-chart:hover {
        background: #E30613;
        border-color: #E30613;
        color: white;
        transform: rotate(90deg);
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    }

    .close-department-chart i {
        font-size: 1rem;
    }

.department-chart-container {
    width: 100%;
    min-height: 400px;
    padding: 20px;
}

.department-chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

    .department-chart-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f1f5f9;
        border-top-color: #4299e1;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-bottom: 15px;
    }

    .department-chart-loading p {
        margin: 0;
        color: #64748b;
        font-size: 0.95rem;
        font-weight: 500;
    }

/* Program Detay Grafikleri */
.program-chart-wrapper {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

    .program-chart-wrapper::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #4299e1 0%, #3182ce 100%);
        z-index: 1;
    }

.program-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #4299e1;
    position: relative;
    z-index: 2;
}

.program-chart-title-section {
    flex: 1;
}

.program-chart-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .program-chart-title i {
        color: #4299e1;
        font-size: 1.2rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.close-program-chart {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .close-program-chart:hover {
        background: #E30613;
        border-color: #E30613;
        color: white;
        transform: rotate(90deg);
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    }

    .close-program-chart i {
        font-size: 1rem;
    }

.program-chart-container {
    width: 100%;
    min-height: 400px;
    padding: 20px;
}

.program-chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

    .program-chart-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f1f5f9;
        border-top-color: #4299e1;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-bottom: 15px;
    }

    .program-chart-loading p {
        margin: 0;
        color: #64748b;
        font-size: 0.95rem;
        font-weight: 500;
    }

/* Responsive Tasarım */
@media (max-width: 992px) {
    .premium-search-box {
        flex-wrap: wrap;
        padding: 12px;
    }

    .search-icon-container {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }

    .premium-search-input {
        font-size: 1rem;
        padding: 12px 0;
    }

    .premium-search-btn {
        min-width: 120px;
        height: 50px;
        font-size: 0.95rem;
        margin-top: 10px;
        width: 100%;
    }

    .search-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        margin-right: 0;
    }

    .filters-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .premium-search-container {
        margin: 30px auto 40px;
        padding: 0 15px;
    }

    .premium-search-box {
        border-radius: 16px;
        padding: 10px;
    }

    .search-icon-container {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .search-main-icon {
        font-size: 1.1rem;
    }

    .premium-search-input {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .premium-search-btn {
        min-width: 100px;
        height: 45px;
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .filter-tags {
        gap: 8px;
        padding: 0 5px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .suggestions-header {
        padding: 12px 15px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .quick-filters {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .filters-content {
        padding: 20px;
    }

    .search-results-container {
        padding: 0 15px;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .results-title {
        font-size: 1.2rem;
    }

    .category-card-header {
        padding: 16px;
    }

    .category-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-items {
        padding: 12px;
        gap: 10px;
    }

    .result-item-card {
        padding: 12px;
        gap: 12px;
    }

    .result-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .result-card-title {
        font-size: 0.95rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .unit-gender-distribution-section {
        padding: 1rem;
    }

        .unit-gender-distribution-section .trend-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .unit-gender-distribution-section .trend-title {
            font-size: 1.25rem;
        }

    .gender-chart-wrapper {
        padding: 0.75rem;
        min-height: 400px;
    }

    #unitGenderChart {
        height: 400px !important;
    }

    .department-chart-wrapper {
        padding: 0;
    }

    .department-chart-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .department-chart-title {
        font-size: 1rem;
    }

    .department-chart-container {
        padding: 15px;
        min-height: 350px;
    }

    .close-department-chart {
        align-self: flex-end;
    }

    .program-chart-wrapper {
        margin-left: 0;
    }

    .program-chart-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .program-chart-title {
        font-size: 0.95rem;
    }

    .program-chart-container {
        padding: 15px;
        min-height: 350px;
    }

    .close-program-chart {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .premium-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-icon-container {
        width: 100%;
        height: 45px;
        margin-right: 0;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .premium-search-input {
        text-align: center;
    }

    .premium-search-btn {
        width: 100%;
        margin-top: 10px;
    }

    .search-actions {
        justify-content: space-between;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
