/* ==================== 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; }

main2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

/* ==================== Sections ==================== */
.section {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: #111;
    margin-bottom: 2rem;
    border: 1px solid #ed2024;
    box-shadow: 0 2px 6px rgba(255,0,0,0.1);
}

.section h5 {
    font-size: 1.4rem;
    color: #ed2024 !important;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ed2024;
    padding-bottom: 0.3rem;
}

/* ==================== Cards ==================== */
.card {
    background-color: #111 !important;
    border-radius: 8px;
    border: 1px solid #222 !important;
    padding: 1rem !important;
    margin: 0.5rem 0;
    color: #fff !important;
}

.card-body { padding: 0.5rem !important; }

/* ==================== Buttons ==================== */
button[type="submit"], .btn-nominate {
    background-color: #ed2024;
    color: white !important;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    width: 100%;
}

button[type="submit"]:hover, .btn-nominate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237,32,36,0.5);
}

/* ==================== Logo ==================== */
.max-cocalogo { max-width: 250px !important; width: 50%; height: auto; }
.max-logo { max-width: 600px !important; width: 80%; height: auto; }

/* ==================== Google Translate ==================== */
#google_translate_element { font-size: 12px; }
.goog-te-gadget { color: white !important; }
.goog-te-gadget select {
    background: black !important;
    color: white !important;
    border: 1px solid #ed2024 !important;
    padding: 3px 6px !important;
    border-radius: 4px;
    font-size: 12px;
}

/* ==================== CATEGORY WRAPPER ==================== */
.category-wrapper {
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #ed2024;
    border-radius: 10px;
    background-color: #1a1a1a; /* slightly lighter than main background */
}

/* Category header styling - white and fluid */
.category-wrapper h5 {
    font-size: 1.5rem;
    color: #ffffff; /* white title */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ed2024;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;       /* try to stay on one line */
    overflow: hidden;          /* hide overflow if too long */
    text-overflow: ellipsis;   /* show ... if too long */
}

/* Mobile responsive adjustment for category titles */
@media (max-width: 576px) {
    .category-wrapper h5 {
        font-size: 1.25rem;     /* slightly smaller on mobile */
        white-space: normal;    /* allow wrapping if necessary */
    }
}

/* ============================================================
   ARTIST GRID — HYBRID MOBILE/DESKTOP + TICK POP
   ============================================================ */
.artist-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* mobile default: 3 per row */
    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 container */
.square-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #222;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Mobile / tablet: show img inside square */
.artist-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hide img on desktop, use background-image */
@media (min-width: 992px) { .artist-img { display: none; } }

/* 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;
}

/* ==================== Tick Badge Pop Animation ==================== */
@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;
    transform: scale(1.1);
    animation: pop 0.3s ease forwards;
}

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

/* Responsive text */
@media (max-width: 1200px) { .artist-name { font-size: 1rem; } }
@media (max-width: 992px)  { .artist-name { font-size: 0.95rem; } }
@media (max-width: 768px)  { .artist-name { font-size: 0.9rem; } }
@media (max-width: 576px)  { .artist-name { font-size: 0.85rem; } }

/* Card body padding */
.card-body.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

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

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