/* =====================================================
   TEAM DYNAMICS ASSESSMENT SPECIFIC STYLES
   ===================================================== */

/* Base Theme overrides */
body.dark-theme {
    background-color: #0A0A0A;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* Landing Section */
.landing-section {
    padding: 140px 24px 80px;
    text-align: center;
    background: #0A0A0A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-section .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.landing-section h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 24px;
    line-height: 1.1;
}

.landing-section .subtitle,
.landing-section .subheadline {
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.landing-section .headline .highlight {
    color: #5C7AFF;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 56px;
    width: 100%;
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.category-card .icon {
    color: #5C7AFF;
    margin-bottom: 16px;
    opacity: 0.9;
    display: flex;
    justify-content: center;
}

.category-card .icon svg {
    width: 32px;
    height: 32px;
}

.category-card .name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.category-card .questions {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 12px;
    opacity: 0.6;
}

.category-card .source {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 8px;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Start Button */
.start-btn {
    background: #fff;
    color: #0A0A0A;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.time-note {
    margin-top: 24px;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Quiz Interface */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 80vh;
    display: none;
    /* Hidden strictly until active */
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-direction: column;
    justify-content: center;
}

.quiz-container.active {
    display: flex;
    opacity: 1;
}

.quiz-progress {
    margin-bottom: 48px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #5C7AFF;
    transition: width 0.4s ease;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5C7AFF;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.question-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 48px;
    line-height: 1.3;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.option-btn:hover {
    background: rgba(92, 122, 255, 0.1);
    border-color: #5C7AFF;
    transform: translateX(4px);
}

.option-btn.selected {
    background: #5C7AFF;
    border-color: #5C7AFF;
    color: white;
}

/* Results Interface */
.results-container {
    display: none;
    opacity: 0;
    text-align: center;
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
    transition: opacity 0.5s ease;
}

.results-container.active {
    display: block;
    opacity: 1;
}

.score-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.score-ring .bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.score-ring .progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-number {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.score-label {
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 4px;
}

.result-archetype {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 24px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.result-desc {
    color: #cbd5e1;
    margin-bottom: 56px;
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.breakdown-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.breakdown-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
}

.breakdown-card .score {
    font-family: 'Playfair Display', serif;
}

.breakdown-card .score.low {
    color: #ef4444;
}

.breakdown-card .score.medium {
    color: #f59e0b;
}

.mini-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Result CTA */
.result-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
    border-radius: 24px;
    color: #fff;
}

/* Roadmap Section */
.roadmap-section {
    margin: 3rem auto;
    max-width: 800px;
    text-align: left;
}

.roadmap-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
}

.roadmap-item .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.roadmap-item .tag.focus {
    background: rgba(92, 122, 255, 0.2);
    color: #5C7AFF;
}

.roadmap-item .tag.action {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.roadmap-item h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.roadmap-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.back-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}