/* ==========================================================================
   PASLANMAZ KALİTE SEÇİM ASİSTANI - STYLESHEET
   Mesut Paslanmaz Modern B2B Design System
   ========================================================================== */

:root {
    --qa-primary: #005A9C;
    --qa-primary-dark: #004070;
    --qa-primary-light: #e8f2f9;
    --qa-accent: #ff6b00;
    --qa-dark: #2F353B;
    --qa-darker: #1A1E22;
    --qa-gray-bg: #F4F6F8;
    --qa-border: #E2E8F0;
    --qa-card-border: #E5E9EC;
    --qa-success: #10B981;
    --qa-warning: #F59E0B;
    --qa-radius: 12px;
    --qa-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --qa-shadow-md: 0 10px 25px rgba(0, 90, 156, 0.08);
    --qa-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --qa-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Header & Container */
.qa-page-wrapper {
    background-color: var(--qa-gray-bg);
    min-height: 85vh;
}

.qa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 90, 156, 0.1);
    color: var(--qa-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Assistant Wizard Main Container */
.qa-card-main {
    background: #ffffff;
    border-radius: var(--qa-radius);
    border: 1px solid var(--qa-card-border);
    box-shadow: var(--qa-shadow-md);
    overflow: hidden;
    transition: var(--qa-transition);
}

/* Progress Header */
.qa-progress-header {
    background: linear-gradient(135deg, #1A1E22 0%, #2F353B 100%);
    padding: 24px 32px;
    color: #ffffff;
}

.qa-step-title-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.qa-step-main-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 4px 0 0 0;
    color: #ffffff;
}

.qa-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 18px;
}

.qa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00A3FF, #005A9C);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Wizard Steps */
.qa-step-content {
    display: none;
    padding: 36px 32px;
    animation: qaFadeIn 0.35s ease forwards;
}

.qa-step-content.active {
    display: block;
}

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

.qa-question-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qa-darker);
    margin-bottom: 8px;
}

.qa-question-desc {
    font-size: 0.92rem;
    color: #64748B;
    margin-bottom: 24px;
}

/* Choice Cards Grid */
.qa-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.qa-options-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.qa-choice-card {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--qa-border);
    border-radius: 10px;
    padding: 20px 18px;
    cursor: pointer;
    transition: var(--qa-transition);
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.qa-choice-card:hover {
    border-color: #93C5FD;
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: var(--qa-shadow-sm);
}

.qa-choice-card.selected {
    border-color: var(--qa-primary);
    background: var(--qa-primary-light);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}

.qa-choice-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
}

.qa-choice-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--qa-darker);
    margin-bottom: 4px;
    line-height: 1.3;
}

.qa-choice-desc {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.4;
}

.qa-choice-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: var(--qa-transition);
    font-size: 0.75rem;
    color: transparent;
}

.qa-choice-card.selected .qa-choice-check {
    background: var(--qa-primary);
    border-color: var(--qa-primary);
    color: #ffffff;
}

/* Custom Input Boxes */
.qa-custom-box {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.qa-custom-box label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--qa-dark);
}

/* Navigation Footer */
.qa-wizard-footer {
    padding: 20px 32px;
    background: #F8FAFC;
    border-top: 1px solid var(--qa-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--qa-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.qa-btn-prev {
    background: transparent;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.qa-btn-prev:hover {
    background: #E2E8F0;
    color: var(--qa-darker);
}

.qa-btn-next {
    background: var(--qa-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.25);
}

.qa-btn-next:hover {
    background: var(--qa-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 90, 156, 0.35);
}

.qa-btn-reset {
    color: #64748B;
    background: transparent;
    font-size: 0.88rem;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
.qa-btn-reset:hover {
    color: #DC2626;
}

/* ==========================================================================
   RESULTS VIEW
   ========================================================================== */

.qa-results-container {
    display: none;
    animation: qaFadeIn 0.4s ease forwards;
}

.qa-results-container.active {
    display: block;
}

/* Top Best Match Hero Card */
.qa-result-hero {
    background: linear-gradient(135deg, #1A1E22 0%, #2F353B 100%);
    border-radius: var(--qa-radius);
    padding: 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--qa-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qa-result-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.qa-match-badge {
    background: #10B981;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.qa-result-grade-name {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 12px 0 4px 0;
    color: #ffffff;
}

.qa-result-grade-family {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Result Reason List */
.qa-reason-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--qa-card-border);
    height: 100%;
}

.qa-reason-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qa-darker);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-reason-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
}

.qa-reason-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #10B981;
    font-size: 1.05rem;
}

.qa-limitations-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.qa-limitations-box .qa-reason-title {
    color: #92400E;
}

.qa-limitations-box li i {
    color: #D97706;
}

/* Alternative Grade Cards */
.qa-alt-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--qa-card-border);
    padding: 22px;
    transition: var(--qa-transition);
    height: 100%;
}

.qa-alt-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--qa-shadow-sm);
}

.qa-alt-score {
    background: #E0F2FE;
    color: #0369A1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Comparison Matrix Table */
.qa-table-responsive {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--qa-card-border);
    background: #ffffff;
}

.qa-compare-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.92rem;
}

.qa-compare-table thead th {
    background: #F1F5F9;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--qa-darker);
    border-bottom: 2px solid var(--qa-border);
}

.qa-compare-table th.best-col,
.qa-compare-table td.best-col {
    background-color: rgba(0, 90, 156, 0.04);
    border-left: 2px solid var(--qa-primary);
    border-right: 2px solid var(--qa-primary);
}

.qa-compare-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

.qa-star-rating {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.qa-cost-badge {
    font-weight: 700;
    color: #059669;
    letter-spacing: 2px;
}

/* Recommended Products Grid */
.qa-product-link-card {
    background: #ffffff;
    border: 1px solid var(--qa-card-border);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--qa-darker);
    transition: var(--qa-transition);
}

.qa-product-link-card:hover {
    border-color: var(--qa-primary);
    background: var(--qa-primary-light);
    color: var(--qa-primary);
    transform: translateX(4px);
}

.qa-product-link-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
}

/* Call To Action Buttons & Modal */
.qa-cta-bar {
    background: #ffffff;
    border-radius: var(--qa-radius);
    padding: 28px;
    border: 1px solid var(--qa-card-border);
    box-shadow: var(--qa-shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.qa-btn-quote {
    background: #ff6b00;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.qa-btn-quote:hover {
    background: #e66000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.qa-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.qa-btn-whatsapp:hover {
    background: #20BA5A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Engineering Disclaimer */
.qa-disclaimer {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.84rem;
    color: #64748B;
    line-height: 1.5;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qa-progress-header {
        padding: 18px 20px;
    }
    .qa-step-content {
        padding: 24px 18px;
    }
    .qa-wizard-footer {
        padding: 16px 18px;
    }
    .qa-options-grid {
        grid-template-columns: 1fr;
    }
    .qa-result-hero {
        padding: 24px 20px;
    }
    .qa-result-grade-name {
        font-size: 1.8rem;
    }
    .qa-cta-bar {
        flex-direction: column;
        text-align: center;
    }
    .qa-cta-bar .qa-btn {
        width: 100%;
        justify-content: center;
    }
}
