/*
Theme Name: Zeyno Oyun ve Bilgi Atölyesi
Theme URI: https://zeynoakademi.com
Author: Antigravity
Author URI: https://zeynoakademi.com
Description: Fatsa'da çocuklar için güvenli, eğlenceli ve modern bir oyun atölyesi teması.
Version: 2.2.0
Text Domain: zeyno-oyun
*/

:root {
    /* Modern Pastel Color Palette */
    --primary-pink: #FFB7B2;
    --primary-blue: #AEC6CF;
    --primary-yellow: #FDFD96;
    --primary-green: #77DD77;
    --secondary-purple: #B39EB5;
    --secondary-orange: #FFB347;

    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #fafafa;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;

    /* Fonts */
    --font-family: 'Poppins', sans-serif;
}

/* Base Styles using Global Reset */
* {
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--off-white);
    /* Gentle pastel gradient background */
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 183, 178, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(174, 198, 207, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(253, 253, 150, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-pink {
    color: var(--primary-pink);
}

.text-blue {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), #ff9a9e);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue), #89f7fe);
    color: var(--white);
}

/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.menu-primary-container ul {
    display: flex;
    gap: 30px;
}

.menu-primary-container a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.menu-primary-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: width 0.3s;
}

.menu-primary-container a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section with Slider */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    color: white;
}

/* Slider Container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary-pink);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 183, 178, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Cards & Services */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 60px;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s;
}

.service-card:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 5px solid transparent;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card:nth-child(1) {
    border-color: var(--primary-blue);
}

.program-card:nth-child(2) {
    border-color: var(--primary-pink);
}

.program-card:nth-child(3) {
    border-color: var(--primary-yellow);
}

.program-card:nth-child(4) {
    border-color: var(--primary-green);
}

.program-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

/* Why Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

/* Gallery Preview */
/* Gallery Preview */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item-real {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    /* Enforce 4:3 ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents distortion */
    display: block;
    transition: transform 0.5s;
}

.gallery-item-real:hover {
    transform: translateY(-5px);
}

.gallery-item-real:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    font-style: italic;
}

.testimonial-card::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-pink);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
}

.testimonial-card .author {
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    font-style: normal;
    text-align: right;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--off-white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-pink);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 1.5rem;
    color: var(--primary-blue);
    animation: pulse-soft 2s infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Cursor */
@media (pointer: fine) {

    .cursor-dot,
    .cursor-dot-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--primary-pink);
    }

    .cursor-dot-outline {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(255, 183, 178, 0.5);
    }
}

/* Daily Flow Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-pink);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-item .content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.timeline-item:hover .content {
    transform: translateY(-5px);
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    color: var(--text-dark);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-pink);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
}

.site-footer a {
    color: var(--primary-pink);
}

/* Responsive & Mobile Optimization */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 20px;
    }

    /* Tablet Timeline */
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 15px;
    }

    .timeline-item::after {
        right: auto;
    }
}

@media (max-width: 768px) {

    /* Global Overflow Fix */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Site Header Layout */
    .site-header .container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-navigation {
        position: static;
        /* Let the container handle relative */
        width: auto;
    }

    /* Mobile Menu Trigger */
    .menu-toggle {
        display: block;
        background: var(--primary-pink);
        color: white;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 1.5rem;
        z-index: 10001;
        /* Above overlay */
        cursor: pointer;
        border: none;
        /* Reset border */
    }

    /* Mobile Menu Container - Hidden by Default */
    .main-navigation-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* Hiding Logic */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }

    /* Active State (Toggled via JS) */
    .main-navigation-content.toggled {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: translateY(0);
    }

    /* Menu List Styles */
    .menu-primary-container ul {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .menu-primary-container a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
        padding: 10px;
        display: block;
    }

    .menu-primary-container a:hover {
        color: var(--primary-pink);
    }

    /* Hero Section Mobile */
    .hero-wrapper {
        padding: 140px 20px 100px;
        /* Increased bottom padding */
        height: auto;
        min-height: 85vh;
        /* Ensure it covers most of screen */
        align-items: flex-start;
        /* Start content from top after padding */
    }

    .hero-bg-shapes .shape {
        /* Fix shape overflow */
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Stack Grids */
    .services-grid,
    .programs-grid,
    .features-grid,
    .gallery-preview-grid,
    .testimonials-wrapper,
    .gallery-grid,
    .contact-layout,
    .hero-buttons {
        grid-template-columns: 1fr !important;
        display: grid;
    }

    .hero-buttons {
        gap: 20px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }

    /* Shapes / decorative Elements overflow fix */
    .shape-sun {
        right: -50px;
        top: -50px;
        opacity: 0.5;
    }

    .shape-cloud {
        left: -20px;
    }

    /* FAQ & Timeline Mobile */
    .faq-item summary {
        font-size: 0.95rem;
    }

    /* Footer */
    .site-footer {
        padding: 40px 20px;
    }

    /* Adjust Floating Button on Mobile */
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}