/* =========================================
   EVENT / GIVEAWAY MODULE STYLES
   ========================================= */

/* --- Balloon Trigger --- */
.event-balloon-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    cursor: pointer;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    animation: balloon-enter 1s ease-out forwards;
}

.event-balloon-container:hover {
    transform: scale(1.1) translateY(-5px);
}

.event-balloon {
    width: 60px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #ff5e62, #ff9966);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    animation: balloon-float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.1);
}

.event-balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ff9966;
}

.balloon-string {
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    transform-origin: top center;
    animation: string-sway 3s ease-in-out infinite;
}

.balloon-body span {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.balloon-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: tooltip-pop 0.5s ease-out 1s forwards;
}

.balloon-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: white;
}

/* Animations */
@keyframes balloon-enter {
    from {
        transform: translateY(100vh);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes balloon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes string-sway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes tooltip-pop {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- Event Modal --- */
.event-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
    align-items: center;
    justify-content: center;
}

.event-modal.active {
    display: flex;
}

.event-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 40, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-modal.active .event-modal-overlay {
    opacity: 1;
}

.event-modal-container {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 30px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.event-modal.active .event-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.event-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.event-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.event-content {
    padding: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.event-badge {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.event-header h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.event-header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.event-prize-preview {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(0, 0, 0, 0.05);
}

.prize-image-placeholder {
    font-size: 3rem;
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Timer */
.event-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-block span {
    background: #1a1a1a;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 45px;
}

.timer-block label {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
}

.timer-sep {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* Form */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #ff9966;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 102, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.btn-event {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 94, 98, 0.3);
}

.btn-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 94, 98, 0.4);
}

/* Success Ticket */
.ticket-card {
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 10px 10px;
}

.ticket-number {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-top: 5px;
}

.ticket-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    background: white;
    padding: 0 5px;
}

.ticket-note {
    font-size: 0.85rem;
    color: #ff5e62;
    font-weight: 600;
    margin-bottom: 15px;
}