/* TÜGVA Giresun Yaz Okulu - Modern macOS & Glassmorphism Frontend CSS (2026 Style) */

:root {
    --mac-dark-bg: #070B13;
    --mac-card-bg: rgba(255, 255, 255, 0.03);
    --mac-card-border: rgba(255, 255, 255, 0.06);
    --mac-blue: #0A84FF;
    --mac-yellow: #FFD600;
    --mac-yellow-hover: #E5C000;
    --mac-green: #30D158;
    --mac-red: #FF453A;
    --mac-text-primary: #F5F5F7;
    --mac-text-secondary: #8E8E93;
    --mac-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mac-header-family: 'Bricolage Grotesque', sans-serif;
}

body {
    font-family: var(--mac-font-family);
    background-color: var(--mac-dark-bg);
    color: var(--mac-text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mac-header-family);
    font-weight: 700;
    color: var(--mac-text-primary);
    letter-spacing: -0.5px;
}

/* Glassmorphic macOS Card Styles */
.glass-card {
    background: var(--mac-card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--mac-card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.15);
}

/* Header Navbar */
.navbar-custom {
    background: rgba(7, 11, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--mac-card-border);
    padding: 2px 0;
    transition: all 0.3s;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand-custom img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.navbar-brand-custom:hover img {
    transform: scale(1.05);
}

.brand-title {
    font-family: var(--mac-header-family);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--mac-yellow);
    letter-spacing: -1px;
    line-height: 1;
}

.navbar-brand-sub {
    font-size: 0.75rem;
    color: var(--mac-text-secondary);
    display: block;
    margin-top: 2px;
}

.nav-link-custom {
    color: var(--mac-text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 24px;
    opacity: 0.8;
    transition: all 0.2s;
    position: relative;
}

.nav-link-custom:hover {
    opacity: 1;
    color: var(--mac-yellow) !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 8px;
    width: 0;
    height: 2px;
    background-color: var(--mac-yellow);
    transition: width 0.3s;
}

.nav-link-custom:hover::after {
    width: calc(100% - 16px);
}

.btn-login-nav {
    background-color: var(--mac-yellow);
    color: #070B13 !important;
    font-weight: 700;
    border-radius: 40px;
    padding: 8px 22px !important;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
    transition: all 0.3s !important;
}

.btn-login-nav::after {
    display: none;
}

.btn-login-nav:hover {
    background-color: var(--mac-text-primary);
    color: #070B13 !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(10, 132, 255, 0.15) 0%, rgba(7, 11, 19, 0) 50%);
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, #A2B6DF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--mac-text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
}

.btn-yellow-custom {
    background-color: var(--mac-yellow);
    color: #070B13;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(255, 214, 0, 0.25);
    transition: all 0.3s;
    border: none;
}

.btn-yellow-custom:hover {
    background-color: #FFF;
    color: #070B13;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--mac-text-primary);
    border: 1px solid var(--mac-card-border);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.3s;
    margin-left: 15px;
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
    color: #FFF;
}

/* Feature Badges / Highlights */
.feature-badge {
    background: rgba(10, 132, 255, 0.1);
    color: var(--mac-blue);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Sections Common */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #8E8E93 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--mac-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-size: 1.05rem;
}

/* Course Card (Mac Grid) */
.course-card {
    padding: 30px;
    height: 100%;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mac-yellow);
    margin-bottom: 24px;
    border: 1px solid var(--mac-card-border);
}

.course-card:hover .course-icon {
    background: var(--mac-yellow);
    color: #070B13;
    transform: scale(1.08);
}

/* Stat Counter */
.stat-item {
    text-align: center;
    padding: 40px 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--mac-yellow);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--mac-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms (Mac OS Theme) */
.form-control-mac {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--mac-card-border) !important;
    border-radius: 10px !important;
    color: var(--mac-text-primary) !important;
    padding: 12px 16px !important;
    transition: all 0.2s !important;
}

