/* =========================================================
   Ezozo Social Directory
   Visual theme synchronized with Ezozo Social homepage
   ========================================================= */

:root {
    --ezozo-red: #D23A29;
    --ezozo-red-dark: #b83222;
    --ezozo-red-light: #f8e8e6;
    --ezozo-blue: #4285f4;
    --ezozo-green: #34a853;
    --ezozo-yellow: #fbbc05;
    --ezozo-purple: #8e44ad;
    --ezozo-orange: #ff9800;
    --ezozo-dark: #202124;
    --ezozo-gray: #5f6368;
    --ezozo-light-gray: #dadce0;
    --ezozo-bg: #f8f9fa;
    --ezozo-white: #ffffff;
    --ezozo-shadow: 0 2px 10px rgba(0,0,0,.10);
    --ezozo-shadow-lg: 0 10px 40px rgba(0,0,0,.10);
    --facebook: #1877f2;
    --instagram: #e4405f;
    --twitter: #1da1f2;
    --linkedin: #0077b5;
    --tiktok: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--ezozo-bg);
    color: var(--ezozo-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    transition: all .25s ease;
}

.site-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Google Translate */
#google_translate_element {
    display: inline-block;
}

.goog-te-gadget {
    font-family: Arial, sans-serif !important;
    color: #fff !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 5px !important;
    padding: 5px 9px !important;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--ezozo-red), var(--ezozo-red-dark));
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-links a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-size: 14px;
}

.top-bar-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* Main Header */
.main-header {
    background: #fff;
    box-shadow: var(--ezozo-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ezozo-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.65rem;
    white-space: nowrap;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.brand-red {
    color: var(--ezozo-red);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > a:not(.btn-ezozo) {
    color: var(--ezozo-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 9px 13px;
    border-radius: 6px;
}

.main-nav > a:not(.btn-ezozo):hover,
.main-nav > a.active {
    background: var(--ezozo-red-light);
    color: var(--ezozo-red);
}

.btn-ezozo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--ezozo-red), var(--ezozo-red-dark));
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.btn-ezozo:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(210,58,41,.25);
}

.btn-outline-ezozo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ezozo-red);
    border-radius: 8px;
    padding: 9px 18px;
    background: transparent;
    color: var(--ezozo-red);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline-ezozo:hover {
    background: var(--ezozo-red);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ezozo-dark);
    font-size: 24px;
    cursor: pointer;
}

/* Directory Hero */
.directory-hero {
    position: relative;
    overflow: hidden;
    padding: 65px 0 75px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(210,58,41,.10), rgba(210,58,41,.035)),
        #fff;
}

.directory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://ezozo.com/images/social-media-backgroung.webp') center/cover no-repeat;
    opacity: .035;
    pointer-events: none;
}

.directory-hero .site-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--ezozo-green), #2e8b57);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52,168,83,.22);
}

.directory-hero h1 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--ezozo-dark);
}

.directory-hero h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 3px;
    margin: 15px auto 0;
    background: var(--ezozo-red);
}

.directory-hero p {
    max-width: 720px;
    margin: 18px auto 30px;
    color: var(--ezozo-gray);
    font-size: 1.08rem;
}

/* Search */
.directory-search-wrap {
    width: min(760px, 100%);
    margin: 0 auto;
}

.directory-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 20px;
    background: #fff;
    border: 2px solid var(--ezozo-light-gray);
    border-radius: 50px;
    box-shadow: var(--ezozo-shadow);
}

.directory-search:focus-within {
    border-color: var(--ezozo-red);
    box-shadow: 0 0 0 4px var(--ezozo-red-light);
}

.directory-search > i {
    color: var(--ezozo-gray);
    font-size: 18px;
}

.directory-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 11px 5px;
    font-size: 16px;
    color: var(--ezozo-dark);
}

.directory-search button {
    border: 0;
    border-radius: 50px;
    background: var(--ezozo-red);
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
}

.directory-search button:hover {
    background: var(--ezozo-red-dark);
    transform: translateY(-1px);
}

/* Main Content */
.directory-content {
    padding: 55px 0 80px;
}

/* Filter Panel */
.filter-panel {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 42px;
    box-shadow: var(--ezozo-shadow);
    border: 1px solid rgba(218,220,224,.65);
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-kicker {
    display: block;
    color: var(--ezozo-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}

.filter-heading h2,
.results-heading h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--ezozo-dark);
    font-size: 1.65rem;
    margin: 0;
}

.result-count {
    background: var(--ezozo-red-light);
    color: var(--ezozo-red);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--ezozo-dark);
    font-size: 14px;
    font-weight: 600;
}

