@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --green: #10b981;
    --yellow: #fbbf24;
    --red: #ef4444;
    --border-subtle: #2a2a2a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% top;
    opacity: 0.6;
    filter: grayscale(10%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 120px 40px 40px 40px;
    max-width: 600px;
    margin-left: 80px;
}

.hero-logo {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.moon-icon {
    font-size: 0.85em;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.hero-tagline {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.dark-container {
    background: var(--bg-dark);
    min-height: 100vh;
}

header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo::before {
    content: "🌙 ";
    background: none;
    -webkit-text-fill-color: initial;
    opacity: 0.8;
}

.tagline {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 300;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95em;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

nav a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

main {
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -1px;
}

.welcome {
    text-align: center;
    margin-bottom: 40px;
}

.welcome h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.athlete-select h3 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 500;
}

.athlete-list {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.athlete-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid var(--border-subtle);
}

.athlete-card:hover {
    border-color: var(--accent-purple);
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.athlete-name {
    font-weight: 500;
    font-size: 1.1em;
}

.arrow {
    font-size: 1.5em;
    color: var(--accent-purple);
}

.data-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.form-section h3 {
    margin-bottom: 10px;
    color: var(--accent-purple);
    font-weight: 500;
    font-size: 1.3em;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 25px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.form-row input[type="number"],
.form-row input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-row input[type="number"]:focus,
.form-row input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: var(--bg-dark);
}

.form-row input[type="range"] {
    width: calc(100% - 60px);
    margin-right: 15px;
    accent-color: var(--accent-purple);
}

.range-value {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-purple);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.call-result {
    margin: 30px auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    border: 1px solid;
}

.call-push {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--green);
}

.call-steady {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--yellow);
}

.call-recover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--red);
}

.call-badge {
    font-size: 2.5em;
    font-weight: 700;
    margin: 15px 0;
}

.call-description {
    font-size: 1.1em;
    color: var(--text-secondary);
}

.privacy-note {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 40px;
    font-style: italic;
}

.calls-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.calls-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 15px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calls-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.calls-table tr:last-child td {
    border-bottom: none;
}

.calls-table tr:hover {
    background: var(--bg-secondary);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.badge-push {
    background: var(--green);
    color: white;
}

.badge-steady {
    background: var(--yellow);
    color: var(--bg-dark);
}

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

.flag-detail {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.metric-card h3 {
    color: var(--accent-purple);
    margin-bottom: 15px;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.btn-override {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-override:hover {
    background: var(--accent-pink);
    transform: scale(1.05);
}

.override-indicator {
    margin-left: 8px;
    font-size: 1em;
    cursor: help;
}

.override-notes {
    color: var(--accent-purple);
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    color: var(--accent-purple);
    margin-bottom: 25px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: var(--bg-dark);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

footer {
    background: var(--bg-dark);
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
        max-width: 100%;
    }
    
    .hero-logo {
        font-size: 2.5em;
    }
    
    .hero-tagline {
        font-size: 1.3em;
    }
    
    .hero-subtitle {
        font-size: 0.95em;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    nav {
        display: none;
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        background: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        border-radius: 12px 0 0 12px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        border: 1px solid var(--border-subtle);
        border-right: none;
    }
    
    nav.active {
        display: flex;
        right: 0;
    }
    
    nav a {
        padding: 15px 25px;
        border-bottom: 1px solid var(--border-subtle);
        width: 100%;
        text-align: left;
        font-size: 1em;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    nav a:hover {
        background: rgba(139, 92, 246, 0.1);
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 30px 20px;
    }
}
