/**
 * GAU EBS (Eğitim Bilgi Sistemi / Bologna Bilgi Paketi) Portal CSS
 * Styled using GAU's authentic institutional design system from index.php & public portal
 */

:root {
    --gau-navy: #1c458b;
    --gau-navy-dark: #0f2a58;
    --gau-navy-light: #2563eb;
    --gau-gold: #d97706;
    --gau-gold-light: #f59e0b;
    --gau-bg: #f8fafc;
    --gau-card-bg: #ffffff;
    --gau-text: #1e293b;
    --gau-text-muted: #64748b;
    --gau-border: rgba(28, 69, 139, 0.1);
    --gau-shadow: 0 4px 20px -2px rgba(15, 42, 88, 0.08);
    --gau-shadow-hover: 0 10px 30px -4px rgba(15, 42, 88, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--gau-bg);
    color: var(--gau-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gau-navy);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--gau-gold);
}

.ebs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TOP NAVBAR (GAU INSTITUTIONAL STYLE)
   ============================================================ */
.ebs-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gau-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ebs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.ebs-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ebs-brand-logo {
    height: 48px;
    object-fit: contain;
}

.ebs-brand-divider {
    width: 1.5px;
    height: 34px;
    background: rgba(28, 69, 139, 0.15);
}

.ebs-brand-text {
    display: flex;
    flex-direction: column;
}

.ebs-brand-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gau-navy);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.ebs-brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--gau-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ebs-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ebs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.ebs-btn-primary {
    background: var(--gau-navy);
    color: #ffffff;
}

.ebs-btn-primary:hover {
    background: var(--gau-navy-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 69, 139, 0.25);
}

.ebs-btn-outline {
    background: transparent;
    color: var(--gau-navy);
    border: 1.5px solid rgba(28, 69, 139, 0.2);
}

.ebs-btn-outline:hover {
    background: rgba(28, 69, 139, 0.05);
    color: var(--gau-navy);
    border-color: var(--gau-navy);
}

.ebs-btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.ebs-btn-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* ============================================================
   HERO SEARCH SECTION (INSPIRED BY GAU INDEX)
   ============================================================ */
.ebs-hero {
    background: linear-gradient(135deg, #0f2a58 0%, #1c458b 55%, #1e40af 100%);
    color: #ffffff;
    padding: 60px 0 75px;
    position: relative;
    overflow: hidden;
}

.ebs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ebs-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ebs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
    margin-bottom: 20px;
}

.ebs-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.ebs-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.5;
}

/* SEARCH INPUT BAR */
.ebs-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
}

.ebs-search-icon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gau-navy);
    font-size: 18px;
}

.ebs-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--gau-text);
    padding: 10px 8px;
    font-family: inherit;
}

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

.ebs-search-btn {
    background: var(--gau-navy);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ebs-search-btn:hover {
    background: var(--gau-navy-dark);
}

/* ============================================================
   DEGREE CARDS (4 ACADEMIC LEVELS)
   ============================================================ */
.ebs-degrees-section {
    margin-top: -35px;
    position: relative;
    z-index: 10;
    margin-bottom: 45px;
}

.ebs-degrees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ebs-degree-card {
    background: #ffffff;
    border: 1.5px solid var(--gau-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--gau-shadow);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ebs-degree-card:hover, .ebs-degree-card.active {
    transform: translateY(-4px);
    border-color: var(--gau-navy);
    box-shadow: var(--gau-shadow-hover);
}

.ebs-degree-card.active {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border-color: var(--gau-navy-light);
    border-width: 2px;
}

.ebs-degree-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(28, 69, 139, 0.08);
    color: var(--gau-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.ebs-degree-card:hover .ebs-degree-icon,
.ebs-degree-card.active .ebs-degree-icon {
    background: var(--gau-navy);
    color: #ffffff;
}

.ebs-degree-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gau-navy);
    margin-bottom: 4px;
}

.ebs-degree-tyyc {
    font-size: 11px;
    font-weight: 600;
    color: var(--gau-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ebs-degree-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--gau-border);
    font-size: 12px;
    color: var(--gau-text-muted);
    font-weight: 500;
}

/* ============================================================
   ACCREDITATION BADGES & PILLS (YÖK & YÖDAK)
   ============================================================ */
.badge-yok {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-yodak {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-intl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fdf4ff;
    color: #86198f;
    border: 1px solid #f5d0fe;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* FILTER BAR */
.ebs-filter-bar {
    background: #ffffff;
    border: 1px solid var(--gau-border);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--gau-shadow);
}

.ebs-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ebs-filter-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gau-navy);
}

