/* Velocity AI™ - Growth Acceleration Platform - Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --velocity-bg: #0a0e1a;
    --velocity-gradient-1: #667eea;
    --velocity-gradient-2: #764ba2;
    --velocity-text: #ffffff;
    --velocity-text-muted: #a0aec0;
    --velocity-panel-bg: rgba(255, 255, 255, 0.03);
    --velocity-border: rgba(255, 255, 255, 0.1);
    --velocity-success: #00d4aa;
    --velocity-warning: #ffc107;
    --velocity-danger: #ff5252;
}

/* Container */
.velocity-container {
    position: relative;
    max-width: 1400px;
    margin: 60px auto;
    padding: 80px 40px;
    background: 
        radial-gradient(800px 600px at 70% -20%, rgba(102, 126, 234, 0.15), transparent),
        radial-gradient(900px 700px at -10% 50%, rgba(118, 75, 162, 0.12), transparent),
        var(--velocity-bg);
    border-radius: 30px;
    color: var(--velocity-text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 600px;
    overflow: hidden;
}

#velocity-canvas {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    pointer-events: none;
    z-index: 1;
}

/* Hero Section */
.velocity-hero-section {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.velocity-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--velocity-gradient-1), var(--velocity-gradient-2));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.velocity-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c7d2fe, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.velocity-subtitle {
    font-size: 1.2rem;
    color: var(--velocity-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Panel */
.velocity-panel {
    position: relative;
    z-index: 2;
    background: var(--velocity-panel-bg);
    border: 1px solid var(--velocity-border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Form */
.velocity-form {
    max-width: 900px;
    margin: 0 auto;
}

.velocity-field {
    margin-bottom: 24px;
}

.velocity-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--velocity-text);
    margin-bottom: 10px;
}

.velocity-field input,
.velocity-field select,
.velocity-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--velocity-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--velocity-text);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.velocity-field input:focus,
.velocity-field select:focus,
.velocity-field textarea:focus {
    outline: none;
    border-color: var(--velocity-gradient-1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.velocity-field select option {
    background: #1a1f36;
    color: white;
}

.velocity-field textarea {
    resize: vertical;
}

.velocity-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Button */
.velocity-btn {
    width: 100%;
    padding: 20px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--velocity-gradient-1), var(--velocity-gradient-2));
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.velocity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.velocity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.velocity-btn:hover::before {
    left: 100%;
}

.velocity-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.velocity-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.velocity-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: velocity-spin 0.8s linear infinite;
}

@keyframes velocity-spin {
    to { transform: rotate(360deg); }
}

/* Result */
.velocity-result {
    margin-top: 60px;
    animation: velocity-fadeIn 0.5s;
}

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

.velocity-result-header {
    margin-bottom: 40px;
}

.velocity-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.velocity-score-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--velocity-border);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.velocity-score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #00d4aa, #00ffc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.velocity-score-label {
    font-size: 0.9rem;
    color: var(--velocity-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.velocity-result-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--velocity-border);
    padding: 50px;
    border-radius: 20px;
    line-height: 1.8;
    color: var(--velocity-text);
}

.velocity-result-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.velocity-btn-secondary {
    padding: 14px 28px;
    border-radius: 30px;
    border: 2px solid var(--velocity-border);
    background: transparent;
    color: var(--velocity-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.velocity-btn-secondary:hover {
    border-color: var(--velocity-gradient-1);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 900px) {
    .velocity-container {
        margin: 20px;
        padding: 60px 25px;
    }
    
    .velocity-panel {
        padding: 35px 25px;
    }
    
    .velocity-form-grid {
        grid-template-columns: 1fr;
    }
    
    .velocity-scores {
        grid-template-columns: 1fr;
    }
    
    .velocity-result-content {
        padding: 30px 20px;
    }
    
    .velocity-result-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .velocity-container {
        background: white;
        color: black;
    }
    
    .velocity-hero-badge,
    .velocity-result-actions,
    #velocity-canvas {
        display: none;
    }
    
    .velocity-panel {
        background: white;
        border: 1px solid #ddd;
    }
}
