/* ═══════════════════════════════════════════════
   FLAMING DIRECTORY - Modern Design System
   ═══════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════
   RADZEN COLOR OVERRIDES (Dark Mode Compatibility)
   Maps Radzen's static color classes to MudBlazor
   theme-aware CSS variables so text stays readable
   in both light and dark mode.
   ═══════════════════════════════════════════════ */

.rz-color-base-800 {
    color: var(--mud-palette-text-primary) !important;
}

.rz-color-base-700 {
    color: var(--mud-palette-text-secondary) !important;
}

.rz-color-base-600 {
    color: var(--mud-palette-text-secondary) !important;
}

.rz-color-base-400 {
    color: var(--mud-palette-text-secondary) !important;
    opacity: 0.8;
}

.rz-color-base-300 {
    color: var(--mud-palette-text-primary) !important;
    opacity: 0.7;
}

/* base-50 is used for text on dark backgrounds (carousel, etc.) - keep light */
.rz-color-base-50 {
    color: rgba(255, 255, 255, 0.85) !important;
}


/* ═══════════════════════════════════════════════
   MUDBLAZOR UTILITY OVERRIDES (Dark Mode)
   ═══════════════════════════════════════════════ */

/* Fix gray lighten-4 backgrounds for dark mode */
.gray.lighten-4 {
    background-color: var(--mud-palette-surface) !important;
}

/* Fix hardcoded border used on details pages */
.mud-border-primary {
    border-color: var(--mud-palette-divider) !important;
}

/* Fix white utility class background for dark mode */
.white {
    background-color: var(--mud-palette-surface) !important;
}


/* ─── Page Headings ─── */
h2 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    margin: 1.5rem 0;
    padding-bottom: 0.75rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    position: relative;
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--mud-palette-divider);
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: var(--mud-palette-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 80px;
}

/* ─── Section Spacing ─── */
.section-spacing {
    margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0D1B2A 0%, #1B3A4B 40%, #2A5A6B 100%);
    border-radius: 20px;
    padding: 4rem 2.5rem;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .hero-particles {
        pointer-events: auto;
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(103, 176, 232, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(94, 234, 212, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(103, 176, 232, 0.15);
    border: 1px solid rgba(103, 176, 232, 0.25);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #67B0E8;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    animation: fadeSlideUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    font-weight: 800 !important;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

.hero-highlight {
    background: linear-gradient(135deg, #67B0E8 0%, #5EEAD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.hero-btn-primary {
    border-radius: 12px !important;
    padding: 0.6rem 1.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: 0 4px 20px rgba(217, 68, 82, 0.35) !important;
    transition: all 0.25s ease !important;
}

.hero-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(217, 68, 82, 0.45) !important;
}

.hero-btn-secondary {
    border-radius: 12px !important;
    padding: 0.6rem 1.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transition: all 0.25s ease !important;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ─── Hero Animation ─── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Hero Responsive ─── */
@media (max-width: 640px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
        min-height: 320px;
        border-radius: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ═══════════════════════════════════════════════
   FEATURED CAROUSEL
   ═══════════════════════════════════════════════ */

.featured-carousel {
    border-radius: 16px;
    overflow: hidden;
}

.featured-carousel .mud-carousel-item,
.featured-carousel .mud-carousel-item-content {
    height: 100%;
}

.featured-carousel .mud-carousel-item-content > * {
    height: 100%;
}

/* Carousel – with-image slide (centered two-panel) */
.carousel-with-image-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 280px;
    padding: 1.5rem 3rem;
}

.carousel-with-image-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 1 auto;
    max-width: 380px;
    text-align: center;
    align-items: center;
}

.carousel-with-image-img {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-with-image-img img {
        border-radius: 12px;
        max-width: 320px;
        width: 100%;
    }

/* Carousel – no-image slide layout */
.carousel-no-image-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    padding: 1.5rem 2rem;
}

.carousel-no-image-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    max-width: 680px;
    width: 100%;
}

.carousel-biz-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 16px !important;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

    .carousel-biz-logo img {
        object-fit: cover;
    }

.carousel-no-image-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.carousel-no-image-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.carousel-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
}

    .carousel-meta-item .mud-icon-root {
        font-size: 0.95rem;
    }

@media (max-width: 600px) {
    .carousel-with-image-slide {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .carousel-with-image-text {
        max-width: 100%;
    }

    .carousel-with-image-img img {
        max-width: 200px;
        max-height: 120px;
    }

    .carousel-no-image-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .carousel-no-image-info {
        align-items: center;
    }

    .carousel-no-image-meta {
        justify-content: center;
    }

    .carousel-no-image-slide {
        padding: 1rem;
    }
}


/* ═══════════════════════════════════════════════
   FEATURED CARDS (Promotions & Businesses Lists)
   ═══════════════════════════════════════════════ */

.featured-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.featured-card:hover {
    border-color: var(--mud-palette-primary);
}

.featured-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.featured-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.featured-icon-promo {
    background: color-mix(in srgb, var(--mud-palette-secondary) 12%, transparent);
    color: var(--mud-palette-secondary);
}

.featured-icon-biz {
    background: color-mix(in srgb, var(--mud-palette-tertiary) 12%, transparent);
    color: var(--mud-palette-tertiary);
}

.featured-list-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    padding: 0.5rem;
}

.featured-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.featured-list-item:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.featured-list-item-clickable {
    cursor: pointer;
}

.featured-redeem-btn {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 0.3rem 0.9rem !important;
}

.featured-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    height: 100%;
    min-height: 200px;
}


/* ═══════════════════════════════════════════════
   ABOUT CARDS
   ═══════════════════════════════════════════════ */

.about-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.about-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--mud-palette-primary) 0%, var(--mud-palette-tertiary) 100%);
}