.ebs-filter-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gau-text-muted);
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.ebs-filter-pill:hover {
    background: #e2e8f0;
    color: var(--gau-navy);
}

.ebs-filter-pill.active {
    background: var(--gau-navy);
    color: #ffffff;
}

/* ============================================================
   PROGRAM CARDS & TABLE
   ============================================================ */
.ebs-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.ebs-program-card {
    background: #ffffff;
    border: 1px solid var(--gau-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--gau-shadow);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ebs-program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gau-shadow-hover);
    border-color: var(--gau-navy-light);
}

.ebs-program-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ebs-program-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ebs-program-code {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(28, 69, 139, 0.08);
    color: var(--gau-navy);
    border-radius: 6px;
}

.ebs-program-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gau-navy);
    line-height: 1.35;
    margin-bottom: 8px;
}

.ebs-program-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--gau-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ebs-program-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
    margin-top: auto;
}

.ebs-meta-item {
    display: flex;
    flex-direction: column;
}

.ebs-meta-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gau-text-muted);
}

.ebs-meta-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--gau-navy);
}

.ebs-program-actions {
    display: flex;
    gap: 10px;
}

/* ============================================================
   7-TAB BOLOGNA DETAIL PAGE
   ============================================================ */
.ebs-detail-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gau-border);
    padding: 36px 0 24px;
    margin-bottom: 30px;
}

.ebs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gau-text-muted);
    margin-bottom: 14px;
}

.ebs-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.ebs-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gau-navy);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.ebs-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* 7 BOLOGNA TABS */
.ebs-tabs-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 2px solid var(--gau-border);
    margin-bottom: 30px;
    padding-bottom: 2px;
}

.ebs-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    background: transparent;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gau-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -4px;
}

.ebs-tab-btn:hover {
    color: var(--gau-navy);
    background: rgba(28, 69, 139, 0.04);
}

.ebs-tab-btn.active {
    color: var(--gau-navy);
    background: #ffffff;
    border-bottom-color: var(--gau-gold);
    font-weight: 700;
}

.ebs-tab-content {
    display: none;
}

.ebs-tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* GENERAL INFO KEY-VALUE TABLE */
.ebs-info-table {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--gau-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
}

.ebs-info-table tr:nth-child(even) {
    background: #f8fafc;
}

.ebs-info-table th {
    width: 25%;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gau-navy);
    text-align: left;
    border-bottom: 1px solid var(--gau-border);
}

.ebs-info-table td {
    padding: 14px 20px;
    font-size: 13.5px;
    color: var(--gau-text);
    border-bottom: 1px solid var(--gau-border);
    line-height: 1.6;
}

/* CURRICULUM (MÜFREDAT) SEMESTER TABLE */
.ebs-curriculum-semester {
    background: #ffffff;
    border: 1.5px solid var(--gau-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--gau-shadow);
}

.ebs-semester-header {
    background: linear-gradient(90deg, #1c458b 0%, #2563eb 100%);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ebs-semester-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ebs-semester-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ebs-curriculum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ebs-curriculum-table th {
    background: #f1f5f9;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--gau-navy);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gau-border);
    text-align: left;
}

.ebs-curriculum-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gau-border);
    color: var(--gau-text);
}

.ebs-curriculum-table tr:hover {
    background: #f8fafc;
}

.course-link {
    font-weight: 700;
    color: var(--gau-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-link:hover {
    color: var(--gau-gold);
}

/* FOOTER */
.ebs-footer {
    background: var(--gau-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    font-size: 13px;
    margin-top: 60px;
    border-top: 3px solid var(--gau-gold);
}

.ebs-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ebs-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 15px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .ebs-degrees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ebs-programs-grid {
        grid-template-columns: 1fr;
    }
    .ebs-hero-title {
        font-size: 28px;
    }
    .ebs-detail-title-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .ebs-degrees-grid {
        grid-template-columns: 1fr;
    }
    .ebs-header-inner {
        height: auto;
        padding: 14px 0;
        flex-direction: column;
        gap: 12px;
    }
}
