/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Game container */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Game screens */
.game-screen {
    padding: 20px;
    text-align: center;
}

.game-screen.hidden {
    display: none;
}

/* Welcome screen */
#welcome-screen {
    text-align: center;
}

#welcome-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.welcome-container {
    max-width: 600px;
    margin: 0 auto;
}

#welcome-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#welcome-screen p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 15px;
}

/* Character selection screen */
#character-selection-screen {
    text-align: center;
}

#character-selection-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.selection-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
}

.selection-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.selection-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.selection-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-btn {
    padding: 10px 15px;
    font-size: 0.95em;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.selection-btn:hover {
    background-color: #d6dbdf;
    border-color: #95a5a6;
}

.selection-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

#start-with-character-btn {
    margin-top: 20px;
    background-color: #2ecc71;
}

#start-with-character-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Episode container */
.episode-container {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.episode-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.episode-container p {
    font-size: 1.1em;
    color: #34495e;
}

/* Year progress display */
.year-progress-container {
    margin-bottom: 20px;
    text-align: center;
}

.year-progress-container.hidden {
    display: none;
}

.year-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.year-separator {
    color: #7f8c8d;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Episode image styling */
.episode-image-container {
    margin-bottom: 20px;
    text-align: center;
}

.episode-image-container.hidden {
    display: none;
}

#episode-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Choices container */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.choice-btn {
    padding: 15px 20px;
    font-size: 1.1em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: left;
}

.choice-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.warning-choice {
    background-color: #e74c3c;
}

.choice-btn.warning-choice:hover {
    background-color: #c0392b;
}

/* Skills container */
.skills-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.skills-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

#skills-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill {
    background-color: #e8f4f8;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #b8d8f0;
    min-width: 120px;
}

.skill-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.skill-value {
    color: #3498db;
    font-size: 1.2em;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    font-size: 1.1em;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #27ae60;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Outcome display styling */
.outcome-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.outcome-container.hidden {
    display: none;
}

.outcome-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#outcome-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 30px;
    min-height: 100px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

/* End screen */
#end-screen {
    text-align: center;
}

#end-title {
    color: #e74c3c;
    margin-bottom: 20px;
}

#end-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .choice-btn {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    #skills-display {
        flex-direction: column;
        align-items: center;
    }
    
    #episode-image {
        max-height: 200px;
    }
    
    .outcome-container {
        padding: 20px;
    }
    
    #outcome-text {
        font-size: 1em;
        min-height: 80px;
    }
    
    .selection-buttons {
        flex-direction: column;
    }
    
    .selection-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-screen {
    animation: fadeIn 0.5s ease-out;
}

.choice-btn {
    animation: fadeIn 0.5s ease-out;
}

/* Disclaimer styling */
#disclaimer-container {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

#disclaimer-container p {
    font-size: 0.85em !important;
    line-height: 1.5 !important;
    color: #555 !important;
}

#disclaimer-container strong {
    color: #333 !important;
}

/* Career Selection Screen */
#career-selection-screen {
    text-align: center;
}

#career-selection-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.career-intro {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.career-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.career-card {
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    color: #2c3e50;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.career-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.career-name {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.career-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.career-requirements {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 20px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.career-select-btn {
    width: 100%;
    background-color: #3498db;
}

.career-select-btn:hover {
    background-color: #2980b9;
}

/* Career Outcome Screen */
#career-outcome-screen {
    text-align: center;
    padding: 30px;
}

#career-outcome-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

#career-outcome-content {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: left;
}

.career-outcome-details {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    margin-bottom: 25px;
}

.career-outcome-details p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.career-outcome-details p:first-child {
    font-size: 1.1em;
    color: #2c3e50;
}

.career-description {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.8;
    color: #34495e;
}

.career-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.career-stats p {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.career-stats strong {
    color: #2c3e50;
}

.final-summary {
    background-color: #e8f8f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #b8e0d8;
}

.final-summary h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

.final-summary p {
    margin-bottom: 10px;
}

/* Skills grid layout */
.skills-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.skill-category.hidden-skills h4 {
    border-bottom-color: #9b59b6;
}

.final-summary ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.final-summary li {
    padding: 5px 0;
    border-bottom: 1px solid #d0e8e0;
}

.final-summary li:last-child {
    border-bottom: none;
}

/* Hidden skills styling */
.hidden-skills-list li {
    border-bottom-color: #e8d0e8;
}

.public-skills li strong {
    color: #2c3e50;
}

.hidden-skills-list li strong {
    color: #8e44ad;
}

/* Tier styling */
.tier-immediate {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1em;
}

.tier-good {
    color: #2980b9;
    font-weight: bold;
    font-size: 1.1em;
}

.tier-acceptable {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1em;
}

.tier-struggle {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive career selection */
@media (max-width: 768px) {
    .career-card {
        width: 100%;
        max-width: 350px;
    }
    
    .career-options {
        flex-direction: column;
        align-items: center;
    }
    
    .career-outcome-details {
        padding: 20px;
    }
    
    .final-summary {
        padding: 15px;
    }
}

/* Warning choice styling */
.choice-btn.warning-choice {
    background-color: #e74c3c;
}

.choice-btn.warning-choice:hover {
    background-color: #c0392b;
}

/* Share section styling */
.share-section {
    background-color: #e8f8f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #b8e0d8;
    margin-top: 25px;
}

.share-section h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.share-text-preview {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #2c3e50;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
}

.share-text-preview p {
    margin: 0;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    padding: 10px 15px;
    font-size: 0.95em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Platform-specific button colors */
.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.linkedin:hover {
    background-color: #005582;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
}

.share-btn.bluesky {
    background-color: #0288d1;
}

.share-btn.bluesky:hover {
    background-color: #0277bd;
}

.share-btn.mastodon {
    background-color: #3088d4;
}

.share-btn.mastodon:hover {
    background-color: #2a78be;
}

.share-btn.copy {
    background-color: #7f8c8d;
}

.share-btn.copy:hover {
    background-color: #6c7a7d;
}
