/* This file is for your main application css. */

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    margin: 0;
    padding: 20px;
    background: #1a1a2e;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

/* Mobile: minimal padding for more game space */
@media (max-width: 600px) {
    body {
        padding: 8px;
    }
}

/* ==========================================================================
   Responsive Game Board
   ========================================================================== */

.game-board {
    max-width: 100vw;
    max-height: calc(100vh - 200px); /* Leave room for D-pad and controls */
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 4px solid #ff6b6b;
    border-radius: 8px;
    box-shadow:
        0 0 0 2px #feca57,
        0 0 0 4px #48dbfb,
        0 0 0 6px #ff9ff3,
        0 0 20px rgba(255, 107, 107, 0.5),
        0 0 40px rgba(72, 219, 251, 0.3);
}

@media (pointer: coarse) {
    /* On touch devices, leave more room for D-pad */
    .game-board {
        max-height: calc(100vh - 220px);
    }
}

/* ==========================================================================
   Mobile Room Badge & Collapsible Panel
   ========================================================================== */

/* Room badge - hidden on desktop, shown on mobile */
.room-badge {
    display: none;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
    font-family: monospace;
    cursor: pointer;
    white-space: nowrap;
}

.room-badge:active {
    background: #388E3C;
}

/* Connection panel wrapper for collapse behavior */
.connection-panel-wrapper {
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

/* Mobile layout improvements */
@media (max-width: 600px) {
    .game-container {
        padding: 10px !important;
    }

    .game-header {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        gap: 6px;
    }

    .game-header h1 {
        font-size: 1.1em;
        margin: 0;
        flex-shrink: 0;
    }

    /* Show room badge on mobile */
    .room-badge {
        display: inline-block;
        order: 1;
        font-size: 12px;
        padding: 4px 8px;
    }

    .header-buttons {
        order: 2;
        flex-shrink: 0;
        display: flex;
        gap: 4px;
    }

    .btn-info {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .btn-settings {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Collapsible connection panel on mobile */
    .connection-panel-wrapper.collapsed {
        max-height: 0;
        opacity: 0;
        margin: 0;
        pointer-events: none;
    }

    .connection-panel-wrapper:not(.collapsed) {
        max-height: 500px;
        opacity: 1;
    }

    .connection-panel {
        padding: 10px;
        margin-bottom: 10px;
    }

    .connection-status {
        margin: 5px 0;
    }

    .connection-actions {
        margin-top: 10px;
    }

    /* Hide full ShareUI on mobile (QR is now a watermark) */
    .share-ui {
        display: none;
    }

    /* Game container takes full width */
    .game-container {
        padding: 8px !important;
    }

    /* Game board expands more on mobile */
    .game-board {
        max-height: calc(100vh - 180px);
        max-width: calc(100vw - 16px);
    }

    /* Compact status on mobile */
    .game-status {
        font-size: 12px;
        padding: 4px 0;
        margin-bottom: 4px;
    }

    /* Game board container fills width on mobile */
    .game-board-container {
        width: 100%;
    }
}

/* ==========================================================================
   Game Visual Effects
   ========================================================================== */

/* Invincibility Flash Animation
   200ms cycle between opacity 1 and 0.3 */
.snake.invincible {
    animation: flash 200ms ease-in-out infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Death Fade-Out Animation (simple version for non-collision deaths)
   500ms fadeOut, forwards keeps final state (opacity 0) */
.snake.dying {
    animation: fadeOut 500ms ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================================================
   Collision Animation - Shake + Teeth Scatter
   ========================================================================== */

/* Collision animation - shake the board */
@keyframes collision-shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-3px, -2px); }
    20% { transform: translate(3px, 2px); }
    30% { transform: translate(-2px, 3px); }
    40% { transform: translate(2px, -3px); }
    50% { transform: translate(-3px, 0); }
    60% { transform: translate(3px, 0); }
    70% { transform: translate(0, 3px); }
    80% { transform: translate(0, -3px); }
    90% { transform: translate(-2px, -2px); }
}

.game-board.collision-shake,
.game-board-wrapper.collision-shake {
    animation: collision-shake 0.3s ease-out;
}

/* Teeth scatter animation - snake segments fall away like teeth */
@keyframes teeth-scatter {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--scatter-x, 20px), var(--scatter-y, 40px)) rotate(var(--scatter-rot, 180deg));
    }
}

.snake.dying .snake-segment {
    animation: teeth-scatter 0.6s ease-out forwards;
}

/* Each segment gets slightly different scatter direction via nth-child */
.snake.dying .snake-segment:nth-child(odd) {
    --scatter-x: -25px;
    --scatter-rot: -120deg;
}

.snake.dying .snake-segment:nth-child(3n) {
    --scatter-y: 50px;
    --scatter-rot: 200deg;
}

.snake.dying .snake-segment:nth-child(4n) {
    --scatter-x: 30px;
    --scatter-y: 35px;
    --scatter-rot: -90deg;
}

