/* Austria Yetim Eli - Premium Design System */

:root {
    /* Exact yetimelifrance.fr Colors */
    --color-primary: #00a651;     /* Green */
    --color-secondary: #d92a3d;   /* Red */
    --color-accent: #6a9bcc;
    --color-dark: #222222;
    --color-light: #f8f9fa;
    --color-gray: #e9ecef;
    --color-white: #ffffff;
    --color-text-body: #555555;
    
    /* Typography - Pure Poppins */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & Radii */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2.5rem;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1400px; /* Increased for single-line header */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgba(11, 124, 65, 0.2);
}

.btn-primary:hover {
    background-color: #096334;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 87, 0.2);
}

.btn-secondary:hover {
    background-color: #c46a4d;
    transform: translateY(-2px);
}

/* Top Bar Social Icons */
.top-bar-social {
    display: flex;
    gap: 10px;
}

.top-bar-social a {
    width: 32px;
    height: 32px;
    background: #3a4a55;
    border-radius: 4px; /* Square with slight roundness */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    transition: 0.3s;
}

.top-bar-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.top-bar-social a.whatsapp { background: #25d366; }

/* Nav Pill Highlights */
.nav-pill {
    padding: 6px 18px !important;
    border-radius: 50px !important;
    position: relative;
}

.nav-pill-green {
    background: rgba(0, 166, 81, 0.08);
    color: var(--color-primary) !important;
}

.nav-pill-green::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 10px;
}

.nav-pill-red {
    background: var(--color-secondary) !important;
    color: white !important;
}

/* Flag Icons */
.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    cursor: pointer;
}

/* Navbar Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap to save horizontal space */
}

.nav-links li {
    list-style: none;
    position: relative;
    white-space: nowrap; /* Prevent items from breaking into 2 lines */
}

.nav-links a {
    font-weight: 600;
    font-size: 14px; /* Slightly smaller for better fit */
    color: #334155;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    gap: 5px; /* Gap for the chevron */
    white-space: nowrap;
}

/* Dropdown Sub-menus - STRICT HIDDEN */
.dropdown-menu {
    display: none; /* Changed from opacity for stability */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 1001;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--color-primary);
}

/* Nav Pill Highlights - EXACT MATCH */
.nav-pill-green {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    flex-direction: column;
}

.nav-pill-green::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 3px;
    background: #166534;
    border-radius: 20px;
}

.nav-pill-red {
    background: #e11d48 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

/* Flag Switcher Capsule */
.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 50px;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}

.flag-icon:hover {
    transform: scale(1.15);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}


@media (max-width: 480px) {
    .logo img { height: 45px; } /* Smaller logo on tiny screens */
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 20, 19, 0.8), rgba(20, 20, 19, 0.2), transparent);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--color-gray);
}

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

.card-img {
    height: 240px;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--color-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
}

/* Section Grids */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

/* Universal Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-aside { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: start; }
.grid-aside-rev { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }

/* Page Header / Hero Inner Pages */
.page-header {
    background: var(--color-dark);
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}
.page-header .container { position: relative; z-index: 10; }

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.section-subtitle {
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer h4 {
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .hero h1 { font-size: 2.2rem !important; }
    h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.8rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.5rem !important; line-height: 1.4 !important; }
    h4 { font-size: 1.25rem !important; }
    
    p, h1, h2, h3, h4, span, div, a {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .container {
        padding: 0 1.5rem !important;
        width: 100% !important;
    }

    /* Footer fix: force stack and align icons */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }
    .footer .logo, .footer .footer-links li {
        justify-content: center;
        text-align: center;
    }
    .footer-links li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .footer-links li span {
        max-width: 100%;
        line-height: 1.5;
    }

    /* Horizontal Filter Track */
    .filter-scroll-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        display: flex;
        gap: 12px;
        justify-content: flex-start;
    }
    .filter-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .filter-scroll-wrapper .btn {
        flex: 0 0 auto;
        padding: 0.75rem 1.75rem !important;
    }

    /* Stack Grids */
    .about-grid, .stats-grid, .grid-2, .grid-3, .grid-4, .grid-aside, .grid-aside-rev {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .page-header { padding: 4rem 0 !important; }
    .section-title { font-size: 2.2rem !important; }
}

/* Google Translate Hidden UI */
#google_translate_element,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* ------------------------------------- */
/* HEADER REDESIGN (DONATM STYLE)        */
/* ------------------------------------- */
.site-header-redesign {
    display: flex;
    width: 100%;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-logo-column {
    background: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px 0 30px;
    min-width: 250px;
}
.header-logo-column::before {
    content: '';
    position: absolute;
    top: 0;
    right: -25px;
    width: 60px;
    height: 100%;
    background: var(--color-primary);
    transform: skewX(-20deg);
    z-index: 1;
}
.header-logo-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: -35px;
    width: 15px;
    height: 100%;
    background: #f97316;
    transform: skewX(-20deg);
    z-index: 0;
}

