/*
 * RallyClip — Hard Court Night Session
 * Deep navy + electric tennis ball yellow
 */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #e8eaed;
    background-color: #0A1628;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Court grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient glow at top */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.15);
}

.byline {
    font-size: 14px;
    color: #6b7a90;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.byline strong {
    color: #CCFF00;
    font-weight: 500;
}

.logo-title-group {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    width: var(--logo-width, auto);
}

.header-logo {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 4px 0 -6px 0;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(204, 255, 0, 0.3));
    transition: filter 0.3s ease;
}

.header-logo:hover {
    filter: drop-shadow(0 0 30px rgba(204, 255, 0, 0.5));
}

.header h1 {
    font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-block;
}

.tagline {
    font-size: 17px;
    color: #8b9bb4;
    line-height: 1.6;
    margin-bottom: 20px;
}

.github-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #0A1628;
    background-color: #CCFF00;
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.github-link:hover {
    background-color: #d4ff33;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.15);
}

.nav a {
    font-size: 14px;
    color: #6b7a90;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CCFF00;
    transition: width 0.2s ease;
}

.nav a:hover {
    color: #CCFF00;
}

.nav a:hover::after {
    width: 100%;
}

/* Content */
.content section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
}

.content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    padding-left: 16px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: #CCFF00;
    border-radius: 2px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #CCFF00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    color: #a8b5c8;
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

a {
    color: #CCFF00;
    text-decoration: none;
    border-bottom: 1px solid rgba(204, 255, 0, 0.3);
    transition: all 0.2s ease;
}

a:hover {
    border-bottom-color: #CCFF00;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
}

th {
    font-weight: 600;
    color: #CCFF00;
    background-color: rgba(204, 255, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

td {
    color: #a8b5c8;
    font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
    font-size: 13px;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(204, 255, 0, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

.caption {
    font-size: 14px;
    color: #6b7a90;
    font-style: italic;
    margin-top: 12px;
}

/* Lists */
ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: #a8b5c8;
}

li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #CCFF00;
    font-size: 8px;
    top: 7px;
}

li strong {
    color: #ffffff;
}

/* Notes */
.note {
    margin-top: 20px;
    padding: 16px 18px;
    background-color: rgba(204, 255, 0, 0.08);
    border-left: 3px solid #CCFF00;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #a8b5c8;
}

.requirements {
    padding: 14px 18px;
    background-color: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: #a8b5c8;
    margin-bottom: 16px;
}

/* Code */
pre {
    background-color: #060d17;
    border: 1px solid rgba(204, 255, 0, 0.15);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #CCFF00, transparent);
    border-radius: 8px 8px 0 0;
}

code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e8eaed;
}

.comment {
    color: #4a5568;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(204, 255, 0, 0.15);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #6b7a90;
}

.footer a {
    color: #6b7a90;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #CCFF00;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.footer span {
    color: #3d4a5c;
}

/* Tennis ball decoration */
.tennis-ball {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #CCFF00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(204, 255, 0, 0.8);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .page {
        padding: 40px 20px 60px;
    }
    
    .header h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 10px 12px;
    }
    
    pre {
        padding: 14px 16px;
    }
    
    code {
        font-size: 12px;
    }
}

/* Selection */
::selection {
    background-color: rgba(204, 255, 0, 0.3);
    color: #ffffff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(204, 255, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(204, 255, 0, 0.5);
}
