/* ================================================
   HOMEPAGE STYLES - Halal Restaurant Directory
   ================================================ */

/* --- Header (Front Page) --- */
.hp-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: none;
}

.hp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-header .site-title {
    font-size: 24px;
    margin: 0;
}

.hp-header .site-title a {
    color: white;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
}

.hp-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px;
}

.hp-nav-list {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.hp-nav-list li a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.hp-nav-list li a:hover {
    background: rgba(255,255,255,0.22);
    color: white;
}

.hp-nav-list .current-menu-item > a,
.hp-nav-list .current-menu-ancestor > a,
.hp-nav-list .current_page_item > a,
.hp-nav-list .current-page-ancestor > a {
    background: #f9a826;
    color: #1f2a1f;
    text-shadow: none;
}

.hp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* --- Hero Section --- */
.hp-hero {
    position: relative;
    background: linear-gradient(135deg, #0d5c38 0%, #1e7f4f 40%, #27a05f 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(249,168,38,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hp-hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0,0,0,0.45);
    border: none;
    padding: 0;
}

.hp-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 400;
}

/* --- Hero Search Box --- */
.hp-search-box {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.hp-search-fields {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hp-search-input-wrap {
    flex: 2;
    position: relative;
}

.hp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
}

.hp-search-input {
    width: 100%;
    border: none !important;
    padding: 14px 14px 14px 44px !important;
    font-size: 16px;
    border-radius: 10px !important;
    background: #f8f9fa !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.hp-search-input:focus {
    background: #f0f1f3 !important;
    outline: none;
}

.hp-search-select-wrap {
    flex: 1;
}

.hp-search-select {
    width: 100%;
    border: none !important;
    padding: 14px !important;
    font-size: 15px;
    border-radius: 10px !important;
    background: #f8f9fa !important;
    cursor: pointer;
    margin: 0 !important;
    appearance: auto;
    box-shadow: none !important;
}

.hp-search-btn {
    padding: 14px 30px !important;
    background: #f9a826 !important;
    color: white !important;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hp-search-btn:hover {
    background: #e89500 !important;
    transform: translateY(-1px);
}

/* --- Stats Bar --- */
.hp-stats {
    background: white;
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.hp-stats .container {
    max-width: 900px;
}

.hp-stats-grid {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.hp-stat-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.hp-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e7f4f;
    line-height: 1;
}

.hp-stat-label {
    font-size: 13px;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Section Headers --- */
.hp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.hp-section-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

.hp-section-header p {
    color: #777;
    font-size: 1.05rem;
    margin: 0;
}

.hp-section-cta {
    text-align: center;
    margin-top: 35px;
}

/* --- Browse by Country --- */
.hp-countries {
    padding: 70px 0 50px;
    background: #f8faf9;
}

.hp-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.hp-country-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef2f0;
    transition: all 0.3s ease;
    position: relative;
}

.hp-country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30,127,79,0.12);
    border-color: #1e7f4f;
}

.hp-country-flag {
    font-size: 32px;
    flex-shrink: 0;
}

.hp-country-card h3 {
    font-size: 16px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.hp-country-count {
    font-size: 13px;
    color: #888;
}

.hp-country-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hp-country-card:hover .hp-country-arrow {
    color: #1e7f4f;
    right: 12px;
}

/* --- Popular Cities --- */
.hp-cities {
    padding: 70px 0;
    background: white;
}

.hp-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.hp-city-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid #eef2f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hp-city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30,127,79,0.12);
    border-color: #1e7f4f;
}

.hp-city-card-bg {
    height: 80px;
    background: linear-gradient(135deg, #1e7f4f 0%, #27a05f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.hp-city-card:nth-child(2n) .hp-city-card-bg { background: linear-gradient(135deg, #155d3a 0%, #1e7f4f 100%); }
.hp-city-card:nth-child(3n) .hp-city-card-bg { background: linear-gradient(135deg, #0d5c38 0%, #27a05f 100%); }
.hp-city-card:nth-child(4n) .hp-city-card-bg { background: linear-gradient(135deg, #f9a826 0%, #f08a00 100%); }

.hp-city-card-content {
    padding: 14px 16px;
}

.hp-city-card-content h3 {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.hp-city-country {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.hp-city-count {
    font-size: 13px;
    color: #1e7f4f;
    font-weight: 600;
}

/* --- Map Section --- */
.hp-map-section {
    padding: 70px 0;
    background: #f8faf9;
}

.hp-global-map {
    height: 450px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 3px solid white;
}

/* --- Recently Added --- */
.hp-recent {
    padding: 70px 0;
    background: white;
}

.hp-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.hp-recent-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8faf9;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    border: 1px solid #eef2f0;
    transition: all 0.3s ease;
    position: relative;
}

.hp-recent-card:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #1e7f4f;
}

.hp-recent-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e7f4f 0%, #27a05f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-recent-card-info {
    flex: 1;
    min-width: 0;
}

.hp-recent-card-info h3 {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-recent-card-location {
    font-size: 13px;
    color: #1e7f4f;
    margin: 0 0 2px 0 !important;
    font-weight: 500;
}

.hp-recent-card-address {
    font-size: 12px;
    color: #999;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-recent-card-arrow {
    color: #ccc;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hp-recent-card:hover .hp-recent-card-arrow {
    color: #1e7f4f;
    transform: translateX(3px);
}

/* --- CTA Section --- */
.hp-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d5c38 0%, #1e7f4f 50%, #27a05f 100%);
    text-align: center;
}

.hp-cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 12px;
    border: none;
}

.hp-cta-content p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 25px;
    font-size: 1.05rem;
}

.hp-cta .btn.secondary {
    background: #f9a826;
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.hp-cta .btn.secondary:hover {
    background: #e89500;
    color: white;
}

.hp-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-cta .btn.primary {
    background: white;
    color: #1e7f4f;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
}

.hp-cta .btn.primary:hover {
    background: #f4f7f6;
    color: #0d5c38;
}

/* --- Footer Adjustments for Front Page --- */
.front-page .site-footer {
    margin-top: 0;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
}

.site-footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.site-footer-bottom a {
    color: #f9a826;
}

/* ================================================
   RESPONSIVE - Homepage
   ================================================ */
@media (max-width: 768px) {
    .hp-hero {
        min-height: 450px;
        padding: 90px 15px 50px;
    }

    .hp-hero-title {
        font-size: 2rem;
    }

    .hp-hero-subtitle {
        font-size: 1rem;
    }

    .hp-search-fields {
        flex-direction: column;
        gap: 8px;
    }

    .hp-search-input-wrap,
    .hp-search-select-wrap {
        width: 100%;
        flex: auto;
    }

    .hp-search-btn {
        width: 100%;
    }

    .hp-stats-grid {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 15px;
    }

    .hp-stat {
        min-width: 45%;
    }

    .hp-stat-number {
        font-size: 1.5rem;
    }

    .hp-countries,
    .hp-cities,
    .hp-map-section,
    .hp-recent,
    .hp-cta {
        padding: 50px 0;
    }

    .hp-countries-grid {
        grid-template-columns: 1fr;
    }

    .hp-cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-recent-grid {
        grid-template-columns: 1fr;
    }

    .hp-global-map {
        height: 300px;
    }

    .hp-nav {
        display: none;
    }

    .hp-mobile-toggle {
        display: block;
    }

    .hp-nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 45, 31, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        margin: 8px 12px 0;
        padding: 10px 0;
    }

    .hp-nav.active .hp-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .hp-nav.active .hp-nav-list li a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .hp-nav.active .hp-nav-list .current-menu-item > a,
    .hp-nav.active .hp-nav-list .current-menu-ancestor > a,
    .hp-nav.active .hp-nav-list .current_page_item > a,
    .hp-nav.active .hp-nav-list .current-page-ancestor > a {
        background: rgba(249, 168, 38, 0.95);
        color: #1f2a1f;
    }

    .hp-section-header h2 {
        font-size: 1.5rem;
    }

    .hp-cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hp-hero-title {
        font-size: 1.6rem;
    }

    .hp-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hp-city-card-bg {
        height: 60px;
    }

    .hp-stat-number {
        font-size: 1.3rem;
    }
}
