/* Email Gate Modal Styles */

.email-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.email-gate-overlay.show {
    opacity: 1;
}

.email-gate-modal {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.email-gate-overlay.show .email-gate-modal {
    transform: scale(1);
}

.email-gate-close-screen {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.75rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.email-gate-close-screen:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

.email-gate-content {
    text-align: center;
}

.email-gate-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.email-gate-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.email-gate-form {
    margin-bottom: 1rem;
}

.email-gate-input-group {
    margin-bottom: 1rem;
}

.email-gate-input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.email-gate-input-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.email-gate-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.email-gate-submit:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.email-gate-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-gate-error {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 0.875rem;
}

.email-gate-privacy {
    font-size: 0.813rem;
    color: #777;
    margin: 1rem 0 0 0;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .email-gate-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .email-gate-title {
        font-size: 1.5rem;
    }

    .email-gate-subtitle {
        font-size: 0.938rem;
    }
}

/* Prevent body scroll when modal is open */
body.email-gate-active {
    overflow: hidden;
}
