/* --- 1. GLOBAL & FESTIVAL THEME --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    background: #f8d803; /* Signature Yellow */
    color: #333;
    margin: 0;
}

h1 {
    text-align: center;
    font-size: clamp(2rem, 8vw, 4.5rem); /* Responsive font scaling */
    margin-bottom: 30px;
    color: #1c1c1c;
    text-transform: uppercase;
}

h1 img {
    max-width: 100%; /* Ensures logo doesn't bleed off screen on small phones */
    height: auto;
    max-height: 120px;
}


@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
}

/* --- 2. INPUTS & FILTERS --- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filters input, .filters select { 
    width: auto; 
    min-width: 180px;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fffef3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button {
    background-color: #e60073;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 10px 20px;
    border-radius: 8px;
    text-transform: uppercase;
}

button:hover { background-color: #c40064; }

/* --- 3. VIEW CONTROLS --- */
.view-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
}

.view-btn {
    min-width: 120px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- 4. DAY GROUPING & HEADINGS --- */
.day-group { 
    margin-bottom: 80px; 
    width: 100%;
}

.day-heading {
    font-size: 50px;
    font-weight: bold;
    color: #e60073;
    border-bottom: 4px solid #e60073;
    margin: 60px 0 30px 0; 
    padding-bottom: 10px;
    width: 100%;
    display: block;
    text-transform: uppercase;
}

/* --- 5. GRID VS LIST LOGIC --- */

/* GRID VIEW */
.grid-view .artist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 30px;
    align-items: stretch; /* Ensures all cards in a row have equal height */
}

/* LIST VIEW */
.list-view .artist-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-view .artist {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 20px 30px;
}

.list-view .artist-image {
    width: 80px;
    height: 80px;
    margin: 0 30px 0 0;
}

/* --- 6. SHARED ARTIST STYLES --- */
.artist {
    position: relative; /* Anchor for the absolute heart */
    background: #fff8d0;
    border-radius: 12px;
    border-left: 6px solid #f1c40f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
    
    /* Flex setup for internal centering and footer pinning */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    padding: 25px 15px;
}

.artist.favorite {
    background: #ffe3ee;
    border-left: 6px solid #e60073;
}

.artist:hover { transform: translateY(-5px); }

.artist-image {
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e60073;
    width: 130px;
    height: 130px;
    margin-bottom: 15px;
}

/* --- 7. INTERNAL CARD HIERARCHY --- */

.artist-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Expands to fill the card height */
    width: 100%;
}

.artist-day-label {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 auto 10px auto;
    letter-spacing: 1px;
}

.artist-name {
    display: block;
    /* Scales font size based on container width */
    font-size: clamp(1rem, 3.5vw, 1.3rem); 
    font-weight: 900;
    color: #222;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.fav-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.6rem;
    z-index: 10;
}

.genre {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.stage {
    font-size: 15px;
    margin-bottom: 10px;
}

.stage a {
    color: #e60073;
    font-weight: bold;
    text-decoration: underline;
}

/* --- 8. FOOTER (SUGGEST EDIT) --- */
.suggest-wrapper {
    margin-top: auto; /* Pushes the wrapper to the very bottom of the card */
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

.suggest-link {
    cursor: pointer;
    color: #888;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}

/* --- 9. MOBILE GRID FIX --- */
@media (max-width: 600px) {
    .grid-view .artist-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
        padding: 5px;
    }

    .grid-view .artist {
        padding: 15px 5px;
    }

    .grid-view .artist-image {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }

    .artist-name {
        font-size: 0.95rem;
    }

    .fav-heart {
        font-size: 1.3rem;
        top: 8px;
        right: 8px;
    }
}

/* --- PROMINENT BUY TICKETS BUTTON --- */
.ticket-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
    width: 100%;
}

.buy-tickets-btn {
    background-color: #000;
    color: #f8d803;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.1rem;
}

.buy-tickets-btn:hover {
    background-color: #e60073;
    color: #fff;
    border-color: #e60073;
    transform: scale(1.05);
}

.pulse {
    animation: shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
    0% { box-shadow: 0 0 0 0px rgba(230, 0, 115, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 0, 115, 0); }
    100% { box-shadow: 0 0 0 0px rgba(230, 0, 115, 0); }
}