/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
This source code is proprietary and no part may not be used, reproduced, or distributed 
without written permission from The Greek Directory. Unauthorized use, copying, modification, 
or distribution of this code will result in legal action to the fullest extent permitted by law.
*/

/* ============================================
   INDEX PAGE — COMPLETE CSS
   Homepage styling
   ============================================ */

:root {
    --primary-blue: #045093;
    --primary-blue-dark: #033d74;
    --secondary-gold: #D4AF37;
    --secondary-gold-dark: #b8962e;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --card-radius: 14px;
    --search-radius: 14px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

::selection {
    background: #045093;
    color: #ffffff;
}

.hover-bounce {
    transition: all 0.3s;
}

.hover-bounce:hover {
    transform: scale(1.1);
}

.action-cta-btn.hover-bounce:hover {
    transform: scale(1.04);
}

button,
[role="button"],
.mobile-cta-button,
.load-more-btn,
.listing-card,
.related-listing-card,
.bg-white.rounded-lg.shadow,
.share-button,
.social-icon {
    transition: all 0.3s;
}

button:hover,
[role="button"]:hover,
.mobile-cta-button:hover,
.load-more-btn:hover,
.listing-card:hover,
.related-listing-card:hover,
.bg-white.rounded-lg.shadow:hover,
.share-button:hover,
.social-icon:hover {
    transform: scale(1.1);
}

.related-listing-card:hover {
    transform: scale(1.03);
}

button.hover-bounce:active,
a.hover-bounce:active {
    transform: scale(0.98);
}

.language-switch {
    --switch-width: 120px;
    --switch-height: 40px;
    --slider-size: 32px;
    --us-blue: #192f5d;
    --gr-blue: #0d5eaf;
    display: inline-block;
}

.lang-input { display: none; }

.lang-label {
    width: var(--switch-width);
    height: var(--switch-height);
    background-color: var(--us-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.4s ease;
    box-sizing: border-box;
}

.toggle-slider {
    position: absolute;
    width: var(--slider-size);
    height: var(--slider-size);
    background-color: white;
    border-radius: 50%;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.toggle-slider svg {
    width: 18px;
    height: 18px;
    fill: var(--us-blue);
    transition: fill 0.4s ease;
}

.flag-icon {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.flag-icon svg {
    width: 24px;
    height: 18px;
    display: block;
}

.lang-gr { opacity: 0.3; }
.lang-en { opacity: 1; }

.lang-input:checked + .lang-label {
    background-color: var(--gr-blue);
}

.lang-input:checked + .lang-label .toggle-slider {
    transform: translateX(calc(var(--switch-width) - var(--slider-size) - 8px));
}

.lang-input:checked + .lang-label .toggle-slider svg {
    fill: var(--gr-blue);
}

.lang-input:checked + .lang-label .lang-en { opacity: 0.3; }
.lang-input:checked + .lang-label .lang-gr { opacity: 1; }

button:not([type="range"]),
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
a {
    outline: none !important;
    box-shadow: none;
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(160deg, rgba(4, 30, 75, 0.72) 0%, rgba(3, 18, 52, 0.88) 100%),
        url('https://thegreekdirectory.pages.dev/images/chicago.jpeg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

/* Subtle bottom fade so the hero blends into the page */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4.5rem;
}

.hero-content {
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   SEARCH BAR
   ============================================ */

.search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.search-bar-container {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--search-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-bar-container:focus-within {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32), 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.search-bar-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #9ca3af;
    margin-left: 1.25rem;
    pointer-events: none;
    align-self: center;
}

.search-bar-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.25rem 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    align-self: stretch;
}

.search-bar-input::placeholder {
    color: #9ca3af;
}

/* Remove browser search input extras */
.search-bar-input::-webkit-search-cancel-button,
.search-bar-input::-webkit-search-decoration {
    display: none;
}

.search-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.75rem;
    align-self: stretch;
    background: var(--secondary-gold);
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.search-bar-btn:hover {
    background: var(--secondary-gold-dark);
}

.search-bar-btn:active {
    transform: scale(0.98);
}

.search-btn-icon {
    width: 17px;
    height: 17px;
    display: none;
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   PREDICTIVE SEARCH DROPDOWN
   ============================================ */

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 9000;
    max-height: 420px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.15s ease;
    text-align: left;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.search-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-group-label {
    padding: 10px 16px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}

.search-group-label:first-child {
    border-top: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.1s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.focused {
    background: #f0f5ff;
}

.search-result-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-result-thumb-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.search-result-icon.location {
    background: #f0fdf4;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-arrow {
    flex-shrink: 0;
    color: #d1d5db;
    font-size: 0.75rem;
}

.search-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
}

.search-footer-item:hover {
    background: #f0f5ff;
}

.search-footer-item svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   HERO CHIPS
   ============================================ */

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.hero-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chip-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-chip:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   SECTION LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.featured-section {
    padding: 4rem 1.5rem;
    background: #fff;
}

.recent-section {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   LISTINGS GRID & CARDS
   ============================================ */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0,0,0,0.04);
}

.listing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.listing-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-featured {
    background: #fef3c7;
    color: #92400e;
}

.badge-premium {
    background: #6b21a8;
    color: #ede9fe;
}

.listing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.listing-tagline {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.listing-category {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.listing-location {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   LOADING
   ============================================ */

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .hero {
        min-height: 520px;
        background-position: center;
    }

    .hero-inner {
        padding: 3.5rem 1.25rem 3rem;
    }

    .search-bar-input {
        font-size: 0.95rem;
        padding: 1.1rem 0.75rem;
    }

    .search-bar-btn {
        padding: 0 1.25rem;
        min-height: 52px;
    }

    .search-btn-text {
        display: none;
    }

    .search-btn-icon {
        display: block;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero-chips {
        gap: 0.4rem;
    }

    .hero-chip {
        font-size: 0.775rem;
        padding: 0.4rem 0.85rem;
    }
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
*/

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e5e7eb;
        --text-light: #9ca3af;
        --border-color: #374151;
        --bg-light: #111827;
    }

    body {
        background: #0f1117;
        color: #e5e7eb;
    }

    .search-bar-container {
        background: #1f2937;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .search-bar-container:focus-within {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(212, 175, 55, 0.35);
    }

    .search-bar-input {
        color: #e5e7eb;
        background: transparent;
    }

    .search-bar-input::placeholder {
        color: #6b7280;
    }

    .search-bar-icon {
        color: #6b7280;
    }

    .featured-section {
        background: #0f1117;
    }

    .recent-section {
        background: #111827;
    }

    .listing-card {
        background: #1f2937;
        box-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    }

    .listing-card:hover {
        box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    }

    .search-dropdown {
        background: #1f2937;
        box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    }

    .search-result-item {
        color: #e5e7eb;
    }

    .search-result-item:hover,
    .search-result-item.focused {
        background: #2a3a4f;
    }

    .search-group-label {
        border-top-color: #374151;
        color: #6b7280;
    }

    .search-result-name {
        color: #f3f4f6;
    }

    .search-result-icon {
        background: #1e3a5f;
    }

    .search-result-icon.location {
        background: #14432a;
    }

    .search-result-thumb-placeholder {
        background: #374151;
    }

    .search-footer-item {
        border-top-color: #374151;
    }

    .search-footer-item:hover {
        background: #2a3a4f;
    }

    .section-title {
        color: #f3f4f6;
    }
}

/*
Copyright (C) The Greek Directory, 2025-present. All rights reserved.
This source code is proprietary and no part may not be used, reproduced, or distributed 
without written permission from The Greek Directory. Unauthorized use, copying, modification, 
or distribution of this code will result in legal action to the fullest extent permitted by law.
*/
