/* Gotcha Modal Styles */

/* Modal Overlay */
.gotcha-overlay,
.gotcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100000; /* Increased z-index to be above everything */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gotcha-overlay.active,
.gotcha-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.gotcha-modal {
    background: var(--color-deep-black);
    border: 3px solid var(--color-red);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7) rotate(-5deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gotcha-overlay.show .gotcha-modal,
.gotcha-modal-overlay.show .gotcha-modal {
    transform: scale(1) rotate(0);
}

/* Modal Content States */
.gotcha-content {
    text-align: center;
    color: var(--color-white);
}

.gotcha-state {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.gotcha-state.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fake Freebie State */
.fake-freebie {
    padding: var(--space-lg) 0;
}

.freebie-icon {
    font-size: 5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.freebie-title {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.freebie-offer {
    font-family: var(--font-secondary);
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    line-height: 1.4;
}

.claim-btn {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.claim-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.claim-btn:hover::before {
    width: 300px;
    height: 300px;
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Gotcha Reveal State */
.gotcha-reveal {
    padding: var(--space-lg) 0;
}

.gotcha-duck {
    font-size: 6rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: duckShake 0.5s ease;
}

@keyframes duckShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.gotcha-text {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    color: var(--color-red);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gotcha-message {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-neutral-200);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.gotcha-message .highlight {
    color: var(--color-gold);
    font-weight: 700;
}

/* Real CTA State */
.real-cta {
    padding: var(--space-lg) 0;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.cta-description {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--color-neutral-200);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.whatsapp-cta-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
}

.whatsapp-cta-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    font-size: 1.5em;
}

/* Close Button */
.gotcha-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--color-neutral-400);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: var(--space-xs);
    line-height: 1;
}

.gotcha-close:hover {
    color: var(--color-white);
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-gold);
    animation: confettiFall linear;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.confetti:nth-child(odd) {
    background: var(--color-red);
    width: 8px;
    height: 8px;
}

.confetti:nth-child(3n) {
    background: var(--color-orange);
    width: 12px;
    height: 12px;
}

/* FREE Badge for Persona Cards */
.free-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(255, 30, 0, 0.4);
    animation: pulseBadge 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gotcha-modal {
        padding: var(--space-xl);
        width: 95%;
    }
    
    .freebie-icon {
        font-size: 4rem;
    }
    
    .freebie-title {
        font-size: var(--text-2xl);
    }
    
    .freebie-offer {
        font-size: var(--text-lg);
    }
    
    .gotcha-text {
        font-size: var(--text-3xl);
    }
    
    .gotcha-duck {
        font-size: 5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gotcha-modal,
    .gotcha-state,
    .freebie-icon,
    .gotcha-duck,
    .confetti,
    .free-badge {
        animation: none !important;
    }
    
    .gotcha-modal {
        transform: scale(1) !important;
    }
}

/* New Gotcha Modal Styles */
.gotcha-modal-overlay .gotcha-modal {
    background: var(--color-deep-black);
    border: 3px solid var(--color-red);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7) rotate(-5deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gotcha-modal-overlay.show .gotcha-modal {
    transform: scale(1) rotate(0);
}

.gotcha-modal-overlay .gotcha-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gotcha-modal-overlay .gotcha-header h3 {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    color: var(--color-red);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.gotcha-modal-overlay .gotcha-header p {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-white);
}

.gotcha-modal-overlay .gotcha-content {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gotcha-modal-overlay .gotcha-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: bounce 1s ease infinite;
}

.gotcha-modal-overlay .gotcha-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    text-align: left;
}

.gotcha-modal-overlay .gotcha-benefits li {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xl);
    position: relative;
}

.gotcha-modal-overlay .gotcha-benefits li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gotcha-modal-overlay .gotcha-deal {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    color: var(--color-gold);
    margin-top: var(--space-lg);
}

.gotcha-modal-overlay .gotcha-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gotcha-modal-overlay .btn-gotcha-accept {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.gotcha-modal-overlay .btn-gotcha-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.gotcha-modal-overlay .btn-gotcha-decline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.gotcha-modal-overlay .btn-gotcha-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}