.form-control-mac option {
    background-color: #171B26 !important;
    color: #FFFFFF !important;
}

.form-control-mac:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--mac-blue) !important;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.25) !important;
    outline: none;
}

.form-label-mac {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mac-text-primary);
    margin-bottom: 8px;
}

/* Slider Section */
.hero-slider-section {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mac-card-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 60px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(7, 11, 19, 0.95) 0%, rgba(7, 11, 19, 0.5) 100%);
    z-index: 2;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 0 40px;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--mac-text-secondary);
    margin-bottom: 30px;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--mac-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.slider-control:hover {
    background: rgba(255,255,255,0.15);
    color: #FFF;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Interactive Timeline */
.timeline-item {
    border-left: 2px solid var(--mac-card-border);
    padding-left: 30px;
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mac-blue);
    border: 2px solid var(--mac-dark-bg);
}

/* Footer Section */
.footer-section {
    background-color: #04060B;
    border-top: 1px solid var(--mac-card-border);
    padding: 60px 0 30px 0;
}

.footer-logo {
    font-family: var(--mac-header-family);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--mac-yellow);
    letter-spacing: -1px;
}

.footer-link {
    color: var(--mac-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.92rem;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--mac-yellow);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--mac-text-secondary);
}

/* Step Wizard for Registration */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--mac-card-border);
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: var(--mac-dark-bg);
    padding: 0 15px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mac-card-bg);
    border: 2px solid var(--mac-card-border);
    color: var(--mac-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 10px auto;
    transition: all 0.3s;
}

.wizard-step.active .step-number {
    background: var(--mac-blue);
    border-color: var(--mac-blue);
    color: #FFF;
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.4);
}

.wizard-step.completed .step-number {
    background: var(--mac-green);
    border-color: var(--mac-green);
    color: #FFF;
}

.step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mac-text-secondary);
}

.wizard-step.active .step-label {
    color: var(--mac-text-primary);
}

/* ─── Premium Mobile Hamburger & Overlay Menu (2026 UX Style) ─── */
.navbar-toggler {
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background 0.2s;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
    width: 22px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--mac-text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Morphing hamburger lines when expanded */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--mac-yellow);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--mac-yellow);
}

/* Mobile Slide-down Glassmorphic Collapse Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 80px; /* matches sticky header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        background: rgba(7, 11, 19, 0.96);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 9999;
        padding: 40px 24px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(-15px);
        opacity: 0;
        visibility: hidden;
        display: block !important; /* override default bootstrap collapse behavior */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        text-align: center;
        gap: 16px;
        padding-top: 20px;
    }
    
    .nav-link-custom {
        font-size: 1.4rem;
        margin: 0 !important;
        font-family: var(--mac-header-family);
        font-weight: 700;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: inline-block;
        padding: 10px 0;
    }
    
    .nav-link-custom::after {
        display: none; /* Hide hover underline line on mobile */
    }
    
    .navbar-collapse.show .nav-link-custom {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered transition delay list for smooth reveal animation */
    .navbar-collapse.show .nav-item:nth-child(1) .nav-link-custom { transition-delay: 0.08s; }
    .navbar-collapse.show .nav-item:nth-child(2) .nav-link-custom { transition-delay: 0.13s; }
    .navbar-collapse.show .nav-item:nth-child(3) .nav-link-custom { transition-delay: 0.18s; }
    .navbar-collapse.show .nav-item:nth-child(4) .nav-link-custom { transition-delay: 0.23s; }
    .navbar-collapse.show .nav-item:nth-child(5) .nav-link-custom { transition-delay: 0.28s; }
    .navbar-collapse.show .nav-item:nth-child(6) .nav-link-custom { transition-delay: 0.33s; }
    .navbar-collapse.show .nav-item:nth-child(7) .nav-link-custom { transition-delay: 0.38s; }
    
    .btn-login-nav {
        width: 100%;
        max-width: 280px;
        margin: 15px auto 0 auto !important;
        padding: 12px 30px !important;
        border-radius: 12px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}
