/* ==================== Fonts ==================== */
@font-face {
    font-family: 'HelveticaNeueCondensed';
    src: url('../assets/fonts/HelveticaNeue-Condensed.ttf') format('truetype');
}

/* ==================== Base Styles ==================== */
html, body {
    font-family: 'HelveticaNeueCondensed', Arial, sans-serif !important;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-color: black;
    color: white !important;
}

/* ==================== Main Layout ==================== */
main { flex: 1; }

/* ==================== Footer ==================== */
footer { background-color: #000; color: #fff; }

/* ==================== Category Wrapper ==================== */
.category-wrapper {
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #ed2024;
    border-radius: 10px;
    background-color: #1a1a1a;
}

.category-wrapper h5 {
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ed2024;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ==================== Artist Grid ==================== */
.artist-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.artist-card-wrapper {
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.artist-card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(237,32,36,0.3);
}

.artist-card-wrapper.selected {
    border: 2px solid #ed2024;
    box-shadow: 0 0 12px rgba(237,32,36,0.6);
}

/* ==================== Square Image Container ==================== */
.square-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background-color: #222;
    position: relative;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Hide img completely */
.artist-img { display: none !important; }

/* ==================== Tick Badge ==================== */
.tick-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1.1); opacity: 1; }
}

.artist-card-wrapper.selected .tick-badge {
    opacity: 1;
    animation: pop 0.3s ease forwards;
}

/* ==================== Artist Name ==================== */
.artist-name {
    margin: 0;
    font-weight: 700;
    color: white;
    padding: 0.25rem 0;
    font-size: 1.05rem;
    text-align: center;
}

/* ==================== Grid Breakpoints ==================== */
@media (min-width: 577px) and (max-width: 991px) {
    .artist-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .artist-row { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== Logo Styling ==================== */
.max-logo {
    width: 60%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 576px) {
    .max-logo {
        width: 60%;
    }
}

/* ==================== Voter Registration Wrapper ==================== */
.voter-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
}

@media (max-width: 576px) {
    .voter-wrapper {
        padding: 0 1rem;
    }
}

/* ==================== Voter Registration Card ==================== */
.voter-wrapper .voter-card {
    background-color: #1a1a1a !important;
    border: 1px solid #ed2024 !important;
    border-radius: 10px;
    background-clip: padding-box;
    width: 100%;
    box-sizing: border-box;
}

/* Title */
.voter-title {

    color: #fff;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Labels */
.form-label {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Inputs */
.form-control {
    background-color: #111;
    border: 1px solid #444;
    color: #fff;
}

.form-control::placeholder {
    color: #888;
}

.form-control:focus {
    background-color: #111;
    color: #fff;
    border-color: #ed2024;
    box-shadow: 0 0 0 0.15rem rgba(237, 32, 36, 0.25);
}

/* Register Button */
.register-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ed2024;
    padding: 0.6rem 1.6rem;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background-color: #ed2024;
    color: #fff;
}

/* Disabled / enabled states for Turnstile */
.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-btn.btn-enabled {
    opacity: 1;
    cursor: pointer;
}

/* Disable Bootstrap card border globally */
.card {
    border: none;
}

/* ==================== Turnstile Styling for Welcome Message ==================== */
.voter-wrapper .cf-turnstile-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.voter-wrapper .cf-turnstile {
    transform: scale(0.85);
    transform-origin: top center;
    display: inline-block;
    transition: transform 0.2s ease;
}

@media (max-width: 576px) {
    .voter-wrapper .cf-turnstile {
        transform: scale(0.75);
    }
}

/* Error message when Turnstile is not completed */
.turnstile-error-msg {
    color: #ed2024;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
    text-align: center;
}



/* ==================== Center single item in last row (7 artists) ==================== */

/* Desktop (3-column grid) */
@media (min-width: 992px) {
    .seven-artists .artist-row > .artist-card-wrapper:nth-child(7) {
        grid-column: 2;
    }
}

/* Tablet (2-column grid) */
@media (min-width: 577px) and (max-width: 991px) {
    .seven-artists .artist-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .seven-artists .artist-row > .artist-card-wrapper:nth-child(7) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
    }
}

/* Mobile (1-column grid) — no change needed, already centered naturally */
