/* Assessment Page Styles */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary-color: #B20000;
    --secondary-color: #FF9123;
    --start-color: #FF9123;
    --reset-color: #B20000;
    --text-color: #f2e6e8;
    --border-color: rgba(178, 0, 0, 0.8);
    --dark-bg: #1a0f13;
}

/* Base Assessment Styles */
.assessment-intro {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--text-color);
    padding: 10px;
    background: rgba(26, 15, 19, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(178, 0, 0, 0.3);
}

/* Gauges Preview Section */
.gauges-preview {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.7), rgba(50, 30, 40, 0.5));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

.gauge-info {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #ccc;
}

.section-toggles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(178, 0, 0, 0.2);
}

.section-toggle {
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.7), rgba(50, 30, 40, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 16px;
}

.section-toggle.active {
    background: linear-gradient(135deg, var(--reset-color), var(--border-color));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.assessment-section {
    display: none;
    margin-bottom: 20px;
}

.assessment-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.assessment-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--start-color);
    font-size: 22px;
}

.tasks-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 15, 19, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(178, 0, 0, 0.2);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.6), rgba(50, 30, 40, 0.4));
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(178, 0, 0, 0.3);
}

.task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(178, 0, 0, 0.6);
}

.task-item.selected {
    background: linear-gradient(135deg, rgba(70, 30, 40, 0.8), rgba(100, 40, 50, 0.6));
    border-color: var(--border-color);
    box-shadow: 0 5px 15px rgba(178, 0, 0, 0.3);
}

.task-checkbox {
    margin-right: 15px;
    font-size: 22px;
    color: var(--start-color);
    transition: all 0.3s ease;
}

.task-item.selected .task-checkbox {
    transform: scale(1.1);
}

.task-text {
    flex: 1;
    line-height: 1.4;
    font-size: 16px;
}

.task-level {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: 10px;
    color: white;
    font-weight: bold;
}

.task-level.soft {
    background: #9b59b6;
}

.task-level.sensual {
    background: #8e44ad;
}

.task-level.hot {
    background: #e67e22;
}

.task-level.extreme {
    background: #e74c3c;
}

.loading-message {
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-style: italic;
}

/* Results Screen Styles */
.profile-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.7), rgba(50, 30, 40, 0.5));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

#resultsScreen {
    position: relative;
    top: 0;
}

.profile-name {
    font-size: 28px;
    color: var(--start-color);
    margin: 15px 0;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 145, 35, 0.5);
}

.profile-description {
    line-height: 1.6;
    margin-top: 15px;
    font-size: 16px;
}

.gauges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    min-height: 280px;
}

.gauge-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--start-color);
    font-size: 20px;
}

.gauge {
    width: 100%;
    height: 200px;
    max-width: 300px;
    margin: 0 auto;
}

.gauge svg {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 200px;
}

.gauge-label {
    font-size: 10px;
    fill: white;
    text-anchor: middle;
}

.gauge-percentage {
    font-size: 16px;
    fill: var(--start-color);
    font-weight: bold;
}

.gauge-level {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    color: var(--start-color);
    font-weight: bold;
}

.relationship-balance {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.7), rgba(50, 30, 40, 0.5));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 1s ease;
}

.relationship-balance h3 {
    margin-bottom: 15px;
    color: var(--start-color);
    font-size: 22px;
}

#balanceDescription {
    line-height: 1.6;
    font-size: 16px;
}

/* Gauge Animations */
@keyframes needleMove {
    from { transform: rotate(-90deg); }
    to { transform: rotate(var(--rotation-angle)); }
}

@keyframes gaugeAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes colorPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Apply to gauge elements */
#eroticGauge, #romanticGauge, #eroticGaugePreview, #romanticGaugePreview {
    animation: gaugeAppear 1s ease forwards;
}

/* Colors for the erotic gauge */
#eroticGauge .gauge-segment-1, #eroticGaugePreview .gauge-segment-1 { fill: #3498db; }
#eroticGauge .gauge-segment-2, #eroticGaugePreview .gauge-segment-2 { fill: #2ecc71; }
#eroticGauge .gauge-segment-3, #eroticGaugePreview .gauge-segment-3 { fill: #f1c40f; }
#eroticGauge .gauge-segment-4, #eroticGaugePreview .gauge-segment-4 { fill: #e67e22; }
#eroticGauge .gauge-segment-5, #eroticGaugePreview .gauge-segment-5 { fill: #e74c3c; }

/* Colors for the romantic gauge */
#romanticGauge .gauge-segment-1, #romanticGaugePreview .gauge-segment-1 { fill: #9b59b6; }
#romanticGauge .gauge-segment-2, #romanticGaugePreview .gauge-segment-2 { fill: #8e44ad; }
#romanticGauge .gauge-segment-3, #romanticGaugePreview .gauge-segment-3 { fill: #6c3483; }
#romanticGauge .gauge-segment-4, #romanticGaugePreview .gauge-segment-4 { fill: #4a235a; }

/* Active segment animation */
.active-segment {
    animation: colorPulse 2s infinite;
}

/* Gauge needle */
.gauge-needle {
    transform-origin: 100px 100px !important;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    stroke-width: 3px !important;
    stroke-linecap: round;
}

