/* Blowout Page Styles */

* {
    list-style-type: none;
}

.bg-cover {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 20px 0;
}

#blowout-splash {
    position: relative;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 40px 20px;
}

#blowout-splash::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#blowout-splash > * {
    position: relative;
    z-index: 2;
}

/* Section-specific backgrounds will be set inline via PHP */
#blowout-ticket,
#blowout-djs,
#blowout-vip,
#blowout-venue,
#blowout-hotel {
    color: white;
}

.shade {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

.shade-fg {
    background-color: rgba(2, 1, 1, 0.85);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.ticket-image {
    max-width: 90%;
    height: auto;
    margin: 20px;
    transition: transform 0.2s ease-in-out;
}

.ticket-image:hover {
    transform: rotate(3deg) scale(1.05);
}

/* Global typography for blowout sections */
#blowout-splash div,
#blowout-djs div,
#blowout-vip div,
#blowout-venue div,
#blowout-hotel div {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

/* DJ Profile Styles */
.dj-profile {
    margin-bottom: 30px;
}

.dj-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 0;
}

.dj-photo {
    flex: 0 0 250px;
}

.dj-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ed208b;
}

.dj-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.dj-logo {
    margin-bottom: 15px;
}

.dj-logo img {
    max-width: 250px;
    max-height: 100px;
    object-fit: contain;
}

.dj-name {
    font-size: 2.2rem;
    color: #ed208b;
    font-weight: bold;
    margin-bottom: 20px;
}

.dj-content {
    text-align: left;
}

.dj-description {
    margin-bottom: 25px;
    line-height: 1.5;
}

.dj-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.dj-soundcloud {
    margin-top: 20px;
}

/* Blowout Highlights Styles */
#blowout-highlights {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    background: #000;
    padding: 20px 0;
    margin: 0;
}

.highlight-tile {
    flex: 1 1 0;
    max-width: 220px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
    padding: 10px;
}

.highlight-tile img {
    width: 100%;
    max-width: 240px;
    margin-bottom: 12px;
    display: block;
    height: auto;
}

.highlight-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    width: 100%;
    box-sizing: border-box;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Section Title Styles */
.section-title {
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button Styles */
.button-container {
    text-align: center;
    padding: 20px;
}

.button-container .more {
    background-color: #ed208b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-container .more:hover {
    background-color: #d41d7a;
    transform: translateY(-2px);
}

.button-container .more a {
    color: white;
    text-decoration: none;
}

/* Venue section specific styles */
#blowout-venue .shade-fg {
    font-size: 16px;
}

#blowout-hotel p {
    text-align: center;
}

#blowout-hotel .shade-fg {
    font-size: 16px;
}

/* VIP section specific styles */
#blowout-vip .shade-fg {
    font-size: 16px;
    line-height: 1.6;
}

#blowout-vip .shade-fg p {
    line-height: 1.6;
    margin-bottom: 16px;
}

#blowout-vip .shade-fg h1,
#blowout-vip .shade-fg h2,
#blowout-vip .shade-fg h3 {
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Floating Back to Top Button Styles */
.floating-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ed208b;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-back-to-top:hover {
    background-color: #d41d7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-back-to-top.show:hover {
    transform: translateY(-2px);
}

.floating-back-to-top i {
    font-size: 1.1rem;
}