.about-card-accent-alt {
    background: linear-gradient(90deg, var(--mud-palette-tertiary) 0%, var(--mud-palette-secondary) 100%);
}

.about-card-content {
    padding: 1.5rem;
}

.about-initiatives {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.about-initiative-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-divider);
}


/* ═══════════════════════════════════════════════
   CTA SECTION (Bottom)
   ═══════════════════════════════════════════════ */

.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1B3A4B 0%, #0D1B2A 50%, #0F1729 100%);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    margin-top: 2.5rem;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
    .cta-particles {
        pointer-events: auto;
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cta-button {
    margin-top: 0.5rem;
    border-radius: 12px !important;
    padding: 0.65rem 2rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: none !important;
    box-shadow: 0 4px 20px rgba(217, 68, 82, 0.35) !important;
    transition: all 0.25s ease !important;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(217, 68, 82, 0.5) !important;
}


/* ═══════════════════════════════════════════════
   PROMOTION CARDS (Directory Promotions Page)
   ═══════════════════════════════════════════════ */

.promotion-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.promotion-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 16px;
    background: var(--mud-palette-surface);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.promotion-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.business-name {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.promotion-content:hover .business-name {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.promotion-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.promotion-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: transform 0.3s ease;
}

.promotion-content:hover .promotion-title {
    transform: translateY(-2px);
}

.promotion-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.promotion-content:hover .promotion-description {
    opacity: 0.95;
}

.promotion-code {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.875rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.promotion-content:hover .promotion-code {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.code-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.code-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.promotion-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0;
    position: relative;
    z-index: 1;
}

.redeem-button {
    background-color: white !important;
    color: #0F172A !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    border-color: white !important;
    text-transform: none !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.redeem-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    background-color: white !important;
    border-color: white !important;
}

.share-button {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.promotion-footer {
    margin-top: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'DM Sans', sans-serif;
}

.usage-info {
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.expiry-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .promotion-content {
        padding: 1.5rem;
    }

    .promotion-title {
        font-size: 1.15rem;
    }

    .code-value {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promotion-content,
    .promotion-content *,
    .redeem-button,
    .share-button,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-btn-primary,
    .hero-btn-secondary,
    .cta-button {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}


/* ═══════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════ */

.flaming-search-bar {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    transition: border-color 0.2s ease;
}

.flaming-search-bar:focus-within {
    border-color: var(--mud-palette-primary);
}


/* ═══════════════════════════════════════════════
   CHIP SCROLL CONTAINER
   ═══════════════════════════════════════════════ */

.chip-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    max-width: 100%;
    padding-bottom: 0.25rem;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}

.chip-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.chip-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.chip-scroll-container::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════
   BUSINESS / PROMOTION DETAIL PAGES
   ═══════════════════════════════════════════════ */

.biz-header-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-height: 200px;
}

.biz-header-image {
    width: 100%;
    max-height: 200px;
    display: block;
}

.biz-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.biz-detail-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.biz-detail-card:hover {
    border-color: var(--mud-palette-lines-default);
}

.biz-contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.biz-contact-row:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.biz-hours-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}

.biz-hours-today {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 15%, transparent);
}

.biz-review-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.15s ease;
}

.biz-review-card:hover {
    border-color: var(--mud-palette-lines-default);
}


/* ═══════════════════════════════════════════════
   GLOBAL MUD COMPONENT OVERRIDES
   ═══════════════════════════════════════════════ */

/* Smoother MudButton transitions */
.mud-button-root {
    transition: all 0.2s ease !important;
}

/* Better MudDataGrid styling */
.mud-table .mud-table-head .mud-table-row .mud-table-cell {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Better MudPaper defaults */
.mud-paper {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* MudAlert styling */
.mud-alert {
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
}

/* MudChip styling */
.mud-chip {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

/* Nav link active state */
.mud-nav-link.active {
    font-weight: 600;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mud-palette-action-default);
}
