/* ========================================
   CELEBRITY BODYGUARD - PHASE 2 STYLES
   Dark Sophisticated Theme - 2025 Standards
   Phase 2: Advanced Threat System
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a1a1a 100%);
    color: #e5e5e5;
    overflow: hidden;
    height: 100vh;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.screen.active {
    display: flex;
}

.screen-content {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* ===== TYPOGRAPHY ===== */
.game-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.game-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #c0c0c0;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

h2 {
    font-size: 2em;
    color: #d4af37;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

h3 {
    color: #d4af37;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0c74a 0%, #d4af37 100%);
    box-shadow: 0 7px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #f0c74a;
    color: #f0c74a;
}

.menu-section {
    text-align: center;
    margin: 30px 0;
}

/* ===== BACK TO HOME LINK ===== */
.back-home {
    display: block;
    text-align: center;
    color: #d4af37;
    text-decoration: none;
    font-size: 1em;
    margin-top: 30px;
    padding: 10px;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: #f0c74a;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.version-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 20px;
}

/* ===== HOW TO PLAY SCREEN ===== */
.tutorial-content {
    text-align: left;
}

.tutorial-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid #d4af37;
    border-radius: 5px;
}

.tutorial-section p {
    margin: 8px 0;
    line-height: 1.6;
}

.tutorial-section strong {
    color: #d4af37;
}

/* ===== BRIEFING SCREEN ===== */
.briefing-content {
    margin: 30px 0;
}

.briefing-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 5px;
}

.briefing-label {
    color: #d4af37;
    font-weight: 600;
}

.briefing-value {
    color: #e5e5e5;
    text-align: right;
    max-width: 60%;
}

.briefing-threats {
    margin-top: 30px;
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 5px;
}

.briefing-threats ul {
    list-style: none;
    margin-top: 10px;
}

.briefing-threats li {
    padding: 8px 0;
    color: #e5e5e5;
}

.briefing-buttons {
    text-align: center;
    margin-top: 30px;
}

/* ===== GAME SCREEN ===== */
#gameScreen {
    background: #0a1929;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ===== HUD (HEADS-UP DISPLAY) ===== */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(10, 25, 41, 0.95) 0%, rgba(10, 25, 41, 0) 100%);
    z-index: 10;
}

.hud-left, .hud-center, .hud-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hud-center {
    align-items: center;
    justify-content: center;
}

.hud-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hud-label {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-value {
    color: #e5e5e5;
    font-weight: 700;
    font-size: 1.1em;
}

.position-indicator {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-safe {
    color: #10b981;
}

.status-danger {
    color: #dc2626;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== POSITION GUIDE ===== */
.position-guide {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(10, 25, 41, 0.9);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid #d4af37;
}

.guide-item {
    color: #c0c0c0;
    font-size: 0.9em;
}

.guide-item strong {
    color: #d4af37;
    font-size: 1.1em;
}

/* ===== GAMEPLAY HINT ===== */
.gameplay-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 175, 55, 0.95);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #f0c74a;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        opacity: 0.9;
    }
}

/* ===== RESULTS SCREEN ===== */
.results-content {
    margin: 30px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 5px;
}

.result-label {
    color: #d4af37;
    font-weight: 600;
}

.result-value {
    color: #e5e5e5;
    font-weight: 700;
    font-size: 1.2em;
}

.mission-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 5px;
    text-align: center;
    color: #10b981;
    font-size: 1.1em;
    line-height: 1.6;
}

.mission-message.failure {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.results-buttons {
    text-align: center;
    margin-top: 30px;
}

/* ===== SCROLLBAR STYLING ===== */
.screen-content::-webkit-scrollbar {
    width: 8px;
}

.screen-content::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
}

.screen-content::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.screen-content::-webkit-scrollbar-thumb:hover {
    background: #f0c74a;
}

/* ===== PHASE 2: THREAT RADAR ===== */
.threat-radar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(10, 25, 41, 0.7);  /* More transparent - can see through */
    backdrop-filter: blur(8px);  /* Blur effect for modern look */
    -webkit-backdrop-filter: blur(8px);  /* Safari support */
    border: 1px solid rgba(212, 175, 55, 0.8);  /* Slightly transparent border */
    border-radius: 6px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.radar-title {
    color: #d4af37;
    font-size: 0.7em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 3px;
}

.radar-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.radar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radar-icon {
    font-size: 0.9em;
    width: 18px;
    text-align: center;
}

.radar-label {
    color: #c0c0c0;
    font-size: 0.7em;
    flex: 1;
}

.radar-count {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.8em;
    min-width: 16px;
    text-align: right;
}