.snake.dying .snake-segment:nth-child(5n) {
    --scatter-x: -15px;
    --scatter-y: 45px;
    --scatter-rot: 150deg;
}

.snake.dying .snake-segment:nth-child(2n) {
    --scatter-x: 18px;
    --scatter-y: 30px;
    --scatter-rot: -150deg;
}

/* Snake head also scatters but stays more centered */
.snake.dying .snake-head {
    animation: teeth-scatter 0.6s ease-out forwards;
    --scatter-x: 0;
    --scatter-y: 25px;
    --scatter-rot: 45deg;
}

/* "You" Indicator Glow
   Double glow effect using currentColor for snake color matching */
.snake.you circle {
    filter: drop-shadow(0 0 8px currentColor)
            drop-shadow(0 0 12px currentColor);
}

/* Player's own snake head has extra emphasis */
.snake.you .snake-head circle:first-child {
    filter: drop-shadow(0 0 6px currentColor);
    stroke: white;
    stroke-width: 2;
}

.snake.you .snake-segment {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Disconnected player snake (ghosted) - legacy class */
.snake.disconnected {
    opacity: 0.4;
}

.snake.disconnected .snake-head,
.snake.disconnected .snake-segment {
    filter: grayscale(50%);
}

/* Orphaned player snake (50% opacity, continues until death) */
.snake.orphaned {
    opacity: 0.5;
}

.snake.orphaned .snake-head,
.snake.orphaned .snake-segment {
    filter: grayscale(30%);
}

/* ==========================================================================
   Leader Indicator (Pulsing Head Animation for highest scorer)
   ========================================================================== */

@keyframes pulse-leader {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

.snake-head.leader-head {
    animation: pulse-leader 0.8s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* ==========================================================================
   Apple Aging Stages
   ========================================================================== */

/* Expiring apple - pulsing red warning */
@keyframes apple-expiring-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.apple.apple-expiring {
    animation: apple-expiring-pulse 0.3s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* Skull apple - subtle danger glow */
.apple.apple-skull {
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.8))
            drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

/* ==========================================================================
   Skull Penalty Animation
   ========================================================================== */

/* Doomed segments - flash red */
@keyframes penalty-doomed-flash {
    0%, 100% {
        fill: #ff0000;
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.snake.penalty-active .snake-segment.penalty-doomed {
    animation: penalty-doomed-flash 0.2s ease-in-out infinite;
}

/* Jitter effect on the whole snake during final flash */
@keyframes penalty-jitter {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
}

.snake.penalty-jitter {
    animation: penalty-jitter 0.1s ease-in-out infinite;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideInFadeOut 3s ease-out forwards;
    border: 2px solid transparent;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        linear-gradient(135deg, #f58231, #e6194b, #911eb4, #4363d8, #3cb44b, #ffe119);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideInFadeOut {
    0% { transform: translateX(400px); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(400px); opacity: 0; }
}

/* ==========================================================================
   Game Status Bar
   ========================================================================== */

.game-status {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 8px 0;
    text-align: center;
}

/* ==========================================================================
   Scoreboard
   ========================================================================== */

.scoreboard {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    min-width: 180px;
    z-index: 100;
}

/* On mobile, make scoreboard flow with document instead of fixed overlay */
@media (max-width: 600px) {
    .scoreboard {
        position: static;
        margin: 10px 0;
        min-width: auto;
    }
}

.scoreboard h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.player-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.player-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-score {
    font-weight: bold;
    opacity: 0.9;
}

/* ==========================================================================
   Connection UI
   ========================================================================== */

.connection-panel {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Create/Join buttons */
.connection-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.connection-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-create {
    background: #4CAF50;
    color: white;
}

.btn-create:hover {
    background: #45a049;
}

.btn-join {
    background: #2196F3;
    color: white;
}

.btn-join:hover {
    background: #1976D2;
}

.btn-leave {
    background: #f44336;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-leave:hover {
    background: #d32f2f;
}

.btn-cancel {
    background: #9e9e9e;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #757575;
}

/* Room code input */
.room-code-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-code-input {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 10px 16px;
    width: 120px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.room-code-input:focus {
    outline: none;
    border-color: #2196F3;
}

.room-code-hint {
    font-size: 13px;
    color: #666;
}

/* Room code display (host) */
.room-code-display {
    text-align: center;
    margin: 20px 0;
}

.room-code {
    font-family: monospace;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 8px;
    color: #333;
}

.copy-button {
    margin-left: 16px;
    padding: 8px 16px;
    font-size: 14px;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.copy-button:hover {
    background: #d0d0d0;
}

.copied-feedback {
    color: #4CAF50;
    font-size: 14px;
    margin-left: 16px;
    font-weight: bold;
}

/* Connection status */
.connection-status {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.connection-status.connected {
    color: #4CAF50;
}

.connection-actions {
    margin-top: 16px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* Connecting state */
.connecting-state {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toast variant for connection errors (5 second duration) */
.toast.connection-error {
    animation: slideInFadeOut5s 5s ease-out forwards;
}

@keyframes slideInFadeOut5s {
    0% { transform: translateX(400px); opacity: 0; }
    6% { transform: translateX(0); opacity: 1; }
    94% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(400px); opacity: 0; }
}

/* ==========================================================================
   Share UI
   ========================================================================== */

.share-ui {
    margin-top: 1rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-copy-button {
    padding: 8px 16px;
    font-size: 14px;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: 0; /* Override base copy-button margin */
}

.share-copy-button:hover {
    background: #d0d0d0;
}

.share-copy-button.copied {
    color: #22c55e;
    background: #e8f5e9;
    cursor: default;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.qr-code {
    width: 256px;
    height: 256px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.qr-code-loading {
    width: 256px;
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Game Board Container with QR Watermark
   ========================================================================== */

.game-board-container {
    position: relative;
}

.qr-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    border-radius: 4px;
}

/* On desktop, hide QR watermark (show full ShareUI instead) */
@media (min-width: 601px) {
    .qr-watermark {
        display: none;
    }
}

/* On mobile, show QR watermark and make it slightly more visible */
@media (max-width: 600px) {
    .qr-watermark {
        display: block;
        width: 60px;
        height: 60px;
        opacity: 0.2;
    }
}

/* ==========================================================================
   Mobile Touch Controls (D-pad)
   ========================================================================== */

.dpad {
    position: fixed;
    bottom: 60px; /* Extra space for toggle button below */
    left: 20px;
    width: 140px;
    height: 140px;
    z-index: 1000;
    touch-action: none;
    /* Only show on touch devices */
    display: none;
}

@media (pointer: coarse) {
    .dpad {
        display: block;
    }
}

.dpad.dpad-hidden .dpad-btn {
    opacity: 0;
    pointer-events: none;
}

.dpad-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, opacity 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.dpad-btn svg {
    width: 24px;
    height: 24px;
}

.dpad-btn:active,
.dpad-btn.active {
    background: rgba(76, 175, 80, 0.8);
    transform: scale(0.95);
}

.dpad-up {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.dpad-up:active,
.dpad-up.active {
    transform: translateX(-50%) scale(0.95);
}

.dpad-down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.dpad-down:active,
.dpad-down.active {
    transform: translateX(-50%) scale(0.95);
}

.dpad-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dpad-left:active,
.dpad-left.active {
    transform: translateY(-50%) scale(0.95);
}

.dpad-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dpad-right:active,
.dpad-right.active {
    transform: translateY(-50%) scale(0.95);
}

.dpad-toggle {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.dpad-toggle svg {
    width: 18px;
    height: 18px;
}

.dpad-toggle:active {
    background: rgba(0, 0, 0, 0.5);
}

.dpad-shoot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.6);
}

.dpad-shoot:active,
.dpad-shoot.active {
    background: rgba(255, 100, 100, 0.9);
    transform: translate(-50%, -50%) scale(0.95);
}

/* ==========================================================================
   Venom Projectiles
   ========================================================================== */

.venom-projectile {
    animation: venom-pulse 0.3s ease-in-out infinite alternate;
}

@keyframes venom-pulse {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Ball Venom Projectile - pulse effect (opacity only to avoid overriding SVG translate) */
.ball-projectile {
    animation: ball-pulse 0.4s ease-in-out infinite alternate;
}

@keyframes ball-pulse {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Power-Up Drops
   ========================================================================== */

/* Gentle pulsing glow animation for the "B" drop */
.powerup-drop {
    animation: powerup-pulse 1.2s ease-in-out infinite;
}

@keyframes powerup-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(68, 136, 255, 0.6));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(68, 136, 255, 0.9))
                drop-shadow(0 0 12px rgba(68, 136, 255, 0.4));
        opacity: 0.9;
    }
}

/* ==========================================================================
   Header Buttons
   ========================================================================== */

.header-buttons {
    display: flex;
    gap: 8px;
}

.btn-info {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

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

.btn-settings {
    padding: 6px 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

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

/* ==========================================================================
   Game Settings
   ========================================================================== */

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.settings-section h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #ff6b6b;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.setting-label {
    font-size: 16px;
    color: #eee;
}

.setting-toggle {
    padding: 6px 18px;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.setting-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.setting-toggle.active {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border-color: #4caf50;
}

.setting-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ==========================================================================
   Info Page
   ========================================================================== */

.info-page {
    max-width: 600px;
    margin: 0 auto;
}

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

.info-header h1 {
    margin: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.info-section h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #ff6b6b;
}

.info-section p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section a {
    color: #48dbfb;
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

/* Changelog */
.changelog {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.changelog-entry h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #feca57;
}

.changelog-entry ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.changelog-entry li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* About section */
.about-section .about-motivation {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Back button */
.btn-back {
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

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

@media (max-width: 600px) {
    .info-page {
        padding: 10px !important;
    }

    .info-section {
        padding: 16px;
    }

    .info-header h1 {
        font-size: 1.4em;
    }
}

/* Mode Selection Footer */
.mode-selection-footer {
    margin-top: 24px;
    text-align: center;
}

.btn-info-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
}

.btn-info-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}
