/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0A0E2A;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Container & Layout */
.container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.game-screen {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 48px;
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    animation: pulse 2s infinite;
}

.status-indicator.standby {
    background: #60a5fa;
}

.status-indicator.active {
    background: #3b82f6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.status-text {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Source Code Pro', monospace;
}

/* Title & Header */
.title {
    font-family: 'Source Code Pro', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.subtitle {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
}

.mission-brief {
    background: rgba(10, 20, 40, 0.5);
    border-left: 3px solid #3b82f6;
    padding: 20px 24px;
    margin-bottom: 32px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

/* Start Screen */
#start-screen {
    display: block;
}

/* Input Styles */
.input-group {
    margin: 30px 0;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.input-group input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    background: rgba(10, 20, 40, 0.5);
    border: 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #64748b;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(10, 20, 40, 0.7);
}

/* Button Styles */
.btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    border: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(37, 99, 235, 0.4) 100%);
    border-color: #3b82f6;
}

/* Game Content */
#game-content {
    display: none;
}

.story-text {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
    color: #cbd5e1;
    white-space: pre-wrap;
    animation: fadeIn 0.5s;
}

.story-text p {
    margin-bottom: 20px;  /* Adjust this value - 20px, 24px, 30px, etc. */
}

.story-text p:last-child {
    margin-bottom: 0;  /* Remove margin from last paragraph */
}

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

/* Choices */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.choice-btn {
    padding: 24px 28px;
    color: #e0e7ff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.choice-btn:hover::before {
    left: 100%;
}

/* Ending Screen */
.ending-screen {
    text-align: center;
}

.ending-screen h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #60a5fa;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ending-stats {
    background: rgba(10, 20, 40, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 24px;
    margin: 20px 0;
    text-align: left;
}

.ending-stats div {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
}

.achievement {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0;
}

/* Loading Indicator */
.loading {
    display: none;
    text-align: center;
    color: white;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Source Code Pro', monospace;
}

.loading.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Alert Box (for critical messages) */
.alert-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px 24px;
    margin-bottom: 32px;
    color: #fca5a5;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Code Pro', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 14px;
    }

    .game-screen {
        padding: 32px 24px;
        min-height: 400px;
    }

    .input-group input {
        max-width: 100%;
        font-size: 14px;
        padding: 14px 16px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 14px;
    }

    .choice-btn {
        padding: 18px 20px;
        font-size: 14px;
    }

    .story-text {
        font-size: 14px;
    }

    .status-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .game-screen {
        padding: 24px 16px;
    }

    .title {
        font-size: 24px;
    }
}

/* Assessment Results Styling */
.results-container {
    max-width: 100%;
    white-space: normal;
}

.profile-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 28px;
    margin-bottom: 36px;
}

.profile-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 13px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    font-weight: 600;
}

