/**
 * Clash Energy - Custom Styles
 * Custom CSS modifications for the Clash Energy website
 * 
 * @version 0.0.19
 */

/* ==========================================================================
   Popup Control Styles
   ========================================================================== */

/* Popup container - hidden by default */
.breakdance-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Popup open state */
.breakdance .bde-popup.breakdance-popup--open, 
.breakdance .bde-popup.breakdance-popup--open .breakdance-popup
{
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

/* Popup content container */
.breakdance-popup-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.breakdance-popup.breakdance-popup--open .breakdance-popup-content {
    transform: translateY(0);
}

/* Close button */
.breakdance-popup-close-button {
    position: absolute;
    top: 35px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
    z-index: 10;
}

@media (max-width: 479px) {
    .breakdance-popup-close-button {
        top: 70px;
    }
}

.breakdance-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.breakdance-popup-close-icon svg {
    /* fill: #000; */
}

h1.bde-heading {
    font-family: "Saira Condensed", sans-serif;
    font-size: 64px;
    letter-spacing: -0.1rem;
    text-transform: uppercase;
}
@media (max-width: 479px) {
    h1.bde-heading {
        font-size: 32px;
    }
}

/* ==========================================================================
   Breakdance Overwrites
   ========================================================================== */

.breakdance .bde-section {
    height: 100%;
}

.breakdance .bde-section .section-container {
    height: 100%;
    align-items: center;
    justify-content: center;
}

.breakdance .bde-section-147-125 {
    background-image: url(./../img/frame_19.webp);
}

/* .breakdance .bde-column-147-683,
.breakdance .bde-column-147-683-B,
.breakdance .bde-column-147-683-B.bde-column,
.breakdance .bde-column-147-683.bde-column {
    background-image: url(./../img/vip-band.webp);
    background-size: cover;
    background-position: center center;
} */

.bde-column-147-683.bde-column.vip-band {
    background-image: url('./../img/vip-band.webp');
    overflow-y: hidden;
}

.bde-column-147-698.bde-column {
    padding: 0 16px 0 0;
}

.vip-band-box {
    overflow: auto;
}

   /* ==========================================================================
   Section Visibility States
   ========================================================================== */

.section-active {
    display: block !important;
}

.section-inactive {
    display: none !important;
}

/* ==========================================================================
   Lottery Form Styles - Section 1
   ========================================================================== */

/* Center text in the lottery code input */
#jzmdeb {
    font-size: 1.25rem;
    text-align: center;
    letter-spacing: 0.35rem;
    font-family: monospace;
    text-transform: uppercase;
}

/* Disabled state for the lottery submit button */
#lottery-form102 .breakdance-form-button__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Enabled state for the lottery submit button */
#lottery-form102 .breakdance-form-button__submit:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

/* ==========================================================================
   Loading Section Styles - Section 2
   ========================================================================== */

#Section2 .section-container {
    text-align: center;
    gap: 20px;
}

/* Simple loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#Section2 .bde-lottie-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Code display in loading section */
#Section2 .bde-text-222-110 {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Error Section Styles - Section 3, 4 & 7B
   ========================================================================== */

#Section3 .section-container,
#Section4 .section-container,
#Section7B .section-container {
    text-align: center;
}

#Section3 .bde-icon,
#Section4 .bde-icon,
#Section7B .bde-icon {
    margin-bottom: 20px;
}

#Section3 .bde-icon svg,
#Section4 .bde-icon svg,
#Section7B .bde-icon svg {
    width: 60px;
    height: 60px;
}

/* ==========================================================================
   Form Loading Section Styles - Section 7A
   ========================================================================== */

#Section7A .section-container {
    text-align: center;
}

/* Loading spinner for form submission */
#Section7A .bde-lottie-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Code display in error section */
#Section3 .bde-text-222-153 {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* ==========================================================================
   No Win Section Styles - Section 5
   ========================================================================== */

#Section5 .section-container {
    text-align: center;
}

#Section5 .bde-icon {
    margin-bottom: 20px;
}

#Section5 .bde-icon svg {
    width: 80px;
    height: 80px;
}

/* ==========================================================================
   Win Section Styles - Section 6
   ========================================================================== */

#Section6 .section-container {
    text-align: center;
}

#Section6 .bde-image2 {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 12px;
}

/* Prize name styling */
#Section6 .bde-text-222-134 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ==========================================================================
   Winner Form Styles - Section 7
   ========================================================================== */

#Section7 .section-container {
    text-align: center;
}

#Section7 .bde-form-builder {
    text-align: left;
}

#Section7 .breakdance-form {
    margin-top: 20px;
    gap: 0px;
}

#Section7B .bde-heading {
    margin-bottom: 20px;
}

#Section7B .bde-div {
    margin-top: 20px;
}

/* .breakdance .bde-div {
    align-items: anchor-center;
    text-align: center;
} */

.footer-button-container {
    justify-content: center;
    margin-top: 20px;
}

.form-horisontal-flex{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    grid-column-start: span 12;
    column-gap: 20px;
}

.button-atom.button-atom--primary:hover,
.button-atom.button-atom--primary {
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

/* Prize name in form header */
#Section7 .bde-text-222-127 {
    font-weight: 600;
    font-size: 1.5rem
}

/* Form field styling */
#lottery-form126 .breakdance-form-field {
    margin-bottom: 15px;
}

#lottery-form126 .breakdance-form-field__label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#lottery-form126 .breakdance-form-field__input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
}

/* Checkbox styling */
#lottery-form126 .breakdance-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#lottery-form126 .breakdance-form-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

/* Form submit button states */
#lottery-form126 .breakdance-form-button__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Success Section Styles - Section 8
   ========================================================================== */

#Section8 .section-container {
    text-align: center;
}

#Section8 .bde-icon {
    margin-bottom: 20px;
}

#Section8 .bde-icon svg {
    width: 80px;
    height: 80px;
}

/* Important notice box */
#Section8 .bde-div-222-148 {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ==========================================================================
   Popup Transitions
   ========================================================================== */

/* Smooth transitions for section changes */
.bde-section {
    transition: opacity 0.3s ease-in-out;
}

.section-active {
    opacity: 1;
}

.section-inactive {
    opacity: 0;
}
