/* Verifire Common Styles
 * Shared styles extracted from inline <style> tags for CSP compliance
 */

/* ===== Branding Styles ===== */
.flame-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
}

.flame-text {
    background: linear-gradient(to right, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.flame-flicker {
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== Background Patterns ===== */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

/* ===== Form Styles ===== */
.login-input:focus,
.register-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* ===== Loading Spinners ===== */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ea580c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Error Styles ===== */
.error-banner {
    border-left: 4px solid #ef4444;
}

/* ===== Popular Badge ===== */
.popular-badge {
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

/* ===== Toast/Notification Animations ===== */
.toast-enter {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

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

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

/* ===== Transition Helpers ===== */
.step {
    transition: all 0.3s ease;
}

.step.active {
    color: #ea580c;
}

.step.completed {
    color: #10b981;
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu-enter {
    animation: fadeIn 0.3s ease-out;
}

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

/* ===== FAQ Accordion Styles ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ===== Documentation Styles ===== */
.doc-nav-item {
    transition: all 0.2s ease;
}

.doc-nav-item:hover,
.doc-nav-item.active {
    background-color: #fef3e7;
    border-left-color: #ea580c;
}

.doc-section {
    scroll-margin-top: 100px;
}

/* ===== Code Block Styles ===== */
pre code {
    display: block;
    padding: 1rem;
    background-color: #1a1a2e;
    border-radius: 0.5rem;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Progress Bar Widths ===== */
.progress-bar-width-0 { width: 0%; }
.progress-bar-width-10 { width: 10%; }
.progress-bar-width-20 { width: 20%; }
.progress-bar-width-30 { width: 30%; }
.progress-bar-width-40 { width: 40%; }
.progress-bar-width-50 { width: 50%; }
.progress-bar-width-60 { width: 60%; }
.progress-bar-width-70 { width: 70%; }
.progress-bar-width-80 { width: 80%; }
.progress-bar-width-90 { width: 90%; }
.progress-bar-width-100 { width: 100%; }
