/**
 * IntimyFans Age Gate - Styles v1.1.0
 */

/* ===== OVERLAY ===== */
.ifag-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: ifag-fadein 0.3s ease;
}
.ifag-overlay.ifag-fade-out { animation: ifag-fadeout 0.5s ease forwards; }
@keyframes ifag-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ifag-fadeout { from { opacity: 1; } to { opacity: 0; } }

/* ===== MODAL ===== */
.ifag-modal {
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

/* ===== LOGO ===== */
.ifag-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.ifag-brand {
    font-size: 28px; font-weight: 700; margin: 0;
    background: linear-gradient(135deg, #e91e63, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ifag-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e91e63; color: #fff;
    font-size: 14px; font-weight: 700;
    width: 38px; height: 38px;
    border-radius: 50%; flex-shrink: 0;
}

/* ===== STEPS ===== */
.ifag-step { display: none; }
.ifag-step.ifag-active { display: block; animation: ifag-stepin 0.3s ease; }
@keyframes ifag-stepin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ifag-step h2 { font-size: 22px; color: #fff; margin: 0 0 12px; font-weight: 600; }
.ifag-step h3 { font-size: 16px; color: #fff; margin: 0 0 8px; }
.ifag-step p { font-size: 14px; color: #b0b0b0; line-height: 1.6; margin: 0 0 8px; }

/* ===== LEGAL REF ===== */
.ifag-legal-ref {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #e91e63;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    text-align: left;
    margin-bottom: 20px !important;
}
.ifag-legal-ref strong { color: #fff; }

/* ===== METHOD INFO ===== */
.ifag-method-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.ifag-icon-camera { font-size: 36px; margin-bottom: 8px; }

/* ===== PRIVACY ===== */
.ifag-privacy-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(46,125,50,0.1);
    border: 1px solid rgba(46,125,50,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: left;
}
.ifag-privacy-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ifag-privacy-box p { font-size: 13px; color: #a5d6a7; margin: 0; }

/* ===== BUTTONS ===== */
.ifag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
    gap: 8px; margin: 4px;
}
.ifag-btn-primary {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
}
.ifag-btn-primary:hover {
    background: linear-gradient(135deg, #f44336, #e91e63);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.3);
}
.ifag-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.15);
}
.ifag-btn-secondary:hover { background: rgba(255,255,255,0.15); }
.ifag-btn-link {
    background: none; color: #b0b0b0;
    padding: 8px 16px; font-size: 14px;
    text-decoration: underline;
}
.ifag-btn-link:hover { color: #fff; }

/* ===== EXIT ===== */
.ifag-exit-notice { margin-top: 16px !important; font-size: 13px !important; }
.ifag-exit-notice a { color: #e91e63; text-decoration: underline; }

/* ===== CAMERA ===== */
.ifag-camera-container {
    position: relative;
    width: 100%; max-width: 360px;
    margin: 16px auto;
    border-radius: 12px; overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}
.ifag-camera-container video {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.ifag-face-guide {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 180px; height: 240px;
    border: 2px dashed rgba(233,30,99,0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: ifag-pulse 2s ease-in-out infinite;
}
@keyframes ifag-pulse {
    0%, 100% { border-color: rgba(233,30,99,0.4); }
    50% { border-color: rgba(233,30,99,0.8); }
}
.ifag-instruction { color: #b0b0b0 !important; font-size: 13px !important; }

/* ===== STATUS MESSAGE ===== */
.ifag-status-msg {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 0;
    background: rgba(255,255,255,0.05);
    color: #b0b0b0;
}
.ifag-status-success {
    background: rgba(46,125,50,0.15);
    color: #a5d6a7;
    border: 1px solid rgba(46,125,50,0.3);
}
.ifag-status-error {
    background: rgba(244,67,54,0.15);
    color: #ef9a9a;
    border: 1px solid rgba(244,67,54,0.3);
}

/* ===== LOADING ===== */
.ifag-loading, .ifag-analyzing {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px; padding: 20px;
}
.ifag-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: ifag-spin 0.8s linear infinite;
}
@keyframes ifag-spin { to { transform: rotate(360deg); } }

/* ===== RESULTS ===== */
.ifag-result-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}
.ifag-result-icon.ifag-success { background: rgba(46,125,50,0.2); color: #4caf50; border: 2px solid rgba(46,125,50,0.4); }
.ifag-result-icon.ifag-denied { background: rgba(244,67,54,0.2); color: #f44336; border: 2px solid rgba(244,67,54,0.4); }
.ifag-result-icon.ifag-error { background: rgba(255,152,0,0.2); color: #ff9800; border: 2px solid rgba(255,152,0,0.4); }

/* ===== FOOTER ===== */
.ifag-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.ifag-footer p { font-size: 11px; color: #666; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .ifag-modal { padding: 24px 20px; border-radius: 12px; max-height: 95vh; }
    .ifag-brand { font-size: 22px; }
    .ifag-step h2 { font-size: 18px; }
    .ifag-camera-container { max-width: 280px; }
    .ifag-face-guide { width: 140px; height: 190px; }
    .ifag-btn { padding: 12px 24px; font-size: 15px; width: 100%; }
}

/* ===== SCROLLBAR ===== */
.ifag-modal::-webkit-scrollbar { width: 6px; }
.ifag-modal::-webkit-scrollbar-track { background: transparent; }
.ifag-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
