/* ========================================
   Aeterna Fitness - Bootstrap 5 Custom Styles
   Design: Cyberpunk Minimalism + Data-Driven Aesthetics
   ======================================== */

/* ========== CSS Variables & Color System ========== */
:root {
    /* Aeterna Fitness Color Palette */
    --neon-green: #CCFF00;
    --neon-green-dark: #99CC00;
    --neon-green-light: #E6FF66;
    
    --carbon-black: #121212;
    --carbon-black-light: #1A1A1A;
    
    --steel-gray: #2C2C2E;
    --steel-gray-light: #3A3A3C;
    
    --neutral-gray: #888888;
    --neutral-light: #CCCCCC;
    
    --warning-red: #FF3333;
    --success-green: #00CC44;
    
    /* Typography */
    --font-display: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

/* ========== Global Styles ========== */
* {
    font-family: var(--font-body);
}

body {
    background-color: var(--carbon-black);
    color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* ========== Color Utilities ========== */
.bg-carbon-black {
    background-color: var(--carbon-black) !important;
}

.bg-carbon-black-light {
    background-color: var(--carbon-black-light) !important;
}

.bg-steel-gray {
    background-color: var(--steel-gray) !important;
}

.bg-steel-gray-light {
    background-color: var(--steel-gray-light) !important;
}

.bg-neon-green {
    background-color: var(--neon-green) !important;
}

.text-neon-green {
    color: var(--neon-green) !important;
}

.text-carbon-black {
    color: var(--carbon-black) !important;
}

.text-steel-gray {
    color: var(--steel-gray) !important;
}

.text-neutral-gray {
    color: var(--neutral-gray) !important;
}

.text-neutral-light {
    color: var(--neutral-light) !important;
}

.border-neon-green {
    border-color: var(--neon-green) !important;
}

.border-steel-gray-light {
    border-color: var(--steel-gray-light) !important;
}

/* ========== Button Styles ========== */
.btn-neon-green {
    background-color: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--carbon-black);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.btn-neon-green:hover {
    background-color: var(--neon-green-dark);
    border-color: var(--neon-green-dark);
    color: var(--carbon-black);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
    transform: translateY(-2px);
}

.btn-outline-neon-green {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.btn-outline-neon-green:hover {
    background-color: rgba(204, 255, 0, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

.btn-outline-neon-green.active {
    background-color: rgba(204, 255, 0, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-sm {
    border-radius: 4px;
}

/* ========== Card Styles ========== */
.card {
    border-radius: 8px;
    background-color: var(--steel-gray);
    border: 1px solid var(--steel-gray-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========== Form Styles ========== */
.form-range {
    height: 6px;
    border-radius: 3px;
}

.form-range-neon {
    --bs-form-range-track-bg: var(--steel-gray-light);
    --bs-form-range-thumb-bg: var(--neon-green);
    --bs-form-range-thumb-border: var(--neon-green);
}

.form-range-neon::-webkit-slider-thumb {
    background-color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.form-range-neon::-moz-range-thumb {
    background-color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.form-label {
    font-weight: 500;
    color: var(--neutral-light);
}

/* ========== Progress Bar ========== */
.progress {
    background-color: var(--steel-gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--neon-green);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Badge Styles ========== */
.badge {
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.badge-neon-green {
    background-color: var(--neon-green);
    color: var(--carbon-black);
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%),
                url('https://cdn.example.com/hero-gym-neon.png') center/cover;
    z-index: 0;
    animation: heroShift 20s ease-in-out infinite;
}

@keyframes heroShift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-section .z-1 {
    position: relative;
    z-index: 1;
}

.hero-image-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

.hero-image-placeholder img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== Section Headers ========== */
.section-header {
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--neon-green);
}

/* ========== Analysis Card ========== */
.analysis-card {
    background-color: rgba(204, 255, 0, 0.05);
    border: 1px solid var(--steel-gray-light);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-card:hover {
    background-color: rgba(204, 255, 0, 0.1);
    border-color: var(--neon-green);
}

/* ========== Schedule Grid ========== */
.schedule-container {
    background-color: var(--carbon-black-light);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.schedule-day-header {
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    padding: 1rem 0.5rem;
    border-bottom: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.schedule-slot {
    border: 2px solid var(--neon-green);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(204, 255, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.schedule-slot:hover {
    background-color: rgba(204, 255, 0, 0.15);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
    transform: translateY(-2px);
}

.schedule-slot.booked {
    background-color: var(--steel-gray);
    border-color: var(--neutral-gray);
    color: var(--neutral-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.schedule-slot.booked:hover {
    background-color: var(--steel-gray);
    box-shadow: none;
    transform: none;
}

.schedule-slot-time {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-green);
    font-size: 0.875rem;
}

.schedule-slot-coach {
    color: var(--neutral-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.schedule-slot-specialty {
    display: inline-block;
    background-color: rgba(204, 255, 0, 0.2);
    color: var(--neon-green);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ========== Workout Log ========== */
.workout-log-item {
    background-color: var(--steel-gray);
    border: 1px solid var(--steel-gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.workout-log-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.15);
}

.workout-log-date {
    font-family: var(--font-display);
    color: var(--neutral-gray);
    font-size: 0.875rem;
}

.workout-log-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-green);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.workout-log-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.workout-stat {
    text-align: center;
}

.workout-stat-label {
    color: var(--neutral-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workout-stat-value {
    color: var(--neon-green);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.workout-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.workout-badge-success {
    background-color: var(--success-green);
    color: var(--carbon-black);
}

.workout-badge-warning {
    background-color: var(--warning-red);
    color: white;
}

.workout-badge-pr {
    background-color: var(--neon-green);
    color: var(--carbon-black);
}

/* ========== Navbar ========== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(18, 18, 18, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.navbar-toggler {
    border-color: var(--neon-green);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(204, 255, 0, 0.25);
}

.nav-link {
    color: var(--neutral-light) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: var(--neon-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-green);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== Pulse Animation ========== */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00CC44;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========== Alert Styles ========== */
.alert {
    border-radius: 8px;
    border-width: 2px;
}

.alert-dark {
    background-color: var(--steel-gray);
    color: var(--neutral-light);
}

/* ========== Modal Styles ========== */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    border-bottom-width: 2px;
}

.modal-footer {
    border-top-width: 2px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .schedule-container {
        overflow-x: auto;
    }
    
    .workout-log-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.25rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 4px !important;
        margin-bottom: 0.5rem;
    }
    
    .workout-log-stats {
        grid-template-columns: 1fr;
    }
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Utility Classes ========== */
.space-y-4 > * + * {
    margin-top: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.z-1 {
    position: relative;
    z-index: 1;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