.header-nav-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar-redesign {
    background: #111d16;
    color: white;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    height: 38px;
}
.topbar-redesign .topbar-text {
    display: flex;
    align-items: center;
    padding-left: 60px;
}
.topbar-redesign .welcome-text {
    color: #f97316;
    font-weight: 600;
    margin-right: 5px;
}
.topbar-redesign .topbar-social {
    background: #f97316;
    display: flex;
    align-items: center;
    padding: 0 30px 0 40px;
    position: relative;
}
.topbar-redesign .topbar-social::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    width: 30px;
    background: #f97316;
    transform: skewX(-20deg);
    z-index: 0;
}
.topbar-redesign .topbar-social a, .topbar-redesign .topbar-social span {
    position: relative;
    z-index: 1;
    color: white;
}
.topbar-redesign .topbar-social a {
    margin: 0 8px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.topbar-redesign .topbar-social a:hover { opacity: 0.8; }

.navbar-redesign {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0 20px 0 50px;
}

/* Mobile Breakpoints for Redesign */
@media (max-width: 1024px) {
    .site-header-redesign { flex-direction: column; position: relative; }
    
    /* 1. Header Bar (White instead of Green) */
    .header-logo-column {
        padding: 15px 20px;
        justify-content: space-between;
        background: white !important; /* Changed from primary */
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        z-index: 1000; /* Ensure it stays above dropdown */
    }
    .header-logo-column::before, .header-logo-column::after { display: none; }
    
    /* Reverse logo colors for white background */
    .header-logo-column .logo > div > div:first-child {
        background: var(--color-primary) !important;
        color: white !important;
    }
    .header-logo-column .logo span:first-of-type { color: #1e2d3b !important; }
    .header-logo-column .logo span:last-of-type { color: var(--color-primary) !important; }
    
    /* 2. Hamburger Button */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 2px solid #bbf7d0; /* Light green border */
        border-radius: 12px;
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle i {
        color: #475569 !important; /* Dark grey lines */
        font-size: 1.5rem;
    }
    
    .header-nav-column { width: 100%; }
    .topbar-redesign { display: none; }
    
    .navbar-redesign {
        display: block;
        padding: 0;
    }
    
    /* 3. Mobile Menu Wrapper */
    #mobile-menu-wrapper {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #fdfdfd;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 40px 20px 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    #mobile-menu-wrapper.active {
        display: flex !important;
    }
    
    /* 4. Menu Links */
    .navbar-redesign .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 25px;
        padding: 0;
        margin-bottom: 20px;
    }
    .navbar-redesign .nav-links li { width: 100%; text-align: center; }
    .navbar-redesign .nav-links li a {
        display: inline-block;
        font-size: 1.1rem;
        font-weight: 600;
        color: #334155;
    }
    
    /* Active "Ana Sayfa" Pill */
    .navbar-redesign .nav-links li a.nav-pill-green {
        background: #ecfdf5 !important;
        color: #059669 !important;
        padding: 10px 30px;
        border-radius: 12px;
    }
    
    /* Kurban Red Pill */
    .navbar-redesign .nav-links li a.nav-pill-red {
        background: #e11d48 !important;
        color: white !important;
        padding: 12px 35px;
        border-radius: 25px;
        box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.5) !important;
    }
    
    /* 5. Bottom Actions Row */
    .navbar-redesign .actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px;
        padding-top: 30px;
        border-top: 1px solid #e2e8f0;
        gap: 15px;
    }
    .navbar-redesign .actions .action-divider { display: none; }
    
    /* Flags Container */
    .lang-switcher {
        background: #f1f5f9;
        padding: 6px 10px;
        border-radius: 12px;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .lang-switcher a { display: flex; }
    .lang-switcher img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    /* Login & Donate Buttons */
    .btn-login .login-text { display: none; }
    .btn-login {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        background: white;
        border: 1px solid #16a34a !important;
        color: #16a34a !important;
        border-radius: 10px !important;
    }
    .btn-donate-mobile {
        background: #e11d48 !important;
        border-radius: 25px !important;
        height: 44px;
        padding: 0 25px !important;
        box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.5) !important;
    }

}
@media (min-width: 1025px) {
    .btn-login {
        padding: 10px 20px !important;
        width: auto !important;
        font-size: 0.85rem !important;
    }
    .login-text {
        display: inline-block;
    }
}