.filter-group label i {
    color: var(--ezozo-red);
    margin-right: 5px;
}

.filter-group select {
    width: 100%;
    min-height: 45px;
    border: 1px solid var(--ezozo-light-gray);
    border-radius: 8px;
    background: #fff;
    color: var(--ezozo-dark);
    padding: 9px 12px;
    outline: 0;
    font-size: 14px;
}

.filter-group select:focus {
    border-color: var(--ezozo-red);
    box-shadow: 0 0 0 3px var(--ezozo-red-light);
}

.filter-actions {
    display: flex;
    gap: 9px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Results */
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.results-heading p {
    color: var(--ezozo-gray);
    margin-top: 4px;
    font-size: 14px;
}

/* User Cards */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 24px;
}

.user-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(218,220,224,.75);
    box-shadow: var(--ezozo-shadow);
    padding: 28px 22px 22px;
    text-align: center;
    transition: all .3s ease;
}

.user-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ezozo-shadow-lg);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ezozo-red), var(--ezozo-red-dark));
}

.user-image-wrap {
    width: 94px;
    height: 94px;
    margin: 4px auto 16px;
}

.user-image {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
    background: linear-gradient(135deg, var(--ezozo-red), var(--ezozo-red-dark));
}

.user-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.user-info {
    text-align: center;
}

.user-name {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--ezozo-dark);
    margin: 0 0 7px;
    word-break: break-word;
}

.user-location {
    color: var(--ezozo-gray);
    font-size: 13px;
    margin: 0 0 18px;
}

.user-location i {
    color: var(--ezozo-red);
    margin-right: 4px;
}

.profile-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto 18px;
    color: var(--ezozo-gray);
    font-size: 13px;
}

.profile-stat > span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--ezozo-red), var(--ezozo-red-dark));
}

.profile-stat strong {
    color: var(--ezozo-dark);
    font-size: 16px;
}

.profile-stat small {
    font-size: 13px;
}

.view-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--ezozo-red-light);
    color: var(--ezozo-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-profile:hover {
    background: var(--ezozo-red);
    color: #fff;
}

/* No Results */
.no-results {
    max-width: 650px;
    margin: 30px auto;
    padding: 55px 30px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--ezozo-shadow);
}

.no-results-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ezozo-red-light);
    color: var(--ezozo-red);
    font-size: 28px;
}

.no-results h2 {
    font-family: 'Poppins', Arial, sans-serif;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--ezozo-gray);
    margin-bottom: 22px;
}

/* Footer */
.main-footer {
    background: var(--ezozo-dark);
    color: #fff;
    padding: 58px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.15fr 1.15fr;
    gap: 45px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 38px;
    width: auto;
}

.footer-about p {
    max-width: 390px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

.footer-column h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.05rem;
}

.footer-column h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: var(--ezozo-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(4px);
    display: inline-block;
}

.footer-column a i {
    width: 20px;
    margin-right: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--ezozo-red);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.footer-policy {
    margin-top: 8px;
}

.footer-policy a {
    color: rgba(255,255,255,.62);
    text-decoration: none;
    margin: 0 8px;
}

.footer-policy a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1000px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        gap: 0;
    }
}

@media (max-width: 820px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 14px 20px 20px;
        background: #fff;
        box-shadow: var(--ezozo-shadow-lg);
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a {
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }

    .main-nav .btn-ezozo {
        margin-top: 8px;
    }

    .header-inner {
        position: relative;
    }
}

@media (max-width: 650px) {
    .site-container {
        width: min(100% - 28px, 1200px);
    }

    .top-bar-content {
        gap: 10px;
    }

    .top-bar-links {
        gap: 13px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 34px;
    }

    .directory-hero {
        padding: 48px 0 55px;
    }

    .directory-search {
        border-radius: 14px;
        padding: 8px;
        flex-wrap: wrap;
    }

    .directory-search > i {
        padding-left: 8px;
    }

    .directory-search input {
        min-width: calc(100% - 55px);
    }

    .directory-search button {
        width: 100%;
        border-radius: 10px;
    }

    .directory-content {
        padding: 35px 0 55px;
    }

    .filter-panel {
        padding: 20px;
    }

    .filter-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .filter-actions > * {
        flex: 1;
    }

    .user-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 420px) {
    .top-bar-links {
        gap: 10px;
    }

    #google_translate_element {
        max-width: 100px;
        overflow: hidden;
    }

    .hero-badge {
        font-size: 12px;
    }

    .directory-hero h1 {
        font-size: 1.9rem;
    }
}
