/* 
=============================================================================
PRESIDENT SIMULATOR - IMPROVED STYLES
Smoother, more modern design with glassmorphism and better animations
=============================================================================
*/

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

:root {
    --primary-gold: #ffd700;
    --primary-red: #dc143c;
    --primary-blue: #1da1f2;
    --bg-dark: #0a0e1a;
    --bg-panel: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* SMOOTH SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), #b8860b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, var(--primary-gold));
}

/* INTRO SCREEN */
.intro-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #000428 0%, #004e92 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: introFade 1s ease-out;
}

.presidential-seal {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-gold), #b8860b);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    animation: sealGlow 3s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.6);
    border: 5px solid #b8860b;
}

@keyframes sealGlow {
    0%, 100% { 
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5); 
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 100px rgba(255, 215, 0, 0.8); 
        transform: scale(1.05); 
    }
}

.game-title {
    font-size: 48px;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
    font-weight: 900;
}

.start-presidency-btn {
    background: linear-gradient(135deg, #ff0000, #0000ff);
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.start-presidency-btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* LOADING SCREEN */
.loading-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

.loading-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-steps {
    margin: 30px 0;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.loading-step.active {
    opacity: 1;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    transform: translateX(10px);
}

/* MAIN GAME */
.game-container {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

.status-bar {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.status-bar > div {
    font-weight: 600;
    font-size: 16px;
}

/* IMPROVED NEWS TICKER - Vertical List */
.news-ticker {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
}

.news-ticker h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-ticker-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.news-item.news-item-enter {
    animation: newsItemEnter 0.6s ease-out forwards;
}

.news-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px) translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.news-item.breaking-news {
    background: rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.4);
    animation: breakingNewsPulse 2s ease-in-out infinite;
}

.news-badge {
    font-size: 28px;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.news-content {
    flex: 1;
}

.news-source {
    color: var(--primary-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.news-headline {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* IMPROVED NOTIFICATION SYSTEM */
.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9000;
    width: 350px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 18px 20px;
    border-radius: 15px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gold);
}

.notification.info::before { background: var(--primary-blue); }
.notification.success::before { background: #00ff00; }
.notification.warning::before { background: #ff9800; }
.notification.error::before { background: #ff0000; }

.notification-icon {
    font-size: 24px;
    min-width: 24px;
}

.notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-close::before {
    content: '×';
    font-size: 20px;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* POWER CENTERS */
.top-panels-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.power-centers-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.power-centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.power-center-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.power-center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.power-center-card:hover::before {
    opacity: 1;
}

.power-center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.power-meter {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.power-meter-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.power-meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* TWEET PANEL */
.tweet-panel {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(13, 141, 219, 0.2));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(29, 161, 242, 0.3);
    box-shadow: var(--shadow-lg);
}

.tweet-input {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s;
}

.tweet-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.3);
}

.tweet-btn {
    background: #fff;
    color: var(--primary-blue);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.tweet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* CRISIS PANEL */
.crisis-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 20, 60, 0.4);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.decision-btn {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.decision-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.decision-btn:hover::before {
    width: 300px;
    height: 300px;
}

.decision-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.option-preview {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    font-weight: normal;
}

/* STATUS EXPLAINER */
.status-explainer {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.status-explainer p {
    font-size: 13px;
    color: #ddd;
    margin: 8px 0;
    line-height: 1.6;
}

/* RELATIONSHIPS PANEL */
.relationships-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.relationship-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

.relationship-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* PRESS CONFERENCE */
.press-conference {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9500;
    box-shadow: var(--shadow-xl);
    display: none;
}

.press-conference.active {
    display: block;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1) rotate(90deg);
}

.reporters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.response-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.response-btn {
    background: var(--bg-panel);
    border: 2px solid var(--glass-border);
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    text-align: center;
}

.response-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* TWEET FEEDBACK */
.tweet-feedback-container {
    max-height: 200px;
    overflow-y: auto;
}

.tweet-feedback {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-blue);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* COALITION STATUS */
.coalition-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    border: 2px solid var(--glass-border);
    transition: all 0.3s;
}

.coalition-status.coalition-positive {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.4);
    color: #00ff00;
}

.coalition-status.coalition-warning {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
    color: #ffa500;
}

/* POWER NOTIFICATIONS */
.power-notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 8500;
    width: 300px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.power-notification {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
}

/* BREAKING NEWS MODAL */
.breaking-news-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    backdrop-filter: blur(30px);
    border: 3px solid rgba(255, 69, 0, 0.6);
    border-radius: 25px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    z-index: 9600;
    box-shadow: 0 0 50px rgba(255, 69, 0, 0.5);
    animation: breakingNewsPulse 2s ease-in-out infinite;
}

.breaking-news-content {
    margin: 20px 0;
}

.breaking-power-centers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.affected-badge {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b6b;
}

.breaking-badge {
    background: rgba(255, 69, 0, 0.3);
    color: #ff4500;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.breaking-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.breaking-btn.primary {
    background: var(--primary-gold);
    color: #000;
}

.breaking-btn.primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.breaking-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid var(--glass-border);
}

.breaking-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* CALL MODAL (Negotiation) */
.call-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9500;
    box-shadow: var(--shadow-xl);
}

.call-content {
    margin: 20px 0;
}

.call-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.call-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.call-option:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary-gold);
    transform: translateX(10px);
}

.call-result-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    z-index: 9600;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.call-result-content {
    margin: 20px 0;
}

.close-modal {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 20px;
}

.close-modal:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.close-result {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 20px;
}

.close-result:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

/* METERS (for relationships) */
.meter {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.meter-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
}

.meter-fill.trust-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

/* CONTROVERSY LEVEL */
.controversy-level {
    background: rgba(255, 165, 0, 0.15);
    border: 1px solid rgba(255, 165, 0, 0.4);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffa500;
    display: inline-block;
    margin-top: 10px;
}

/* POWER CENTER DETAILS */
.power-center-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.power-icon {
    font-size: 24px;
}

.power-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

/* RELATIONSHIP HISTORY */
.relationship-history {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.history-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s;
}

.history-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
}

