/* =========================================================================
   MUTLU SINIFLAR - VIBRANT WOW CSS DESIGNS
   ========================================================================= */

/* --- Variables & Fonts --- */
:root {
    --primary-color: #8c52ff; /* Vibrant Purple */
    --primary-light: #a87afe;
    --primary-dark: #662ad9;
    
    --secondary-color: #ff66c4; /* Vibrant Pink */
    --accent-orange: #ff914d;
    --accent-blue: #00e0ff;
    --accent-yellow: #ffde59;
    
    --text-dark: #1e1e2d;
    --text-muted: #7e8299;
    
    --bg-light: #f8f9fc;
    --bg-mesh: #f1f4fb;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-fredoka {
    font-family: var(--font-heading);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary-dark { color: var(--primary-dark); }

.bg-info-subtle { background-color: rgba(0, 224, 255, 0.15) !important; color: #00b4cc !important; }
.bg-success-subtle { background-color: rgba(0, 204, 153, 0.15) !important; color: #00a37a !important; }
.bg-warning-subtle { background-color: rgba(255, 222, 89, 0.3) !important; color: #d6b400 !important;}
.bg-danger-subtle { background-color: rgba(255, 102, 196, 0.15) !important; color: #e64da8 !important; }

/* --- Typography Utilities --- */
.tracking-wider { letter-spacing: 0.1em; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Navigation --- */
.custom-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.logo-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.4);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-box {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.nav-link {
    font-weight: 700;
    color: #4b5065;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(140, 82, 255, 0.05);
}

.custom-dropdown {
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
}
.custom-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s;
}
.custom-dropdown .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- Buttons --- */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 82, 255, 0.4) !important;
}

.btn-custom-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-custom-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 82, 255, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(180deg, #fff 0%, #f1f4fb 100%);
    min-height: 85vh;
}

.shape-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    border-radius: 50%;
    animation: slow-drift 15s infinite alternate ease-in-out;
}
.shape-1 {
    width: 40vw; height: 40vw;
    background: rgba(140, 82, 255, 0.2);
    top: -10vw; left: -10vw;
}
.shape-2 {
    width: 35vw; height: 35vw;
    background: rgba(255, 102, 196, 0.15);
    bottom: -5vw; right: -5vw;
    animation-direction: alternate-reverse;
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-image-wrapper {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.floating-img {
    animation: float 4s ease-in-out infinite;
    border-radius: 30px; /* if not masked already */
}
.drop-shadow-super {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.glass-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--glass-shadow);
    z-index: 2;
}

.badge-1 { top: 10%; right: -5%; animation: float 5s ease-in-out infinite 0.5s; }
.badge-2 { bottom: 15%; left: -10%; animation: float 4s ease-in-out infinite 1s; }

.icon-box {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

.avatar-group .avatar {
    width: 45px; height: 45px;
    object-fit: cover;
    margin-right: -12px;
    position: relative;
}
.avatar-group .avatar:hover {
    z-index: 10;
    transform: translateY(-3px);
    transition: transform 0.2s;
}

.wave-bottom {
    position: absolute;
    bottom: -1px; left: 0; width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-bottom svg { display: block; width: calc(130% + 1.3px); height: 75px; }
.wave-bottom .shape-fill { fill: #f8f9fc; } /* Matches body bg */


/* --- Categories Grid --- */
.card-glass {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-icon-wrapper {
    width: 80px; height: 80px;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(-5deg);
    transition: all 0.3s;
}
.cat-icon-wrapper h1 { margin:0; font-family: var(--font-heading); font-weight: 800; font-size: 3rem; }

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(140, 82, 255, 0.1);
}
.hover-lift:hover .cat-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

/* --- Activities/Materials Section --- */
.bg-light-mesh {
    background-color: var(--bg-mesh);
    background-image: radial-gradient(var(--primary-light) 0.5px, transparent 0.5px), radial-gradient(var(--primary-light) 0.5px, var(--bg-mesh) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.95;
}

.activity-card {
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}
.activity-card:hover {
    transform: translateY(-5px);
}
.activity-card:hover .card-body {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.card-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .card-img-container img {
    transform: scale(1.05);
}

.badge-overlay {
    position: absolute;
    top: 15px; left: 15px;
    z-index: 2;
}

.action-overlay {
    position: absolute;
    bottom: -25px; right: 20px;
    z-index: 3;
}
.btn-dl {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    background: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-dl:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15) rotate(5deg);
}

.hover-primary {
    transition: color 0.2s;
}
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Gradients for missing images */
.gradient-placeholder.orange-gradient {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    box-shadow: none;
}

/* --- News Section --- */
.news-main-card {
    min-height: 380px;
    background-color: var(--bg-light); /* Fallback base color */
}
.hover-lift-subtle { transition: transform 0.3s; }
.hover-lift-subtle:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.news-list-item {
    transition: all 0.2s;
    border: 1px solid transparent;
}
.news-list-item:hover {
    transform: translateX(5px);
    border-color: rgba(140, 82, 255, 0.2);
}
.news-date { width: 65px; }

/* --- CTA Section --- */
.glass-cta-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}
.glass-cta-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(140,82,255,0.1) 0%, transparent 60%);
    z-index: -1;
    animation: slow-drift 10s infinite infinite alternate linear;
}

/* --- Footer --- */
.footer { border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.social-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}

/* --- Animations --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slow-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.05); }
}

/* Fade up classes injected via JS */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up-element.show {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .hero-section { min-height: 100vh; padding-top: 2rem; }
    .glass-badge { transform: scale(0.8); }
    .badge-1 { top: 0; right: -10%; }
    .badge-2 { bottom: 5%; left: -10%; }
    .avatar-group { justify-content: center; }
}
