:root {
    --bg-color: #0a0a0a;
    --gold: #D4AF37;
    --gold-bright: #F9E29C;
    --gold-dark: #C5A028;
    --text-white: #ffffff;
    --text-muted: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(212, 175, 55, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Result Bar & Typography Refinement */
    --bar-gold: var(--gold);
    --bar-bg: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    background-image: url('bg-oscars.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.1);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

/* Background Effects */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 100px 10px, rgba(212, 175, 55, 0.3), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.glow-effect {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Header */
.app-header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color) 80%, transparent);
    z-index: 10;
}

.academy-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--gold);
}

.category-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Main Content */
.content-wrapper {
    flex: 1;
    padding: 0 1.5rem 6rem;
    z-index: 1;
}

.category-display {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-white);
}

.nominates-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Nominee Card */
.nominee-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nominee-card:active {
    transform: scale(0.98);
}

.nominee-card.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.nominee-card.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gold);
}

.nominee-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
}

/* Results Visualization */
.result-container {
    margin-top: 0.8rem;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-results .result-container {
    height: 24px;
    opacity: 1;
    margin-top: 1rem;
}

.bar-wrapper {
    width: 100%;
    height: 6px;
    background: var(--bar-bg);
    border-radius: 4px;
    margin-top: 4px;
    position: relative;
    display: flex;
    align-items: center;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    background: var(--bar-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.percentage-text {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: var(--bg-color);
}

.login-content {
    width: 100%;
    max-width: 350px;
}

.login-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-footer {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-logo {
    width: 100px;
    height: 20px;
    object-fit: contain;
    /* Removed filter to show original logo colors */
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

input[type="email"]:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.app-header.hidden, 
.content-wrapper.hidden, 
.app-footer.hidden,
.mode-screen.hidden {
    display: none !important;
}

/* Mode Selection Screen */
.mode-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-color);
}

.mode-content {
    width: 100%;
    max-width: 400px;
}

.mode-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #fff;
    width: 100%;
}

.mode-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.mode-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer Navigation */
.app-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--bg-color) 70%, transparent);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    z-index: 20;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Inter', sans-serif;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-btn.primary:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.nav-btn.secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.nav-btn.secondary:disabled {
    border-color: #333;
    color: #333;
}

.gold-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.7); }
    100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
}

.hidden {
    display: none !important;
}

/* Summary Screen */
.summary-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 100;
    overflow-y: auto;
    padding: 3rem 1.5rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.summary-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.summary-item {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.summary-choice {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold);
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.loading, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.error {
    color: #ff4d4d;
}