#eroticGauge .gauge-needle, #eroticGaugePreview .gauge-needle {
    stroke: #c0392b !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.8)) !important;
}

#romanticGauge .gauge-needle, #romanticGaugePreview .gauge-needle {
    stroke: #8e44ad !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 5px rgba(142, 68, 173, 0.8)) !important;
}

/* Gauge center */
.gauge-center {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

/* Enhanced gauge visuals */
.gauge-container {
    position: relative;
    margin: 20px auto;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.gauge-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* Button styling */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.button {
    padding: 12px 25px;
    min-width: 150px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.relationship-duration-container {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.6), rgba(50, 30, 40, 0.4));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

.relationship-duration-container h3 {
    color: var(--start-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.duration-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.duration-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    min-width: 180px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.8), rgba(50, 30, 40, 0.6));
    border: 1px solid rgba(178, 0, 0, 0.3);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.duration-button.active {
    background: linear-gradient(135deg, var(--reset-color), var(--border-color));
    border-color: var(--border-color);
    box-shadow: 0 5px 15px rgba(178, 0, 0, 0.3);
}

.duration-button i {
    font-size: 24px;
    margin-bottom: 10px;
}

.duration-button span {
    font-weight: bold;
    margin-bottom: 5px;
}

.duration-button small {
    font-size: 12px;
    opacity: 0.8;
}

/* Transition Message */
.transition-message {
    background: rgba(26, 15, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    line-height: 1.5;
    color: #f1c40f;
    animation: fadeIn 1s ease;
}

/* Previous Results Section */
.previous-results {
    margin: 20px 0 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.6), rgba(50, 30, 40, 0.4));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

.previous-results h3 {
    color: var(--start-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
}

.previous-scores p {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.score-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.score-label {
    font-weight: bold;
    color: var(--start-color);
}

.score-arrows {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    gap: 5px;
}

.arrow-up {
    color: #2ecc71;
}

.arrow-down {
    color: #e74c3c;
}

.arrow-same {
    color: #f1c40f;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, rgba(26, 15, 19, 0.95), rgba(50, 30, 40, 0.9));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.age-modal h2 {
    color: var(--start-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.age-modal p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.age-button.yes {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.age-button.no {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.age-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gauges-container, .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .gauge-container {
        width: 100%;
        max-width: 250px;
    }
    
    .section-toggles {
        flex-direction: column;
        gap: 10px;
    }
    
    .button {
        width: 80%;
    }

    .duration-options {
        flex-direction: column;
        align-items: center;
    }
    
    .duration-button {
        width: 100%;
        max-width: 250px;
    }

    .score-comparison {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-arrows {
        flex-direction: row;
        justify-content: center;
    }

    .age-buttons {
        flex-direction: column;
    }

    .age-modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .duration-options {
        flex-direction: column;
        align-items: center;
    }
    
    .duration-button {
        width: 100%;
        max-width: 250px;
    }
}

/* Force consistent gauge sizing */
#eroticGauge, #romanticGauge, #eroticGaugePreview, #romanticGaugePreview {
    width: 300px !important;
    height: 200px !important;
    max-width: 300px !important;
    max-height: 200px !important;
}

#eroticGauge svg, #romanticGauge svg, #eroticGaugePreview svg, #romanticGaugePreview svg {
    width: 300px !important;
    height: 200px !important;
}

/* Ensure gauge containers don't shrink */
.gauges-container .gauge-container {
    flex-shrink: 0 !important;
    width: 300px !important;
    min-width: 300px !important;
}

/* Fix grey background on erotic gauge */
#eroticGauge .gauge-segment, #eroticGaugePreview .gauge-segment {
    background: none !important;
}

/* Fix mobile gauge shrinking */
@media (max-width: 768px) {
    .gauge-container {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        flex-shrink: 0 !important;
    }
    
    .gauge, .gauge svg {
        width: 280px !important;
        height: 180px !important;
        max-width: 280px !important;
        max-height: 180px !important;
    }
    
    #eroticGauge, #romanticGauge, #eroticGaugePreview, #romanticGaugePreview {
        width: 280px !important;
        height: 180px !important;
    }
    
    .gauges-container {
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .gauge-container {
        width: 250px !important;
        min-width: 250px !important;
    }
    
    .gauge, .gauge svg {
        width: 250px !important;
        height: 160px !important;
    }
}

/* Remove grey background from erotic gauge */
#eroticGauge {
    background: transparent !important;
}

#eroticGauge svg {
    background: transparent !important;
}

/* Ensure SVG paths don't have grey fill */
#eroticGauge path {
    fill: none !important;
}

#eroticGauge .gauge-segment-1 { fill: #3498db !important; }
#eroticGauge .gauge-segment-2 { fill: #2ecc71 !important; }
#eroticGauge .gauge-segment-3 { fill: #f1c40f !important; }
#eroticGauge .gauge-segment-4 { fill: #e67e22 !important; }
#eroticGauge .gauge-segment-5 { fill: #e74c3c !important; }

/* Hide percentage text from gauges */
.gauge-percentage {
    display: none !important;
}

#eroticPercentage, #romanticPercentage, 
#eroticPercentagePreview, #romanticPercentagePreview {
    display: none !important;
}
