/* ==========================================================================
   BHALOI.COM CUSTOMER REVIEWS PLATFORM - CORE STYLESHEET
   ========================================================================== */

:root {
    --bhl-primary: #FF7701;         /* Official Bhaloi Tangerine Orange */
    --bhl-primary-dark: #E66800;
    --bhl-primary-light: #FFF4EB;
    --bhl-accent: #001941;          /* Official Bhaloi Deep Navy */
    --bhl-navy: #001941;
    --bhl-navy-light: #EEF4FF;
    --bhl-success: #10b981;         /* Verified green */
    --bhl-warning: #FF7701;         /* Official Bhaloi Orange review stars */
    --bhl-danger: #ef4444;
    --bhl-bg-subtle: #f8fafc;
    --bhl-border: #e2e8f0;
    --bhl-text-muted: #64748b;
    --bhl-text-dark: #001941;
    --bhl-card-shadow: 0 4px 6px -1px rgba(0, 25, 65, 0.05), 0 2px 4px -2px rgba(0, 25, 65, 0.05);
    --bhl-card-hover: 0 10px 15px -3px rgba(0, 25, 65, 0.08), 0 4px 6px -4px rgba(0, 25, 65, 0.04);
    --bhl-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bhl-text-dark);
    background-color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ==========================================================================
   Brand & Navbar
   ========================================================================== */
.bhl-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--bhl-border);
    padding: 0.85rem 0;
    transition: all 0.2s ease;
}

.bhl-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: #001941;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.bhl-brand-logo .brand-badge {
    background: linear-gradient(135deg, #FF7701, #E66800);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--bhl-primary);
    background-color: var(--bhl-primary-light);
}

.btn-bhl-primary {
    background: linear-gradient(135deg, #FF7701 0%, #E66800 100%);
    border-color: #FF7701;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 119, 1, 0.35);
}

.btn-bhl-primary:hover {
    background: linear-gradient(135deg, #E66800 0%, #CC5C00 100%);
    border-color: #E66800;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 119, 1, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.bhl-hero {
    background: linear-gradient(180deg, #ffffff 0%, #FFF4EB 100%);
    border-bottom: 1px solid var(--bhl-border);
    padding: 3.5rem 0 3rem;
}

.bhl-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -1px;
    color: #0f172a;
    line-height: 1.2;
}

.bhl-hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto;
}

.search-card {
    background: #ffffff;
    border: 1px solid var(--bhl-border);
    border-radius: 50px;
    padding: 0.4rem 0.5rem 0.4rem 1.2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

.search-card input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    color: var(--bhl-text-dark);
}

/* ==========================================================================
   Cards & Layout Components
   ========================================================================== */
.bhl-card {
    background: #ffffff;
    border: 1px solid var(--bhl-border);
    border-radius: var(--bhl-radius);
    box-shadow: var(--bhl-card-shadow);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bhl-card:hover {
    box-shadow: var(--bhl-card-hover);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Category Card */
.category-card {
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--bhl-primary-light);
    color: var(--bhl-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
    background: var(--bhl-primary);
    color: #ffffff;
}

.category-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--bhl-text-dark);
}

.category-count {
    font-size: 0.85rem;
    color: var(--bhl-text-muted);
}

/* ==========================================================================
   Review Cards & Ratings
   ========================================================================== */
.review-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
    color: var(--bhl-warning);
    font-size: 1.1rem;
}

.star-rating .bi-star {
    color: #cbd5e1;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
}

.guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
}

.review-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #001941, #0A2B66);
    color: #ffffff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.review-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.35;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-title a {
    color: inherit;
    text-decoration: none;
}

.review-title a:hover {
    color: var(--bhl-primary);
}

.review-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Media Thumbnails */
.review-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--bhl-border);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.review-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--bhl-primary);
}

/* Store Official Reply */
.store-reply-box {
    background: #f8fafc;
    border-left: 3px solid var(--bhl-primary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.store-reply-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--bhl-primary-dark);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

/* Interactive Controls: Helpful & Report */
.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--bhl-text-muted);
}

.btn-helpful {
    background: transparent;
    border: 1px solid var(--bhl-border);
    color: #475569;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-helpful:hover, .btn-helpful.voted {
    background: #FFF4EB;
    color: var(--bhl-primary);
    border-color: #FFD2B0;
}

.btn-report-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.btn-report-link:hover {
    color: var(--bhl-danger);
    text-decoration: underline;
}

/* ==========================================================================
   Rating Breakdown Bar
   ========================================================================== */
.rating-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}

.rating-bar-progress {
    flex-grow: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--bhl-warning);
    border-radius: 4px;
}

/* ==========================================================================
   Interactive Star Rating Selector (Form)
   ========================================================================== */
.star-rating-select {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
    font-size: 2rem;
    cursor: pointer;
}

.star-rating-select input {
    display: none;
}

.star-rating-select label {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
    color: var(--bhl-warning);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bhl-footer {
    background: #001941;
    color: #8BA3C7;
    padding: 3.5rem 0 1.5rem;
    font-size: 0.92rem;
    border-top: 1px solid #0A2B66;
    margin-top: 4rem;
}

.bhl-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.bhl-footer a:hover {
    color: #FF7701;
}

.bhl-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Admin Panel Specific Layout
   ========================================================================== */
.admin-sidebar {
    width: 260px;
    background: #0f172a;
    min-height: 100vh;
    color: #cbd5e1;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    overflow-y: auto;
}

.admin-main-content {
    margin-left: 260px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-left-color: var(--bhl-primary);
}

.admin-metric-card {
    background: #ffffff;
    border-radius: var(--bhl-radius);
    padding: 1.25rem;
    border: 1px solid var(--bhl-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }
    .admin-main-content {
        margin-left: 0;
        padding: 1rem;
    }
}
