/* Primal Flow — Divine Feminine Shadow Assessment — Styles */

:root {
    --primary: #2a1a2e;
    --accent: #d4869c;
    --accent-light: #E8A0BF;
    --text: #ede6ef;
    --text-light: #c9bfcc;
    --bg: #1a0f1e;
    --card-bg: #352340;
    --chapter-bg: #2a1a2e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header .subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
}

/* Progress Bar */
.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: var(--chapter-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Questions */
.question-container {
    min-height: 300px;
}

.question {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
}

.question h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text);
    line-height: 1.5;
}

/* Section Indicator */
.section-indicator {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.section-indicator.maiden { background: #E8A0BF; color: #2a1a2e; }
.section-indicator.mother { background: #7DB88F; color: #1a2e1f; }
.section-indicator.wild_woman { background: #C4956A; color: #2e1a0f; }
.section-indicator.wise_woman { background: #8899AA; color: #1a2030; }
.section-indicator.cross { background: #9C7AB5; color: #1a102e; }

/* Pole Indicator */
.pole-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pole-indicator.light {
    background: rgba(125, 184, 143, 0.2);
    color: #7DB88F;
}
.pole-indicator.active {
    background: rgba(212, 134, 156, 0.2);
    color: #d4869c;
}
.pole-indicator.passive {
    background: rgba(196, 149, 106, 0.2);
    color: #C4956A;
}
.pole-indicator.cross {
    background: rgba(156, 122, 181, 0.2);
    color: #9C7AB5;
}

/* Rating Scale */
.rating-scale {
    margin-top: 20px;
}
.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
}
.scale-labels span {
    flex: 1;
    max-width: 70px;
}

/* Rating Options */
.rating-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 100px;
    padding: 15px 20px;
    border: 2px solid var(--chapter-bg);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    background: var(--chapter-bg);
    color: var(--text);
}

.rating-option:hover {
    border-color: var(--accent);
    background: rgba(212, 134, 156, 0.05);
}

.rating-option.selected {
    border-color: var(--accent);
    background: rgba(212, 134, 156, 0.15);
}

/* Navigation */
.nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-nav {
    flex: 1;
    max-width: 150px;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-back {
    background: var(--chapter-bg);
    color: var(--text-light);
}

.btn-back:hover:not(:disabled) {
    background: var(--card-bg);
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(212, 134, 156, 0.1);
}

/* Results Page Styles */
.results-container {
    padding: 20px 0;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--chapter-bg);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.hidden {
    display: none !important;
}

/* Profile Header */
.profile-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--chapter-bg) 0%, var(--card-bg) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 134, 156, 0.2);
}

.profile-header h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-header .profile-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Integration Score */
.integration-score {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--chapter-bg) 0%, var(--card-bg) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) var(--score-percent), var(--chapter-bg) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--card-bg);
    border-radius: 50%;
}

.score-value {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.integration-score h2 {
    margin-bottom: 5px;
    color: var(--text);
}

.integration-score p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Composite Stats Grid */
.composite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.composite-stat {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.composite-stat .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.composite-stat .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.composite-stat .stat-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Archetype Grid */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .archetype-grid {
        grid-template-columns: 1fr;
    }
    .rating-options {
        flex-direction: column;
    }
    .rating-option {
        min-width: auto;
    }
    .composite-grid {
        grid-template-columns: 1fr;
    }
}

.archetype-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border-left: 4px solid;
}

.archetype-card.maiden { border-color: #E8A0BF; }
.archetype-card.mother { border-color: #7DB88F; }
.archetype-card.wild_woman { border-color: #C4956A; }
.archetype-card.wise_woman { border-color: #8899AA; }

.archetype-card h4 {
    margin-bottom: 5px;
}

.archetype-card .percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0;
}

.archetype-card .net-score {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.archetype-bar {
    height: 8px;
    background: var(--chapter-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.archetype-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.archetype-card.maiden .archetype-bar-fill { background: #E8A0BF; }
.archetype-card.mother .archetype-bar-fill { background: #7DB88F; }
.archetype-card.wild_woman .archetype-bar-fill { background: #C4956A; }
.archetype-card.wise_woman .archetype-bar-fill { background: #8899AA; }

.archetype-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Chart Section */
.chart-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.chart-section h4 {
    margin-bottom: 20px;
    text-align: center;
}

.chart-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Shadow Profile */
.shadow-profile {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.shadow-profile h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.shadow-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shadow-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--chapter-bg);
    border-radius: 8px;
}

.shadow-rank {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.shadow-info {
    flex: 1;
}

.shadow-info h5 {
    margin-bottom: 3px;
    color: var(--text);
}

.shadow-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.shadow-count {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Dormancy Section */
.dormancy-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.dormancy-section h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.dormancy-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dormancy-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dormancy-label {
    width: 120px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.dormancy-bar {
    flex: 1;
    height: 10px;
    background: var(--chapter-bg);
    border-radius: 5px;
    overflow: hidden;
}

.dormancy-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: #9C7AB5;
    transition: width 0.5s ease;
}

.dormancy-value {
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* Archetype Details */
.archetype-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.archetype-detail.maiden { border-color: #E8A0BF; }
.archetype-detail.mother { border-color: #7DB88F; }
.archetype-detail.wild_woman { border-color: #C4956A; }
.archetype-detail.wise_woman { border-color: #8899AA; }

/* Score Bars for Results */
.score-bars {
    margin-top: 20px;
}
.score-row {
    margin-bottom: 15px;
}
.score-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.label-text {
    color: var(--text-light);
}
.label-value {
    color: var(--accent);
    font-weight: 600;
}
.score-bar {
    height: 10px;
    background: var(--chapter-bg);
    border-radius: 5px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.score-bar-fill.light {
    background: #7DB88F;
}
.score-bar-fill.active {
    background: #d4869c;
}
.score-bar-fill.passive {
    background: #C4956A;
}

.archetype-detail h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archetype-detail .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.strongest { background: #7DB88F; color: white; }
.badge.weakest { background: #d4869c; color: white; }
.badge.dormant { background: #9C7AB5; color: white; }

.archetype-detail p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Core Essence */
.core-essence {
    color: var(--accent) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
}

/* Lady vs Wounded Woman Layout */
.lady-wounded-section {
    margin-top: 15px;
}

.lady-block {
    background: rgba(125, 184, 143, 0.08);
    border: 1px solid rgba(125, 184, 143, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.wounded-block {
    background: rgba(212, 134, 156, 0.08);
    border: 1px solid rgba(212, 134, 156, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.lady-label {
    color: #7DB88F;
}

.wounded-label {
    color: #d4869c;
}

.archetype-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.archetype-practice,
.archetype-cost {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.85;
}

.shadow-block {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shadow-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shadow-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shadow-type {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shadow-type.active {
    background: rgba(212, 134, 156, 0.25);
    color: #d4869c;
}

.shadow-type.passive {
    background: rgba(196, 149, 106, 0.25);
    color: #C4956A;
}

/* Actions */
.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.results-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.section-divider {
    border: none;
    height: 1px;
    background: var(--chapter-bg);
    margin: 30px 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }
}
