@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-gradient-start: #0f1016;
    --bg-gradient-end: #1a1525;
    --primary: #DD5865;
    --primary-hover: #e86d79;
    --primary-glow: rgba(221, 88, 101, 0.35);
    --secondary: #ffc746;
    --secondary-hover: #ffd46f;
    --secondary-glow: rgba(255, 199, 70, 0.25);
    --accent: #00e676;
    --accent-glow: rgba(0, 230, 118, 0.25);
    --success: #00e676;
    --error: #ff4757;
    --error-glow: rgba(255, 71, 87, 0.25);
    --text-main: #ffffff;
    --text-muted: #8e98b7;
    --card-bg: rgba(22, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

html, body {
    height: 100%;
    font-family: 'Outfit', 'Roboto Condensed', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(135deg, rgba(11,12,16,0.88) 0%, rgba(26,21,37,0.88) 100%),
        url('../../rcp.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism card container */
.glass-card {
    max-width: 480px;
    width: 92%;
    margin: 60px auto 120px auto;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Premium Buttons */
.btn-premium {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
    text-decoration: none !important;
}

.btn-premium:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #b23b47 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 16px;
    margin-top: 15px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main) !important;
}

/* Inputs and Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* Room code display */
.code-display-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0 20px 0;
}

.room-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--secondary);
    margin: 0;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.share-link-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: monospace;
    transition: all 0.2s ease;
}

/* Status markers */
.lobby-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.waiting {
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary-glow);
    animation: pulse 1.5s infinite alternate;
}

.status-dot.active {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Scoreboard */
.scoreboard {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.score-val {
    color: var(--text-main);
    font-weight: 800;
}

/* Rhythm / Question selection list */
.rhythm-list-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    text-align: left;
}

.rhythm-list-container::-webkit-scrollbar {
    width: 6px;
}

.rhythm-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.rhythm-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.3;
}

.rhythm-item:last-child {
    border-bottom: none;
}

.rhythm-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rhythm-item.selected {
    background: rgba(221, 88, 101, 0.12);
    border-left: 3px solid var(--primary);
    color: var(--text-main);
}

/* Timer styles */
.timer-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.progress-bar-wrap {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 1s linear;
}

/* Answer option buttons grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.option-btn {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.option-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.option-btn.correct {
    background: rgba(0, 230, 118, 0.15) !important;
    border-color: var(--success) !important;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
    font-weight: 600;
}

.option-btn.incorrect {
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: var(--error) !important;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.2);
}

.option-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.option-btn.correct:disabled, .option-btn.incorrect:disabled {
    opacity: 1;
}

/* Landing Page Specific styling */
.landing-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    background: rgba(221, 88, 101, 0.1);
    border: 1px solid var(--primary-glow);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.landing-logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.landing-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #ccd1e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Footer / Ad styling */
.footer-text {
    margin-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