/* Hide old back-to-top button styles */
.back-to-top {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    /* Desktop DJ Profile Layout */
    .dj-profile {
        display: flex;
        align-items: stretch;
        gap: 40px;
        margin-bottom: 40px;
        min-height: 400px;
    }
    
    .dj-header {
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
        width: 100%;
    }
    
    /* Fix for anchor tag wrapper */
    .dj-header > a {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .dj-photo {
        flex: 0 0 300px;
        order: 1;
        display: flex;
        align-items: stretch;
    }
    
    .dj-photo img {
        width: 300px;
        height: 100%;
        min-height: 400px;
        border-radius: 10px;
        object-fit: cover;
        border: 4px solid #ed208b;
    }
    
    .dj-info {
        flex: 1;
        order: 2;
        padding-top: 0;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .dj-logo {
        margin-bottom: 20px;
    }
    
    .dj-logo img {
        max-width: 350px;
        max-height: 120px;
        object-fit: contain;
    }
    
    .dj-content {
        text-align: left;
        flex: 1;
    }
    
    .dj-description {
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .dj-description p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* DJ shade width matching other sections */
    #blowout-djs .shade {
        max-width: 50%;
    }
    
    /* DJ text sizing to match other sections */
    #blowout-djs .shade-fg {
        font-size: 16px;
    }
    
    #blowout-djs .dj-description p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Desktop shade width constraints */
    #blowout-vip .shade {
        max-width: 50%;
    }
    
    #blowout-venue .shade {
        max-width: 50%;
    }
    
    #blowout-hotel .shade {
        max-width: 50%;
    }
    
    /* Venue image layout - desktop */
    #blowout-venue .shade-fg p:first-child {
        text-align: center;
        margin-bottom: 20px;
    }
    
    #blowout-venue .shade-fg p:first-child img:first-child {
        display: block;
        margin: 0 auto;
        max-width: 80%;
        height: auto;
    }
    
    #blowout-venue .shade-fg p:not(:first-child) {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 15px;
        margin: 15px 0;
    }
    
    #blowout-venue .shade-fg p:not(:first-child) img {
        /* Keep original image sizes, just improve spacing */
        height: auto;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .bg-cover {
        background-position: center;
        background-attachment: scroll !important;
        padding: 10px 0;
        min-height: auto;
    }
    
    #blowout-splash {
        min-height: 80vh;
        padding: 20px 10px;
    }

    img {
        width: -webkit-fill-available;
        height: auto;
    }
    
    /* Override general img rule for ticket images */
    .ticket-image {
        width: auto !important;
    }
    
    /* Make first image in splash section full width on mobile */
    #blowout-splash .shade p:first-child a img,
    #blowout-splash .shade p:first-child img {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        object-fit: contain;
    }
    
    .shade {
        max-width: 95%;
        padding: 10px 0;
    }
    
    .shade-fg {
        padding: 25px;
        border-radius: 25px;
        margin: 10px 0;
    }
    
    .ticket-image {
        max-width: 90% !important;
        width: auto !important;
        margin: 20px auto;
        display: block;
    }
    
    .ticket-image:hover {
        transform: scale(1.02);
    }
    
    /* Mobile DJ Profile Styles */
    .dj-profile {
        margin-bottom: 20px;
    }
    
    .dj-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    /* Fix for anchor tag wrapper on mobile */
    .dj-header > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .dj-photo {
        flex: none;
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Keep DJ profile photo within shade container on mobile */
    .dj-photo img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
        border-radius: 10px !important;
        border-width: 2px;
        max-height: 50vh;
    }
    
    .dj-info {
        align-items: center;
        padding-top: 0;
        width: 100%;
    }
    
    /* Make DJ logo 75% width on mobile to stay within shade border */
    .dj-logo img {
        width: 75% !important;
        max-width: 75% !important;
        height: auto !important;
        margin: 0 auto !important;
        object-fit: contain;
        max-height: 150px;
        background: rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 5px;
        display: block;
    }
    
    .dj-name {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .dj-content {
        text-align: center;
        width: 100%;
    }
    
    .dj-content strong {
        margin-top: 15px;
    }
    
    /* Make DJ bios visible on mobile again */
    .dj-description {
        display: block !important;
    }
    
    .dj-description p {
        line-height: 1.5;
    }
    
    .dj-soundcloud iframe {
        height: 120px;
        width: 100%;
    }
    
    /* Mobile Highlights Styles */
    #blowout-highlights {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 15px 5px;
        overflow-x: auto;
    }
    
    .highlight-tile {
        flex: 0 0 calc(25% - 6px);
        max-width: calc(25% - 6px);
        min-width: 80px;
        padding: 4px;
    }
    
    .highlight-tile img {
        max-width: 100%;
        margin-bottom: 6px;
    }
    
    .highlight-label {
        font-size: 0.9rem;
        min-height: 1.5em;
        height: 1.5em;
        line-height: 1.5em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .center-wrapper {
        padding: 20px 15px;
        min-height: 60px;
    }
    
    /* Mobile Section Styles */
    .section-title {
        font-size: 4.4rem;
        margin: 15px 0;
        padding: 15px 10px;
        line-height: 1.5;
    }
    
    .button-container {
        padding: 15px 10px;
    }
    
    .button-container .more {
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 20px;
    }
    
    /* General Mobile Typography */
    .shade-fg h1,
    .shade-fg h2 {
        font-size: 1.8rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .shade-fg h3 {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .shade-fg p {
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .shade-fg {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Hide extra venue images on mobile only */
    #blowout-venue .shade-fg img {
        display: none !important;
    }
    
    #blowout-venue .shade-fg p:first-child img:first-child {
        display: block !important;
    }
    
    /* Mobile VIP styles */
    #blowout-vip .shade-fg {
        line-height: 1.5;
    }
    
    #blowout-vip .shade-fg p {
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    #blowout-vip .shade-fg h1,
    #blowout-vip .shade-fg h2,
    #blowout-vip .shade-fg h3 {
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    /* Floating Back to Top Button Mobile */
    .floating-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .floating-back-to-top i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #blowout-highlights {
        gap: 4px;
        padding: 10px 2px;
    }
    
    .highlight-tile {
        flex: 0 0 calc(25% - 3px);
        max-width: calc(25% - 3px);
        min-width: 70px;
        padding: 2px;
    }
    
    .highlight-label {
        font-size: 0.8rem;
        min-height: 1.2em;
        height: 1.2em;
        line-height: 1.2em;
    }
    
    .section-title {
        font-size: 3.6rem;
        margin: 10px 0;
        padding: 10px 5px;
        line-height: 1.5;
    }
    
    .button-container .more {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .shade-fg h1,
    .shade-fg h2 {
        font-size: 1.5rem;
    }
    
    .shade-fg h3 {
        font-size: 1.2rem;
    }
    
    .shade-fg p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
