/**
 * ZASK Age-Gate Frontend Styles
 * Modern, responsive gate interface
 */

/* Gate Active - Prevent Scrolling */
body.zask-gate-active {
    overflow: hidden !important;
}

/* MODAL STYLES */
.zask-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zask-gate-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zask-gate-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zaskSlideUp 0.4s ease-out;
}

@keyframes zaskSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.zask-gate-header {
    text-align: center;
    padding: 40px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.zask-gate-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
}

.zask-gate-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.zask-gate-header h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
    font-weight: 700;
}

.zask-gate-body {
    padding: 30px;
}

.zask-form-group {
    margin-bottom: 20px;
}

.zask-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.zask-form-group input[type="text"],
.zask-form-group input[type="email"],
.zask-form-group input[type="password"],
.zask-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.zask-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
}

.zask-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.zask-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.zask-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.zask-toggle-switch {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    position: relative;
    margin-bottom: 30px;
}

.zask-toggle-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.zask-toggle-btn.active {
    color: #ffffff;
}

.zask-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.zask-auth-form {
    display: none;
}

.zask-auth-form.active {
    display: block;
}

/* Messages */
.zask-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.zask-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.zask-message-success {
    background: #d1fae5;
    color: #065f46;
}

/* Mobile */
@media (max-width: 640px) {
    .zask-gate-container {
        width: 95%;
    }
}

/* Custom field validation error */
.zask-field-error input,
.zask-field-error select {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220,38,38,.15);
}
.zask-field-error .zask-checkbox-label span {
    color: #dc2626;
}

/* Required asterisk */
.zask-required {
    color: #dc2626;
    font-weight: bold;
}