.radar-count.warning {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Not Supported Message */
.mobile-message {
    text-align: center;
    max-width: 600px;
}

.mobile-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.mobile-reasons {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.reason-item {
    padding: 8px 0;
    color: #e5e5e5;
    font-size: 0.95em;
}

.mobile-recommendation {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.mobile-recommendation p {
    margin: 5px 0;
}

.mobile-alternatives {
    margin-top: 20px;
}

.game-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.game-suggestions div {
    color: #c0c0c0;
    padding: 5px;
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2em;
    }
    
    .screen-content {
        padding: 20px;
    }
    
    #hud {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .position-guide {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* ========================================
   PHASE 3 STYLES - SCENARIOS & CONSEQUENCES
   ======================================== */

/* Career Progress Display */
.career-progress {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.career-stat {
    text-align: center;
}

.career-label {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

.career-value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #d4af37;
}

/* Scenario Selection Grid */
.scenario-selection {
    max-width: 1000px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scenario-card {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scenario-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.scenario-card.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.scenario-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.scenario-card.locked:hover {
    transform: none;
    border-color: rgba(212, 175, 55, 0.3);
}

.scenario-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.scenario-card h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.scenario-difficulty {
    color: #fb923c;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.scenario-desc {
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.4;
}

.scenario-unlock {
    margin-top: 10px;
    font-size: 0.85em;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.scenario-card.unlocked .scenario-unlock {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.scenario-card.locked .scenario-unlock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Scenario Details */
.scenario-details {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.scenario-details.hidden {
    display: none;
}

.scenario-details h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.briefing-section {
    margin-bottom: 25px;
}

.briefing-section h4 {
    color: #d4af37;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.briefing-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.briefing-section ul {
    list-style: none;
    padding-left: 0;
}

.briefing-section ul li {
    padding: 8px 0;
    color: #ccc;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* VIP Personality Selection */
.vip-personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.personality-card {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.personality-card:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.personality-card.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.personality-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
}

.personality-card p {
    font-size: 0.85em;
    color: #999;
    margin: 5px 0;
}

.personality-bonus {
    color: #10b981 !important;
    font-weight: bold;
}

/* Consequence Warning */
.consequence-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.consequence-warning strong {
    color: #fb923c;
}

.consequence-warning p {
    margin: 8px 0;
    font-size: 0.9em;
}

/* Phase 3 HUD Elements */
.phase3-item {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 8px;
    margin-top: 8px;
}

.response-mode-indicator {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    margin-top: 10px;
    text-align: center;
}

.response-label {
    color: #999;
    font-size: 0.85em;
    margin-right: 8px;
}

.response-value {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.1em;
}

/* Consequence Feed */
.consequence-feed {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 150;
    pointer-events: none;
}

.consequence-item {
    background: rgba(26, 26, 26, 0.75);  /* More transparent - can see through */
    backdrop-filter: blur(8px);  /* Blur effect for modern look */
    -webkit-backdrop-filter: blur(8px);  /* Safari support */
    border-left: 4px solid #d4af37;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.consequence-item.positive {
    border-left-color: #10b981;
}

.consequence-item.negative {
    border-left-color: #ef4444;
}

.consequence-item.neutral {
    border-left-color: #fb923c;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Response Panel */
.response-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.75);  /* More transparent - can see through */
    backdrop-filter: blur(8px);  /* Blur effect for modern look */
    -webkit-backdrop-filter: blur(8px);  /* Safari support */
    border: 2px solid rgba(212, 175, 55, 0.8);  /* Slightly transparent border */
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 150;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.response-instructions {
    color: #d4af37;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

.response-option {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.response-option:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.response-option.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.response-key {
    display: block;
    background: #d4af37;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 4px;
    margin: 0 auto 8px;
}

.response-name {
    display: block;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 4px;
}

.response-desc {
    display: block;
    color: #999;
    font-size: 0.8em;
}

/* Results Screen - Phase 3 */
.result-summary {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-icon {
    font-size: 1.5em;
}

.summary-text {
    color: #d4af37;
    font-weight: bold;
}

.result-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.result-section h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.reputation-change {
    font-size: 1.2em;
    text-align: center;
}

.reputation-change .result-value {
    color: #10b981;
}

.reputation-change .result-value.negative {
    color: #ef4444;
}

.response-breakdown {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.breakdown-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
}

.consequences-list {
    max-height: 200px;
    overflow-y: auto;
}

.consequence-item {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.career-update {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.career-update .career-stat {
    margin: 10px 0;
}

.unlocked-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.unlocked-message.hidden {
    display: none;
}

/* Responsive Updates for Phase 3 */
@media (max-width: 768px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-personality-grid {
        grid-template-columns: 1fr;
    }
    
    .response-panel {
        flex-direction: column;
        width: 90%;
        gap: 10px;
    }
    
    .response-option {
        width: 100%;
    }
    
    .consequence-feed {
        width: 90%;
        right: 5%;
    }
}
