/* Scroll Gate Styles */

/* Overlay */
.scroll-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-gate-closing {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Modal */
.scroll-gate-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

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

/* Close button */
.scroll-gate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scroll-gate-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* Content */
.scroll-gate-content {
    padding: 50px 40px 40px;
    text-align: center;
}

.scroll-gate-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

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

.scroll-gate-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.scroll-gate-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Form */
.scroll-gate-form {
    margin-bottom: 20px;
}

.scroll-gate-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scroll-gate-input-group input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.scroll-gate-input-group input[type="email"]:focus {
    outline: none;
    border-color: #ff1a4d;
    box-shadow: 0 0 0 3px rgba(255, 26, 77, 0.1);
}

.scroll-gate-submit {
    width: 100%;
    padding: 16px 32px;
    background: #ff1a4d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.scroll-gate-submit:hover:not(:disabled) {
    background: #e6174a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 26, 77, 0.3);
}

.scroll-gate-submit:active:not(:disabled) {
    transform: translateY(0);
}

.scroll-gate-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Dismiss button */
.scroll-gate-dismiss {
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
    text-decoration: underline;
    font-family: inherit;
}

.scroll-gate-dismiss:hover {
    color: #666;
}

/* Messages */
.scroll-gate-error,
.scroll-gate-success {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.scroll-gate-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.scroll-gate-success {
    background: #efe;
    color: #393;
    border: 1px solid #cfc;
}

.scroll-gate-error:empty,
.scroll-gate-success:empty {
    display: none;
}

/* Privacy text */
.scroll-gate-privacy {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* Content blur effect */
.content-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Scroll indicator hint */
.scroll-gate-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: #666;
    animation: slideInRight 0.3s ease-out;
    z-index: 9998;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .scroll-gate-content {
        padding: 50px 24px 30px;
    }
    
    .scroll-gate-title {
        font-size: 24px;
    }
    
    .scroll-gate-description {
        font-size: 15px;
    }
    
    .scroll-gate-icon {
        font-size: 40px;
    }
    
    .scroll-gate-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .scroll-gate-input-group {
        flex-direction: row;
    }
    
    .scroll-gate-input-group input[type="email"] {
        flex: 1;
    }
    
    .scroll-gate-submit {
        width: auto;
        white-space: nowrap;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-gate-overlay,
    .scroll-gate-modal,
    .scroll-gate-icon,
    .scroll-gate-close,
    .scroll-gate-submit {
        animation: none;
    }
    
    .scroll-gate-close:hover {
        transform: none;
    }
    
    .scroll-gate-submit:hover:not(:disabled) {
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
.scroll-gate-close:focus-visible,
.scroll-gate-submit:focus-visible,
.scroll-gate-dismiss:focus-visible,
.scroll-gate-input-group input:focus-visible {
    outline: 2px solid #ff1a4d;
    outline-offset: 2px;
}