/* css/components.css */

/* Topbar */
.topbar {
    background-color: var(--primary);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.topbar a:hover {
    color: #ffffff;
}

.topbar-contact a {
    margin-right: 1.5rem;
}

.topbar-contact i,
.topbar-social i {
    margin-right: 0.4rem;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 0.35rem;
    font-size: 0.8rem;
}

.topbar-social a:hover {
    background: var(--secondary);
    color: #ffffff;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.navbar.scrolled {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md) !important;
}

.nav-link {
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 1rem !important;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.dropdown-menu {
    border-radius: var(--radius-md);
    padding: 0.6rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 18px;
    color: var(--primary);
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-50);
    color: var(--primary);
    transform: translateX(4px);
}

/* Hover Dropdown for Desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .navbar-nav .dropdown:hover>.dropdown-toggle {
        color: var(--primary);
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Page Header / Banner for Inner Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #1e40af 100%);
    padding: 4rem 0 3.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(245, 166, 35, 0.15), transparent 60%);
    pointer-events: none;
}

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

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Section Structure */
.section-padding {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-dark);
    background: var(--bg-secondary-subtle);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.btn-lg {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
}

.btn-pill {
    border-radius: var(--radius-full);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Cards & Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* Icon Circle */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kademe-card:hover .icon-circle {
    transform: scale(1.1) rotate(6deg);
}

/* Mission / Vision Cards */
.mv-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.mv-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Steps (Başvuru Süreci) */
.basvuru-step {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.basvuru-step.active,
.basvuru-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary-subtle);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-number.active,
.basvuru-step.active .step-number {
    background: var(--primary);
    color: #ffffff;
}

/* Form Styles */
.contact-form,
.custom-form {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 77, 142, 0.12);
}

.form-section-title {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-50);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Cards (Programs, Facilities, Staff) */
.custom-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Teacher / Staff Card */
.teacher-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.teacher-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.teacher-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-img-wrapper img {
    transform: scale(1.05);
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color, #1B4D8E);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(27, 77, 142, 0.35);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    outline: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color, #F5A623);
    border-color: #F5A623;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
}

/* Premium Floating GDPR / Cookie Consent Card */
.cookie-consent {
    position: fixed;
    bottom: 28px;
    left: 28px;
    right: auto;
    max-width: 440px;
    width: calc(100% - 56px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(27, 77, 142, 0.16);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 40px -10px rgba(15, 44, 89, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 10000;
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.cookie-consent.show {
    bottom: 28px;
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.cookie-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1B4D8E 0%, #0F2C59 100%);
    color: #F5A623;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(27, 77, 142, 0.25);
}

@media (max-width: 576px) {
    .cookie-consent {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        padding: 16px;
    }
    .cookie-consent.show {
        bottom: 16px;
    }
}

/* Footer Social & Quick Links */
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary) !important;
    transform: translateX(4px);
}

.social-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    border: none !important;
}

.social-btn i {
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}