/*
Theme Name: UAE Creators Theme
Author: Your Name
Description: Lightweight, responsive theme matching uaecreators.com UI design. Geared towards directory plugins. No page builders required.
Version: 1.0.3
*/

/* --- CSS Variables & Globals --- */
:root {
    --primary-color: #EA7317; /* The orange from the design */
    --secondary-color: #3DA5D9; /* Dark blue text/footer color */
    --text-color: #262626;
    --light-gray: #CACACA;
    --border-color: #E2E8F0;
    --font-family: 'Poppins', sans-serif; /* Assuming a modern sans-serif */
    --container-width: 1400px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- REUSABLE LAYOUT & GRID (Requested CSS) --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Flex Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Default to full width on mobile */
}

/* Tablet and up */
@media (min-width: 768px) {
    .col-half { width: 50%; }
    .col-third { width: 33.333%; }
    .col-quarter { width: 25%; }
    .col-two-thirds { width: 66.666%; }
}

/* Utilities */
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-gray); }
.bg-orange { background-image: linear-gradient(to right, #EA7317, #3DA5D9); color: white; }
.bg-dark { background-color: #262626; color: white; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: #d66a1a; color: white;}
.btn-outline-white { border: 2px solid white; color: white; background: transparent;}
.btn-outline-white:hover { background: white; color: var(--primary-color);}


/* --- COMPONENT STYLES --- */

/* Header - New Frosted Glass Sticky Style */
.site-header {
    height: 60px; /* Requested height */
    padding: 0 30px;
    position: fixed; /* Sticky position */
    top: 40px; /* 40px from the top */
    left: 50%;
    transform: translateX(-50%); /* Center the fixed element */
    width: calc(100% - 80px); /* Leave 40px margin on each side */
    max-width: 1400px; /* Optional: max width for the header bar itself */
    z-index: 1000;
    
    /* Frosted Glass Effect */
    background: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* The magic frost effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    
    border-radius: 30px; /* Rounded corners */
}
.site-header .container { 
    height: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; /* Use 100% of the calculated header width */
    max-width: none; /* Override container max-width inside the fixed header */
    padding: 0; /* Remove internal padding to use header padding instead */
}
/* Ensure the logo and links contrast well against the light header */
.site-branding a { color: var(--secondary-color); }
.main-navigation a { color: var(--secondary-color); font-weight: 600; text-shadow: none; }
.custom-logo-link img { max-height: 40px; width: auto; } /* Ensure logo fits in 60px height */

.site-branding img { height: 40px; }
/* --- NAVIGATION & DROPDOWNS --- */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative; /* Essential for dropdown positioning */
    margin-left: 30px;
}

/* Dropdown (Sub-menu) Styling */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 15px 0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    margin-top: 10px;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 25px;
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
}

.main-navigation ul ul a:hover {
    background: rgba(234, 115, 23, 0.1); /* Primary color at low opacity */
    color: var(--primary-color);
}

/* --- MOBILE MENU & BURGER --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1100;
}

/* Homepage Hero */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 200px 0 100px;
    color: white;
    position: relative;
}
/* Add dark overlay */
.hero-section::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4); z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { color: white; font-size: 3.5rem; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;}

/* Hero Search Box Styling (Crucial) */
.hero-search-box {
    /* Frosted Glass Effect */
    background: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* The magic frost effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 30px; /* Rounded corners */

    padding: 20px;
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
    align-items: center;
}
/* Note: You will need to target your specific plugin's form inputs here. 
   These are generic styles based on the design. */
.hero-search-box input, .hero-search-box select {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    min-width: 150px;
}
.hero-search-box .search-btn { background: var(--secondary-color); color: white; padding: 12px 30px; border-radius: 15px; border:none; cursor: pointer;}
.hero-search-toggles { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.toggle-btn { background: rgba(255,255,255,0.2); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; display: flex; align-items: center;}
.toggle-btn i { margin-right: 8px; }

/* --- UPDATED CREATOR CARD (MATCHING GROUP 23.PNG) --- */
.creator-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
}

.card-top-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card-avatar-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #3DA5D9;
}

.card-info-right {
    flex-grow: 1;
}

.card-info-right h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 120%;
    color: #262626;
}

.badge-verified { color: #007bff; }
.badge-award { color: #D4AF37; }

.card-tags {
    color: #3DA5D9;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.card-gender {
    color: #718096;
    font-style: italic;
    margin-bottom: 15px;
}

.card-contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-contact-links a {
    color: #1A2B4A;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social Tiers (Pills) */
.social-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.social-pill {
    background: #F1F5F9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A5568;
    border: 1px solid #E2E8F0;
}

.card-bio {
    font-size: 0.95rem;
    color: #2D3748;
    line-height: 1.5;
}

/* Why Use Section */
.why-use-section h2, .why-use-section h3 { color: white; }
.feature-box { padding: 30px; text-align: center; }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }

/* Footer */
.site-footer { padding: 60px 0 20px; }
.footer-links h4 { color: white; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; }
.footer-bottom { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; color: #ccc; font-size: 0.9rem;}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 767px) {
    /* Adjust header on mobile */
    .site-header {
        top: 20px;
        width: calc(100% - 40px);
        border-radius: 15px; /* Smaller radius on mobile */
    }
    .site-header .container { 
        flex-direction: column; 
        height: auto;
    }
    .menu-toggle {
        display: block;
    }

    /* Transform Main Nav into Slide-out */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px; /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        background: white;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
    }

    /* Active state for slide-out */
    .main-navigation.is-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation li {
        margin: 0 0 20px 0;
    }

    .main-navigation a {
        font-size: 1.2rem;
    }

    /* Mobile Dropdown adjustment */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: none;
        padding-left: 20px;
        margin-top: 10px;
        display: none; /* Toggle with JS or keep visible for simplicity */
    }
    
    .main-navigation li.menu-item-has-children:hover ul {
        display: block;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-search-box { flex-direction: column; }
    .hero-search-box input, .hero-search-box select, .hero-search-box .search-btn { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px;}
}