﻿/**
 * Aplausos Festival - Main Layout Styles
 */

/* â”€â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f9eb;
}
::-webkit-scrollbar-thumb {
    background: #c4bfb5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a099;
}

/* â”€â”€â”€ Smooth Scroll â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html {
    scroll-behavior: smooth;
    scrollbar-color: #c4bfb5 #f6f9eb;
}

/* â”€â”€â”€ Selection â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::selection {
    background: rgba(104, 25, 25, 0.2);
    color: #3f0201;
}

/* â”€â”€â”€ Focus Outline â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:focus-visible {
    outline: 2px solid #681919;
    outline-offset: 2px;
}

/* â”€â”€â”€ Section transition spacing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* â”€â”€â”€ Scroll Reveal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* â”€â”€â”€ Partner Marquee â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
}

@keyframes marquee {
    /* Falls back to -50% if JS hasn't run yet (e.g. very wide content) */
    from { transform: translateX(0); }
    to   { transform: translateX(var(--marquee-scroll, -50%)); }
}

/* â”€â”€â”€ Section Divider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #681919, transparent);
}
/* Dark variant for sections with dark backgrounds */
.section-divider-dark::before,
.section-divider-dark::after {
    background: linear-gradient(90deg, transparent, rgba(205, 149, 66, 0.4), transparent);
}
/* â”€â”€â”€ Gallery Image Placeholder â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.img-placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(199, 121, 22, 0.06) 0%,
        transparent 50%,
        rgba(234, 101, 36, 0.06) 100%
    );
}

/* â”€â”€â”€ Glow Card Effect â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.glow-card {
    position: relative;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(104, 25, 25, 0.08);
}

/* â”€â”€â”€ Gradient Text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.text-gradient-gold {
    background: linear-gradient(135deg, #681919, #cd9542);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* â”€â”€â”€ Hero Spotlight Effects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-spotlight {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

/* â”€â”€â”€ Header scroll state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* â”€â”€â”€ Main content offset (fixed header is 4rem tall) â”€â”€â”€ */
#main-content {
    padding-top: 4rem;
}
/* Hero spans full viewport and sits under the header */
#main-content > .hero:first-child {
    margin-top: -4rem;
}

/* â”€â”€â”€ Toast Notification â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 9999;
    min-width: 280px;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    background: #f6f9eb;
    color: #3f0201;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(120%);
    transition: transform 0.4s var(--ease-out);
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--error); }
.toast-warning { border-color: var(--warning); }
.toast-info { border-color: var(--info); }

/* â”€â”€â”€ Header Icon Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    color: #f6f9eb;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    color: #cd9542;
    background: rgba(205, 149, 66, 0.12);
}

/* â”€â”€â”€ Cart Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #cd9542, #681919);
    color: #f6f9eb;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(104, 25, 25, 0.45);
}

/* â”€â”€â”€ User Avatar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd9542 0%, #681919 100%);
    color: #f6f9eb;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

/* â”€â”€â”€ Dropdown Panel (Desktop Header) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    padding: 0.5rem;
    background: #16161a;
    border: 1px solid #2a2a2e;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 1.5rem;
    width: 12px;
    height: 12px;
    background: #16161a;
    border-left: 1px solid #2a2a2e;
    border-top: 1px solid #2a2a2e;
    transform: rotate(45deg);
}

.dropdown-panel-sm { min-width: 200px; }

.dropdown-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    color: #f6f9eb;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(205, 149, 66, 0.12);
    color: #cd9542;
}

.dropdown-item.active {
    background: rgba(205, 149, 66, 0.15);
    color: #cd9542;
}

.dropdown-item-icon {
    width: 18px;
    color: #cd9542;
    font-size: 0.9rem;
    text-align: center;
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item-danger:hover .dropdown-item-icon {
    color: #ef4444;
}

[data-dropdown-trigger][aria-expanded="true"] [data-dropdown-chevron] {
    transform: rotate(180deg);
}

/* â”€â”€â”€ Mobile Accordion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mobile-accordion {
    border-radius: 0.5rem;
    overflow: hidden;
}

.mobile-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: rgba(246, 249, 235, 0.85);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-accordion-trigger:hover {
    background: rgba(246, 249, 235, 0.05);
    color: #f6f9eb;
}

.mobile-accordion-trigger[aria-expanded="true"] {
    color: #cd9542;
}

.mobile-accordion-trigger[aria-expanded="true"] [data-accordion-chevron] {
    transform: rotate(180deg);
}

.mobile-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-accordion-panel.open {
    max-height: 500px;
}

.mobile-accordion-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem 0.65rem 2rem;
    color: rgba(246, 249, 235, 0.75);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-accordion-item:hover,
.mobile-accordion-item.active {
    background: rgba(205, 149, 66, 0.12);
    color: #cd9542;
}

/* â”€â”€â”€ Footer (4 columns + newsletter) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer-newsletter-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(246, 249, 235, 0.06);
    border: 1px solid rgba(191, 168, 111, 0.3);
    border-radius: 0.5rem;
    color: #f6f9eb;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-newsletter-input::placeholder {
    color: rgba(246, 249, 235, 0.45);
}

.footer-newsletter-input:focus {
    border-color: #cd9542;
    background: rgba(246, 249, 235, 0.09);
}

.footer-newsletter-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    background: #cd9542;
    color: #3f0201;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-newsletter-btn:hover {
    background: #bfa86f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 149, 66, 0.35);
}

/* ─── Breadcrumb bar ─────────────────────────────────────────────────── */
.breadcrumb-bar {
    background: #3f0201;
    border-bottom: 1px solid rgba(246, 249, 235, 0.1);
}
.breadcrumb-bar nav ol {
    color: rgba(246, 249, 235, 0.55);
}
.breadcrumb-bar nav a {
    color: rgba(246, 249, 235, 0.55);
    transition: color var(--duration);
}
.breadcrumb-bar nav a:hover {
    color: #cd9542;
}
.breadcrumb-bar nav ol li:last-child {
    color: #f6f9eb;
    font-weight: 600;
}

