/* ============================================
   FAN4ART - FESTIVAL LANDING PAGE STYLES
   Clean, reliable CSS without complex variables
   ============================================ */

/* === BASE STYLES === */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0a0a0f !important;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #ff2e63;
}

/* === FORM STYLES (Blazor defaults) === */
.btn-primary {
    color: #fff;
    background-color: #ff2e63;
    border-color: #ff2e63;
}

/* === DARK THEME OVERRIDES FOR BOOTSTRAP === */
.card {
    background-color: #1a1a2e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff;
}

.card-header {
    background-color: #16213e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff;
}

.card-footer {
    background-color: #16213e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-control, .form-select {
    background-color: #2a2a4a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus, .form-select:focus {
    background-color: #2a2a4a !important;
    border-color: #ff2e63 !important;
    color: #ffffff !important;
}

.form-label {
    color: #ffffff;
}

.form-check-label {
    color: #ffffff;
}

.form-text, .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal-content {
    background-color: #1a1a2e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* === TABLE DARK THEME === */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* === BREADCRUMBS === */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: #ff2e63;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* === MODAL CLOSE BUTTON === */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* === CODE ELEMENTS === */
code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* === BUTTONS === */
.btn-secondary {
    background-color: #4a4a6a;
    border-color: #4a4a6a;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a5a7a;
    border-color: #5a5a7a;
}

.btn-outline-primary {
    color: #ff2e63;
    border-color: #ff2e63;
}

.btn-outline-primary:hover {
    background-color: #ff2e63;
    color: #ffffff;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* === LIST GROUPS === */
.list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.list-group-item.active {
    background-color: #ff2e63;
    border-color: #ff2e63;
}

/* === DROPDOWN MENUS === */
.dropdown-menu {
    background-color: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.15);
}

.dropdown-item {
    color: #ffffff;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #ffffff !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #ffffff !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #ffffff !important;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
    color: #ffffff !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ff2e63;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* === HERO SECTION === */
section.hero-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #16213e 100%) !important;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

section.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 46, 99, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 44, 191, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* === SECTION BACKGROUNDS === */
section.section-purple {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a0a2e 100%) !important;
}

section.section-dark {
    background: #0a0a0f !important;
}

section.section-cta {
    background: linear-gradient(135deg, #ff2e63 0%, #7b2cbf 50%, #16213e 100%) !important;
}

/* === GLOWING TEXT === */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 46, 99, 0.6), 0 0 30px rgba(255, 46, 99, 0.4), 0 0 50px rgba(123, 44, 191, 0.3) !important;
}

.text-glow-subtle {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

/* === GRADIENT TEXT === */
.text-gradient {
    background: linear-gradient(135deg, #ff2e63 0%, #7b2cbf 50%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === PRIMARY BUTTON (Glowing) === */
.btn-glow {
    display: inline-block;
    background: linear-gradient(135deg, #ff2e63 0%, #7b2cbf 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 46, 99, 0.5);
    cursor: pointer;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 46, 99, 0.6);
    color: #ffffff !important;
}

/* === OUTLINE BUTTON === */
.btn-outline-glow {
    display: inline-block;
    background: transparent !important;
    border: 2px solid #ff2e63 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-glow:hover {
    background: #ff2e63 !important;
    box-shadow: 0 4px 20px rgba(255, 46, 99, 0.5);
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* === ARTIST CARDS === */
.artist-card {
    background: linear-gradient(145deg, #1a0a2e, #16213e) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.artist-card:hover {
    transform: translateY(-10px);
    border-color: #ff2e63 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 46, 99, 0.3);
}

.artist-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.artist-card-body {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a0a2e, #16213e);
}

/* === STEP CARDS (How it works) === */
.step-card {
    background: linear-gradient(145deg, #1a0a2e, #16213e) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    height: 100%;
}

.step-card:hover {
    border-color: #ff2e63 !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 46, 99, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff2e63, #7b2cbf) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(255, 46, 99, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* === VOTE BADGE === */
.vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff2e63, #ff6b35) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.4);
}

/* === HOT/TRENDING BADGE === */
.badge-hot {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff2e63) !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.5);
}

/* === COUNTDOWN === */
.countdown-item {
    background: linear-gradient(145deg, #1a0a2e, #16213e) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff2e63 !important;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* === STAT NUMBER === */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff2e63, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SOCIAL LINKS === */
.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a0a2e, #16213e) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    background: #ff2e63 !important;
    border-color: #ff2e63 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 46, 99, 0.4);
    color: #ffffff !important;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === GALLERY === */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === GLASS CARD (Generic) === */
.card-glass {
    background: linear-gradient(145deg, rgba(26, 10, 46, 0.95), rgba(22, 33, 62, 0.95)) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === QR CODE SCANNER === */
.qr-scanner-container {
    position: relative;
    background: #1a1a2e;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.qr-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.qr-processing-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.4em;
}

#qr-scanner-preview {
    width: 100%;
    border-radius: 15px;
}

#qr-scanner-preview video {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 15px;
    display: block;
}

#qr-scanner-preview canvas {
    display: none !important;
}

/* Hide the default html5-qrcode UI elements we don't need */
#qr-scanner-preview__dashboard,
#qr-scanner-preview__dashboard_section,
#qr-scanner-preview__dashboard_section_csr {
    display: none !important;
}

/* Style the scanning region */
#qr-scanner-preview__scan_region {
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
}

/* === RESPONSIVE === */

/* Extra Small Devices (phones, 576px and below) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero-section {
        min-height: auto !important;
    }

    .hero-section .row {
        min-height: 70vh !important;
        padding: 2rem 0 !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Buttons */
    .btn-glow {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-outline-glow {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.5rem;
    }

    /* Countdown */
    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    /* Artist Cards */
    .artist-card-img {
        height: 200px;
    }

    .artist-card-body {
        padding: 1rem;
    }

    .artist-card-body h4 {
        font-size: 1.1rem;
    }

    /* Artist Profile */
    .artist-profile-img {
        width: 180px !important;
        height: 180px !important;
    }

    /* Vote badge */
    .vote-badge {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Badge hot */
    .badge-hot {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Step Cards */
    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-icon {
        font-size: 2.5rem;
        margin: 1rem 0;
    }

    /* QR Scanner */
    #qr-scanner-preview {
        border-radius: 10px;
    }

    #qr-scanner-preview video {
        border-radius: 10px;
    }

    .qr-scanner-container {
        border-radius: 10px;
    }

    /* Forms */
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Cards */
    .card-header h5 {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Tables */
    .table-sm th,
    .table-sm td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Alerts */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Small Devices (tablets, 768px and below) */
@media (max-width: 768px) {
    .btn-glow {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .btn-outline-glow {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .artist-card-img {
        height: 220px;
    }

    #qr-scanner-preview {
        border-radius: 12px;
    }

    #qr-scanner-preview video {
        border-radius: 12px;
    }

    /* Hide desktop-only elements */
    .d-md-none {
        display: none !important;
    }

    /* Spacing adjustments */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
}

/* Medium Devices and up (desktops, 992px and above) */
@media (min-width: 992px) {
    .artist-card-img {
        height: 250px;
    }
}

/* Large Devices (large desktops, 1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