/* REPORTERS (Press Conference) */
.reporter {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    text-align: center;
}

.reporter:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
}

.reporter.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.reporter.friendly {
    border-color: rgba(0, 255, 0, 0.3);
}

.reporter.hostile {
    border-color: rgba(255, 0, 0, 0.3);
}

.reporter.neutral {
    border-color: rgba(128, 128, 128, 0.3);
}

/* OPPOSITION TWEETS */
.opposition-tweet-notification {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-left: 4px solid rgba(255, 0, 0, 0.6);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.opposition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.opposition-influence {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
}

/* RELATIONSHIP DETAILS */
.relationship-meters {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 13px;
}

.relationship-meters > div {
    margin: 8px 0;
    color: #ddd;
}

.relationship-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

/* TWEET ANALYSIS */
.political-context {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--primary-gold);
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    color: #ddd;
}

.viral-potential {
    background: rgba(255, 69, 0, 0.15);
    border-left: 3px solid rgba(255, 69, 0, 0.6);
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 600;
}

/* PUBLIC OPINION BATTLE */
.public-opinion-battle {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.battle-timer {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.battle-scores {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    justify-content: space-around;
}

.battle-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

/* ENDORSEMENTS & INFLUENCERS */
.endorsement-content {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 128, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.endorsement-impact {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: #aaa;
}

.influencer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.influencer-category {
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-gold);
}

/* LOADING ENHANCEMENTS */
.loading-animation {
    text-align: center;
    margin: 20px 0;
}

.loading-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

/* NEWS ENHANCEMENTS */
.news-relevance {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-gold);
    margin-left: 8px;
}

/* OPPOSITION TWEET DETAILS */
.opposition-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
    color: #ddd;
}

.opposition-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* POWER CENTER VALUE */
.power-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gold);
    text-align: center;
    margin-top: 8px;
}

/* POWER CENTER ANIMATIONS */
.power-increase {
    animation: powerPulseGreen 0.5s ease-out;
}

.power-decrease {
    animation: powerPulseRed 0.5s ease-out;
}

@keyframes powerPulseGreen {
    0%, 100% {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
    50% {
        background: rgba(0, 255, 0, 0.2);
        transform: scale(1.05);
    }
}

@keyframes powerPulseRed {
    0%, 100% {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 0, 0, 0.2);
        transform: scale(1.05);
    }
}

/* NEWS IMPORTANCE */
.news-item.important-news {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ANIMATIONS */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes newsItemEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breakingNewsPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.7);
    }
}

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

@keyframes introFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .top-panels-container {
        grid-template-columns: 1fr;
    }
    
    .relationships-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .power-centers-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .notifications-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .power-notifications-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .press-conference,
    .call-modal,
    .call-result-modal,
    .breaking-news-modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .response-options {
        grid-template-columns: 1fr;
    }
    
    .reporters-row {
        flex-direction: column;
    }
    
    .battle-scores {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================= NOTIFICATION INBOX ========================= */
.notification-inbox-icon {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(13, 18, 32, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1400;
}

.notification-inbox-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.notification-inbox-icon .inbox-icon {
    font-size: 28px;
}

.notification-inbox-icon .inbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--primary-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.6);
}