.profile-type {
    font-family: 'Source Code Pro', monospace;
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.profile-description {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.profile-quote {
    color: #94a3b8;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    padding-left: 20px;
    margin-top: 20px;
}

.scores-section {
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 16px;
    color: #e0e7ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-weight: 600;
}

.score-item {
    margin-bottom: 24px;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 15px;
    color: #cbd5e1;
    font-weight: 500;
}

.score-value {
    font-family: 'Source Code Pro', monospace;
    color: #60a5fa;
    font-weight: 700;
    font-size: 16px;
}

.score-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(10, 20, 40, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    transition: width 1.2s ease-out;
    position: relative;
}

.score-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.strength-weakness-box {
    background: rgba(10, 20, 40, 0.5);
    padding: 24px;
}

.strength-weakness-box.strengths {
    border-left: 4px solid rgba(34, 197, 94, 0.6);
}

.strength-weakness-box.weaknesses {
    border-left: 4px solid rgba(251, 146, 60, 0.6);
}

.list-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strength-weakness-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength-weakness-box li {
    padding: 10px 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.strength-weakness-box.strengths li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

.strength-weakness-box.weaknesses li::before {
    content: '→';
    color: #fb923c;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

.performance-rating {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(250, 204, 21, 0.05) 100%);
    border: 2px solid rgba(250, 204, 21, 0.4);
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.rating-label {
    font-size: 14px;
    color: #fde047;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rating-stars {
    font-size: 32px;
    margin-bottom: 8px;
}

.rating-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 20px;
    color: #fef08a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.career-outcome {
    background: rgba(10, 20, 40, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 24px;
    margin-bottom: 32px;
}

.outcome-text {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.outcome-highlight {
    font-family: 'Source Code Pro', monospace;
    color: #60a5fa;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.final-message {
    padding-top: 32px;
    margin-top: 32px;
}

.final-message p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.mission-complete {
    text-align: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 18px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 32px;
    font-weight: 700;
}

/* Glossary term styling */
.glossary-term {
    color: #ffffff;
    border-bottom: 1px dotted #ffffff;
    cursor: help;
    transition: all 0.2s;
    position: relative;
}

/* Tooltip box */
.tooltip-box {
    position: absolute;
    background: white;
    padding: 12px;
    color: black;
    font-size: 0.9em;
    max-width: 300px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    line-height: 1.4;
}

.tooltip-box strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
    color: #3b82f6;
}

.team-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.story-select {
    padding: 32px 20px;
    background: rgba(30, 35, 70, 0.4);
    color: #cbd5e1;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.team-green {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.3) 0%, rgba(153, 27, 27, 0.2) 100%);
}

.team-green:hover {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.5) 0%, rgba(153, 27, 27, 0.4) 100%);
}

.team-green.selected {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.6) 0%, rgba(153, 27, 27, 0.5) 100%);
    color: #ffffff;
}

.team-blue {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(29, 78, 216, 0.2) 100%);
}

.team-blue:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(29, 78, 216, 0.4) 100%);
}

.team-blue.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(29, 78, 216, 0.5) 100%);
    color: #ffffff;
}

.team-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.team-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.tooltip-term {
    color: #ffffff;
    border-bottom: 1px dotted #ffffff;
    cursor: help;
    transition: all 0.2s;
    position: relative;
}

/* Tooltip box */
.tooltip-text {
    position: absolute;
    background: white;
    padding: 12px;
    color: black;
    font-size: 0.9em;
    max-width: 300px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    line-height: 1.4;
}

.tooltip-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
    color: #3b82f6;
}

/* ===================================================================
   SCENARIO SELECTION BOXES - Add to game.css
   ================================================================ */

.form-group {
    margin: 30px 0;
}

.form-group label {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scenario Selection Container */
.scenario-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Scenario Box */
.scenario-option {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scenario-option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.scenario-option.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
}

/* Scenario Icon */
.scenario-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #60a5fa;
}

/* Scenario Name */
.scenario-name {
    font-family: 'Source Code Pro', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

/* Scenario Theme */
.scenario-theme {
    font-size: 12px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

/* Scenario Description */
.scenario-description {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    display: block;
}

/* Loading State */
.scenario-option[data-loading="true"] {
    opacity: 0.6;
    cursor: wait;
    border-color: rgba(59, 130, 246, 0.2);
}

/* Disabled State */
.scenario-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .scenario-select {
        grid-template-columns: 1fr;
    }

    .scenario-option {
        padding: 20px;
    }

    .scenario-name {
        font-size: 16px;
    }

    .scenario-description {
        font-size: 13px;
    }
}

/* Animation for scenario boxes appearing */
@keyframes scenarioFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scenario-option {
    animation: scenarioFadeIn 0.4s ease-out;
}

.scenario-option:nth-child(1) {
    animation-delay: 0s;
}

.scenario-option:nth-child(2) {
    animation-delay: 0.1s;
}

.scenario-option:nth-child(3) {
    animation-delay: 0.2s;
}
