/* Whiffless - Valorant Aim Trainer Styles */

/* Import Tailwind CSS from CDN */
@import url('https://cdn.tailwindcss.com');

/* Custom Valorant Color Variables */
:root {
    --valorant-red: #ff4655;
    --valorant-blue: #00d4ff;
    --valorant-gold: #f0b90b;
    --valorant-dark: #0f1419;
    --valorant-darker: #0a0e13;
    --valorant-light: #ece8da;
    --valorant-gray: #3c4043;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme */
body {
    background-color: white;
    color: #1f2937;
}

/* Dark Theme */
body.dark {
    background-color: var(--valorant-dark);
    color: white;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 1rem;
}

.dark .navbar {
    background-color: rgba(10, 14, 19, 0.8);
    border-bottom-color: rgba(60, 64, 67, 0.3);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--valorant-red);
    margin: 0;
}

.navbar-subtitle {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .navbar-subtitle {
    color: #9ca3af;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-theme {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-theme:hover {
    background-color: #e5e7eb;
}

.dark .btn-theme {
    background-color: var(--valorant-gray);
    color: white;
}

.dark .btn-theme:hover {
    background-color: rgba(60, 64, 67, 0.7);
}

.btn-settings {
    background-color: var(--valorant-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.btn-settings:hover {
    background-color: rgba(255, 70, 85, 0.8);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Training Area */
.training-area {
    width: 100%;
    height: 24rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.75rem;
    border: 2px solid #d1d5db;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 70, 85, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.dark .training-area {
    background: linear-gradient(135deg, var(--valorant-darker) 0%, var(--valorant-dark) 100%);
    border-color: var(--valorant-gray);
}

/* Crosshair */
.crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
}

        .crosshair::before,
        .crosshair::after {
            content: '';
            position: absolute;
            background: #00ff00;
            transition: background-color 0.3s ease;
        }

        .crosshair.training::before,
        .crosshair.training::after {
            background: var(--valorant-red);
        }.crosshair::before {
    left: 50%;
    top: 2px;
    width: 2px;
    height: 16px;
    margin-left: -1px;
}

.crosshair::after {
    top: 50%;
    left: 2px;
    width: 16px;
    height: 2px;
    margin-top: -1px;
}

.hidden {
    display: none !important;
}

/* Targets */
.target {
    transition: transform 0.1s ease;
    cursor: crosshair;
    position: absolute;
    border-radius: 50%;
}

.target:hover {
    transform: scale(1.05);
}

.target-normal {
    background-color: var(--valorant-red);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.target-fast {
    background-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.target-small {
    background-color: var(--valorant-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.target-bonus {
    background-color: var(--valorant-gold);
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.target-hit {
    animation: targetHit 0.3s ease-out forwards;
}

.target-miss {
    animation: targetMiss 0.5s ease-out forwards;
}

@keyframes targetHit {
    0% { transform: scale(1); opacity: 1; }
    25% { transform: scale(1.3); opacity: 0.9; background-color: #00ff00; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes targetMiss {
    0% { transform: scale(1); opacity: 1; }
    25% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(0.7); opacity: 0.1; }
}

/* Hit Markers */
.hit-marker {
    position: absolute;
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    animation: hitMarker 1s ease-out forwards;
    z-index: 1000;
}

@keyframes hitMarker {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-30px) scale(1.2); opacity: 0; }
}

/* Start Screen */
.start-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
}

.start-content {
    text-align: center;
    color: white;
}

.start-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.start-subtitle {
    color: #d1d5db;
    margin: 0 0 2rem 0;
}

.btn-start {
    padding: 1rem 2rem;
    background-color: var(--valorant-red);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
    transition: all 0.2s ease;
}

.btn-start:hover {
    background-color: rgba(255, 70, 85, 0.8);
}

/* Game Stats Above Training Area */
.game-stats-top {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark .game-stats-top {
    background-color: var(--valorant-darker);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Game Stats Overlay (Legacy - keeping for compatibility) */
.game-stats {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

.dark .game-stats {
    background-color: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #9ca3af;
}

.stat-value {
    font-weight: 600;
    margin-left: 0.5rem;
}

.stat-hits { color: var(--valorant-blue); }
.stat-accuracy { color: var(--valorant-gold); }
.stat-time { color: #10b981; }
.stat-score { color: white; }

/* End Training Button */
.btn-end {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 70, 85, 0.8);
    color: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-end:hover {
    background-color: var(--valorant-red);
}

/* Statistics Cards */
.stats-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stats-card {
    background-color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .stats-card {
    background-color: var(--valorant-darker);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.card-title-red { color: var(--valorant-red); }
.card-title-blue { color: var(--valorant-blue); }
.card-title-gold { color: var(--valorant-gold); }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-value {
    font-weight: 600;
}

.value-blue { color: var(--valorant-blue); }
.value-gold { color: var(--valorant-gold); }
.value-green { color: #10b981; }
.value-red { color: var(--valorant-red); }

/* Settings Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 28rem;
}

.dark .modal-content {
    background-color: var(--valorant-darker);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--valorant-red);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.btn-close:hover {
    color: #374151;
}

.dark .btn-close {
    color: #9ca3af;
}

.dark .btn-close:hover {
    color: #d1d5db;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--valorant-red);
    border-color: transparent;
}

.dark .form-input, .dark .form-select {
    background-color: var(--valorant-gray);
    border-color: var(--valorant-gray);
    color: white;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: #374151;
}

.dark .btn-secondary {
    color: #9ca3af;
}

.dark .btn-secondary:hover {
    color: #d1d5db;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--valorant-red);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: rgba(255, 70, 85, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .training-area {
        height: 20rem;
    }
    
    .start-title {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .navbar-content {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.valorant-glow {
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.valorant-glow-blue {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.animate-pulse {
    animation: pulse 2s infinite;
}