.notification-inbox-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 360px;
    height: 100vh;
    background: rgba(8, 12, 24, 0.95);
    border-left: 1px solid var(--glass-border);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    transition: right 0.35s ease;
    z-index: 1350;
}

.notification-inbox-panel.open {
    right: 0;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.inbox-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.inbox-close-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.inbox-close-btn:hover {
    transform: scale(1.1);
    color: var(--primary-gold);
}

.inbox-filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.inbox-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.04);
    color: #dfe5ff;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inbox-filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.inbox-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.4));
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--primary-gold);
}

#inboxContent {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.inbox-notification {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.inbox-notification.unread {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.inbox-notification.info {
    border-left: 3px solid var(--primary-blue);
}

.inbox-notification.success {
    border-left: 3px solid #32cd32;
}

.inbox-notification.warning {
    border-left: 3px solid #ffa500;
}

.inbox-notification.error {
    border-left: 3px solid var(--primary-red);
}

.inbox-notification:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.inbox-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0.05em;
    opacity: 0.75;
    margin-bottom: 8px;
}

.inbox-notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.inbox-notification-preview {
    font-size: 14px;
    line-height: 1.4;
    color: #f5f7ff;
}

.notification-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 90vw);
    background: rgba(10, 14, 26, 0.94);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 28px;
    z-index: 1500;
    backdrop-filter: blur(20px);
}

.notification-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.notification-detail-icon {
    font-size: 32px;
}

.notification-detail-title h3 {
    font-size: 20px;
    letter-spacing: 0.05em;
}

.notification-detail-title .time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.notification-detail-content {
    font-size: 15px;
    line-height: 1.6;
    color: #f6f7ff;
}

.notification-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.notification-detail-actions .close-modal {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.6));
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: #1a1f33;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-detail-actions .close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 215, 0, 0.35);
}

/* ===================== PUBLIC OPINION BATTLE ===================== */
.public-opinion-battle {
    margin: 24px auto;
    width: min(720px, 95%);
    background: linear-gradient(135deg, rgba(88, 63, 191, 0.65), rgba(20, 14, 52, 0.95));
    border-radius: 28px;
    border: 1px solid rgba(150, 120, 255, 0.35);
    box-shadow: 0 28px 60px rgba(56, 38, 120, 0.45);
    padding: 28px;
    color: #f4f3ff;
    position: relative;
    overflow: hidden;
}

.public-opinion-battle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.battle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.battle-header h4 {
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.battle-timer {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 8px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.battle-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.battle-progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.battle-progress-dot.active {
    background: var(--primary-gold);
    transform: scale(1.15);
}

.battle-progress-dot.completed {
    background: #7cffc4;
}

.battle-scores-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.battle-score-item {
    background: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.battle-score-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.battle-score-bar {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.battle-score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.45s ease;
}

.battle-score-fill.player {
    background: linear-gradient(135deg, var(--primary-gold), #ff9f43);
}

.battle-score-fill.opponent {
    background: linear-gradient(135deg, #7d8bff, #3a49d6);
}

.battle-interactive {
    background: rgba(12, 16, 32, 0.55);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.battle-question {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.battle-options {
    display: grid;
    gap: 12px;
}

.battle-option-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9ff;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.battle-option-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.battle-option-effect {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.battle-powerups {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.battle-powerup {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.battle-powerup:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.battle-powerup.used {
    opacity: 0.45;
    cursor: default;
    filter: grayscale(0.4);
}

.battle-result {
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.battle-result.victory {
    box-shadow: 0 22px 48px rgba(255, 215, 0, 0.25);
}

.battle-result.defeat {
    box-shadow: 0 22px 48px rgba(220, 20, 60, 0.25);
}

.battle-result-effects {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.battle-result-effect {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .notification-inbox-icon {
        top: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .notification-inbox-panel {
        width: 100%;
    }

    .inbox-filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .public-opinion-battle {
        padding: 22px;
    }

    .battle-scores-container {
        grid-template-columns: 1fr;
    }

    .battle-powerups {
        flex-direction: column;
    }
}

/* Crisis Summary Styling */
.crisis-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.crisis-summary details {
    margin-top: 10px;
}

.crisis-summary summary {
    cursor: pointer;
    color: var(--primary-gold);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
}

.crisis-summary summary:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.crisis-summary details[open] summary {
    margin-bottom: 10px;
    background: rgba(255, 215, 0, 0.15);
}
