:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #1DB954; /* Spotify Green-ish */
    --accent-secondary: #535353;
    --kalshi-green: #00D09C;
    --kalshi-red: #FF4D4D;
    --font-main: 'Inter', sans-serif;
    --pp-purple: #9747FF;
    --k-green: #09C285;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

#app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
    padding: 20px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
    z-index: 10;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.slide.next {
    transform: translateX(100%);
    opacity: 0;
}

.hidden {
    display: none !important;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(0deg, #09C285, #09C285);
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    /* For fallback if gradient fails */
    color: #09C285; 
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

p {
    font-size: 1.2rem;
    color: #e0e0e0; /* Lighter grey for better contrast */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.stat-number {
    font-size: 5rem; /* Bigger */
    font-weight: 900;
    color: var(--kalshi-green);
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(0, 208, 156, 0.5), 2px 2px 4px rgba(0,0,0,0.8);
}

.stat-number.negative {
    color: var(--kalshi-red);
    text-shadow: 0 0 30px rgba(255, 77, 77, 0.5), 2px 2px 4px rgba(0,0,0,0.8);
}

.stat-subtext {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Upload Section */
.upload-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

input[type="file"] {
    display: none;
}

.upload-btn {
    background-color: var(--kalshi-green);
    color: #000;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.4);
    border: none;
}

.upload-btn:hover {
    transform: scale(1.05);
    background-color: #00b386;
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #555;
    transform: none;
}

/* Controls */
#controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.nav-btn:hover {
    color: #fff;
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
    border-radius: 3px;
    overflow: visible;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar {
    height: 100%;
    background-color: var(--kalshi-green);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

#slide-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10;
}

.slide-marker {
    flex-grow: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.slide-marker:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.slide-tooltip {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.slide-marker:hover .slide-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Animations */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.content {
    animation: popIn 0.5s ease-out forwards;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Specific Slide Styles with Overlays for Readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Darken everything slightly */
    z-index: 1;
}

.slide-intro { background: linear-gradient(135deg, #1e3c72 0%, #2db89a 100%); }
.slide-trades { background: linear-gradient(135deg, #63a5d1 0%, #034e2f 100%); } /* Deep Purple/Blue */
.slide-fees { background: linear-gradient(135deg, #360a0e 0%, #573b39 100%); }
.slide-pnl-pos { background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%); } /* Teal/Blue nice gradient */
.slide-pnl-neg { background: linear-gradient(135deg, #3a1c71 0%, #d76d77 100%, #ffaf7b 100%); }
.slide-nickname { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); } /* Dark moody blue/green-ish but mostly dark */

.comparison-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.comparison-item {
    background: rgba(0, 0, 0, 0.3); /* Darker background for items */
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 150px;
}

.comparison-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.fun-fact {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Custom Title Styles */
.main-title {
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: white;
}

.pp-purple {
    color: var(--pp-purple);
}

.k-green {
    color: var(--k-green);
}

.wrapped-white {
    color: #ffffff;
}

.subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.kalshi-link {
    color: var(--kalshi-green);
    text-decoration: underline;
    font-weight: bold;
}

.kalshi-link:hover {
    color: #1DB954;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.modal-content {
    background: #1e1e1e;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.input-group {
    margin: 1.5rem 0;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #ccc;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--kalshi-green);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--kalshi-green);
}

.checkbox-group label {
    font-weight: normal;
    color: #aaa;
    cursor: pointer;
}

.action-btn {
    background-color: var(--kalshi-green);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    transition: all 0.2s;
    width: 100%;
}

.action-btn:hover:not(:disabled) {
    background-color: #00b386;
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #444;
    color: #888;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.link-box input {
    flex-grow: 1;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: var(--kalshi-green);
    border-radius: 5px;
}

.link-box button {
    padding: 0 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.link-box button:hover {
    background: #444;
}
