/* Windows Problem-Checker Frontend Styles */

.wpc-container {
    --wpc-primary: #0078D4;
    --wpc-primary-dark: #005a9e;
    --wpc-primary-light: #4ba0e8;
    --wpc-bg: #ffffff;
    --wpc-card: #f8f9fa;
    --wpc-card-hover: #f0f2f5;
    --wpc-text: #1a1a2e;
    --wpc-text-muted: #6c757d;
    --wpc-border: #e0e0e0;
    --wpc-success: #28a745;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--wpc-bg);
    color: var(--wpc-text);
    padding: 40px 20px;
    border-radius: 16px;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Progress Bar */
.wpc-progress-container {
    margin-bottom: 30px;
}

.wpc-progress-bar {
    height: 6px;
    background: var(--wpc-border);
    border-radius: 3px;
    overflow: hidden;
}

.wpc-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.wpc-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--wpc-text-muted);
}

/* Question Card */
.wpc-question-card {
    background: var(--wpc-card);
    border: 1px solid var(--wpc-border);
    border-radius: 16px;
    padding: 30px;
    animation: wpc-slideUp 0.4s ease-out;
}

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

.wpc-question-label {
    font-size: 0.75rem;
    color: var(--wpc-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wpc-question-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--wpc-text);
}

/* Options */
.wpc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpc-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--wpc-bg);
    border: 1px solid var(--wpc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    color: var(--wpc-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.wpc-option-btn:hover {
    background: var(--wpc-card-hover);
    border-color: var(--wpc-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

.wpc-option-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.wpc-option-btn:hover .wpc-option-icon {
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
    transform: scale(1.05);
}

.wpc-option-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpc-option-title {
    font-weight: 600;
    margin: 0;
    color: var(--wpc-text);
    line-height: 1.3;
    word-wrap: break-word;
}

.wpc-option-desc {
    font-size: 0.8rem;
    color: var(--wpc-text-muted);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Result Card */
.wpc-result-card {
    background: var(--wpc-card);
    border: 1px solid var(--wpc-border);
    border-radius: 16px;
    overflow: hidden;
    animation: wpc-slideUp 0.4s ease-out;
}

.wpc-result-header {
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    padding: 25px 30px;
    color: white;
}

.wpc-result-header h2 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 6px 0;
}

.wpc-result-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.wpc-result-body {
    padding: 30px;
    background: var(--wpc-bg);
}

/* Solution Steps */
.wpc-solution-step {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wpc-border);
}

.wpc-solution-step:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wpc-step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.wpc-step-content h4 {
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--wpc-text);
}

.wpc-step-content p {
    color: var(--wpc-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.wpc-step-code {
    display: inline-block;
    background: #f0f4f8;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--wpc-primary-dark);
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--wpc-border);
}

.wpc-step-code:hover {
    background: #e3edf5;
    border-color: var(--wpc-primary);
}

.wpc-step-code::after {
    content: ' 📋';
    opacity: 0.6;
}

/* Article Link */
.wpc-article-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--wpc-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 25px;
    text-decoration: none;
    color: var(--wpc-text);
    transition: all 0.25s ease;
}

.wpc-article-link:hover {
    border-color: var(--wpc-primary);
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    text-decoration: none;
    color: var(--wpc-text);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

.wpc-article-link-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.wpc-article-link-text {
    flex: 1;
}

.wpc-article-link-label {
    font-size: 0.75rem;
    color: var(--wpc-text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpc-article-link-title {
    font-weight: 600;
    color: var(--wpc-primary-dark);
}

.wpc-article-link-arrow {
    font-size: 1.4rem;
    color: var(--wpc-primary);
}

/* Buttons */
.wpc-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.wpc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.wpc-btn-primary {
    background: linear-gradient(135deg, var(--wpc-primary) 0%, var(--wpc-primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.wpc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
}

.wpc-btn-secondary {
    background: var(--wpc-bg);
    border: 1px solid var(--wpc-border);
    color: var(--wpc-text);
}

.wpc-btn-secondary:hover {
    background: var(--wpc-card-hover);
    border-color: var(--wpc-text-muted);
}

/* Back Button */
.wpc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wpc-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.wpc-back-btn:hover {
    color: var(--wpc-primary);
}

/* Loading */
.wpc-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--wpc-text-muted);
    gap: 15px;
}

.wpc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--wpc-border);
    border-top-color: var(--wpc-primary);
    border-radius: 50%;
    animation: wpc-spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 600px) {
    .wpc-container {
        padding: 20px 12px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .wpc-question-card,
    .wpc-result-body {
        padding: 18px;
    }

    .wpc-result-header {
        padding: 18px;
    }

    .wpc-question-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .wpc-options {
        gap: 8px;
    }

    .wpc-option-btn {
        padding: 12px;
        gap: 12px;
        align-items: flex-start;
    }

    .wpc-option-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.15rem;
        margin-top: 2px;
    }

    .wpc-option-content {
        gap: 4px;
    }

    .wpc-option-title {
        font-size: 0.95rem;
        text-transform: none;
    }

    .wpc-option-desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .wpc-btn-group {
        flex-direction: column;
    }

    .wpc-btn {
        width: 100%;
        justify-content: center;
    }

    .wpc-solution-step {
        gap: 12px;
    }

    .wpc-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Dark Theme Override (optional class) */
.wpc-container.wpc-dark {
    --wpc-bg: #0a0a0f;
    --wpc-card: #12121a;
    --wpc-card-hover: #1a1a25;
    --wpc-text: #ffffff;
    --wpc-text-muted: #8b8b9a;
    --wpc-border: #2a2a3a;
}
