﻿/*
 * LaunchCompass
 * Copyright (c) 2026 Robert Morgan / RMC Software Solutions, LLC
 * All rights reserved.
 * 
 * This software is proprietary and confidential.
 * Unauthorized copying, modification, distribution, or use is strictly prohibited.
 * 
 * File: wwwroot\css\shooting-page.css
 * Author: Robert Morgan
 * Version: 1.0.0
 * Created: 01/29/2026
 * Modified: 01/30/2026
 * Released: 00/00/0000
 * 
 * Description:
 *     Styles for Shoot mode page including large countdown display.
 *     Includes toast notifications, mission bar, and T+/T- countdown formatting.
 * 
 * MVVM Role: Styling
 * Architecture: Page Styles | Countdown Display | Animations
*/

/* wwwroot/css/shooting-page.css */

.shooting-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    padding-bottom: 100px;
    background: var(--bg-primary);
}

.shoot-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

    .shoot-message p {
        margin: 8px 0;
    }

.mission-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
}

.mission-pad {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mission-bearing {
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--accent-orange);
    font-weight: bold;
}

.dial-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
}

    .dial-container.dial-xlarge .targeting-dial {
        width: 280px;
        height: 280px;
    }

@media (min-width: 400px) {
    .dial-container.dial-xlarge .targeting-dial {
        width: 320px;
        height: 320px;
    }
}

@media (min-width: 500px) {
    .dial-container.dial-xlarge .targeting-dial {
        width: 360px;
        height: 360px;
    }
}

.shoot-on-target {
    padding: 12px 32px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    border-radius: 8px;
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    animation: pulse-glow 1s ease-in-out infinite;
    margin: 16px 0;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
    }
}

/* Countdown Display - transparent, blends in */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: transparent;
}

    .countdown-container.urgent .countdown-number {
        color: var(--accent-orange);
    }

    .countdown-container.liftoff .countdown-number {
        color: #22c55e;
    }

.countdown-mission {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.countdown-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.countdown-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding-bottom: 20px;
}

.countdown-prefix {
    font-size: 1rem;
    color: var(--accent-orange);
    font-weight: bold;
    margin-bottom: 8px;
}

.countdown-status {
    font-size: 1.25rem;
    font-weight: bold;
    color: #22c55e;
    margin-top: 12px;
}

/* Test link - simple text button */
.test-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-top: 8px;
}

    .test-link:hover {
        color: var(--text-primary);
    }

/* Toast notification */
.countdown-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-width: 90vw;
}

    .countdown-toast.scrubbed {
        background: #dc2626;
    }

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-weight: 500;
    font-size: 0.9rem;
}

.toast-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toast-dismiss:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Control buttons */
.shoot-controls {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.shoot-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

    .shoot-btn:hover:not(:disabled) {
        background: var(--bg-tertiary);
    }

    .shoot-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .shoot-btn.active {
        background: var(--accent-orange);
        border-color: var(--accent-orange);
        color: white;
    }
