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

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

/* ==================== Field Descriptions ==================== */
.desc {
    font-size: 0.9rem;
    color: #e0e0e0 !important;
    margin-bottom: 0.4rem;
}

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

/* ==================== Voting Layout ==================== */
.artist-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
}

.artist-card-wrapper {
    flex: 0 0 32%; /* 3 per row desktop default */
    max-width: 32%;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.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 wrapper */
.square-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 ratio ensures perfect square */
    overflow: hidden;
    border-radius: 6px;
    background: #222;
    margin-bottom: 0.4rem;
}

/* Artist image: full square using cover to maintain mobile look */
.artist-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the square, keeps consistent across devices */
    transition: transform 0.2s;
}

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

.artist-card-wrapper.selected .tick-badge {
    opacity: 1;
    transform: scale(1.1);
}

/* Artist text */
.artist-name {
    margin: 0;
    font-weight: 700;
    color: white;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    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; } }

/* Responsive layout adjustments */
@media (max-width: 992px) {
    .artist-card-wrapper {
        flex: 0 0 49%; /* 2 per row on tablets */
        max-width: 49%;
    }
}
@media (max-width: 576px) {
    .artist-card-wrapper {
        flex: 0 0 32%; /* 3 per row on mobile */
        max-width: 32%;
    }
}

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