/* AI Readiness Check Tool Styles */
.assessment-container {
    max-width: 900px;
    margin: 0 auto;
}

.question-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px var(--glass-shadow);
    display: none;
}

.question-card.active {
    display: block;
    animation: slideIn 0.5s ease forwards;
}

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

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.question-icon {
    font-size: 2.5em;
    margin-right: 20px;
    background: linear-gradient(45deg, var(--grad-main-1), var(--grad-main-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.question-title {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    color: var(--text-primary);
    margin: 0;
}

.question-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    background: var(--bg-panel-dark);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.option:hover::before {
    opacity: 0.1;
}

.option.selected::before {
    opacity: 0.2;
}

.option:hover {
    border-color: var(--grad-main-2);
    transform: translateY(-2px);
}

.option.selected {
    border-color: var(--grad-main-1);
    transform: translateY(-2px);
}

.option-content {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    transition: width 0.3s ease;
    z-index: 1000;
    width: 0%;
}

.results-container {
    background: var(--bg-card-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 25px var(--glass-shadow);
    display: none;
}

.score-display {
    margin-bottom: 40px;
    position: relative;
}

/* Circular Gauge */
.score-gauge {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.gauge-bg, .gauge-fill {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.gauge-bg {
    background: conic-gradient(from 0deg, var(--glass-border) 0deg, var(--glass-border) 360deg);
    opacity: 0.3;
}

.gauge-fill {
    background: conic-gradient(
        from 0deg,
        var(--grad-main-1) 0deg,
        var(--grad-main-2) calc(var(--score-percentage, 0) * 3.6deg),
        transparent calc(var(--score-percentage, 0) * 3.6deg)
    );
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gaugeGlow 2s ease-in-out infinite alternate;
}

@keyframes gaugeGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 169, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 169, 255, 0.6)); }
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    z-index: 2;
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Sparkles Animation */
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--grad-main-2);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

.sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 20%; right: 30%; animation-delay: 0.9s; }
.sparkle:nth-child(5) { top: 50%; left: 10%; animation-delay: 1.2s; }
.sparkle:nth-child(6) { top: 50%; right: 10%; animation-delay: 1.5s; }

/* Celebration Animation */
@keyframes celebration {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .assessment-container {
        padding: 0 10px;
    }
    
    .question-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .question-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .question-icon {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 2em;
    }
    
    .question-title {
        font-size: 1.4em;
        text-align: center;
    }
    
    .question-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .options-container {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .option {
        padding: 15px;
    }
    
    .option-content {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .results-container {
        padding: 25px 20px;
    }
    
    .score-gauge {
        width: 160px;
        height: 160px;
        margin: 0 auto 20px;
    }
    
    .score-number {
        font-size: 2.2rem;
    }
    
    .score-label {
        font-size: 1rem;
    }
    
    .recommendation-card {
        padding: 20px;
        margin: 20px 0;
    }
    
    .recommendation-title {
        font-size: 1.3em;
    }
    
    .recommendation-text {
        font-size: 0.9em;
    }
    
    .action-list li {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .sparkles {
        display: none !important; /* Hide sparkles on mobile for performance */
    }
}

@media (max-width: 480px) {
    .question-card {
        padding: 15px;
    }
    
    .question-title {
        font-size: 1.2em;
    }
    
    .question-text {
        font-size: 0.95em;
    }
    
    .option {
        padding: 12px;
    }
    
    .option-content {
        font-size: 0.85em;
    }
    
    .results-container {
        padding: 20px 15px;
    }
    
    .score-gauge {
        width: 140px;
        height: 140px;
    }
    
    .score-number {
        font-size: 1.8rem;
    }
    
    .recommendation-card {
        padding: 15px;
    }
    
    .recommendation-title {
        font-size: 1.2em;
    }
}

/* Smooth transitions for all interactive elements */
.question-card,
.option,
.progress-bar,
.gauge-fill,
.score-number {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.option:focus,
.cta-button:focus,
.next-button:focus {
    outline: 2px solid var(--grad-main-1);
    outline-offset: 2px;
}

/* Loading state for gauge */
.gauge-fill[style*="--score-percentage: 0"] {
    animation: pulse 1s ease-in-out infinite;
}

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

.recommendation-card {
    background: var(--bg-panel-dark);
    border-radius: var(--border-radius-md);
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.recommendation-card.success {
    border-left: 4px solid #27ae60;
}

.recommendation-card.warning {
    border-left: 4px solid var(--grad-accent-1);
}

.recommendation-card.danger {
    border-left: 4px solid #e74c3c;
}

.recommendation-title {
    font-family: var(--font-secondary);
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.recommendation-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.action-list {
    list-style: none;
    padding: 0;
}

.action-list li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.action-list li::before {
    position: absolute;
    left: 0;
    color: var(--grad-main-1);
    font-weight: bold;
    content: attr(--icon);
}

.next-button {
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.next-button.enabled {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .question-card {
        padding: 25px;
    }
    
    .question-header {
        flex-direction: column;
        text-align: center;
    }
    
    .question-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .results-container {
        padding: 30px;
    }
    
    .score-number {
        font-size: 3rem;
    }
}
