/*
===========================================
TENNIS DASH GAME - CSS ARCHITECTURE: ATOMIC CSS
===========================================
Design System: Sports Theme with Neumorphism Effect
Created: November 6, 2025
===========================================
*/

/* ==================== CSS VARIABLES - SPORTS THEME ==================== */
:root {
    /* Sports Theme Color Palette */
    --champion-gold: #ffd700;
    --trophy-silver: #c0c0c0;
    --field-green: #26a96c;
    --energy-red: #e63946;
    --team-blue: #0077b6;
    --victory-orange: #ff9f1c;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --black: #000000;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    /* Neumorphism Shadows */
    --shadow-neuro-light: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
    --shadow-neuro-dark: inset 8px 8px 16px #d1d1d1, inset -8px -8px 16px #ffffff;
}

/* ==================== ATOMIC CSS UTILITIES ==================== */

/* Display */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.none { display: none; }

/* Flex Properties */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid Properties */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.my-2 { margin-top: var(--space-sm); margin-bottom: var(--space-sm); }
.my-3 { margin-top: var(--space-md); margin-bottom: var(--space-md); }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.px-2 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-3 { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-3 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors - Text */
.text-gold { color: var(--champion-gold); }
.text-silver { color: var(--trophy-silver); }
.text-green { color: var(--field-green); }
.text-red { color: var(--energy-red); }
.text-blue { color: var(--team-blue); }
.text-orange { color: var(--victory-orange); }
.text-dark { color: var(--dark-gray); }
.text-white { color: var(--white); }

/* Colors - Background */
.bg-gold { background-color: var(--champion-gold); }
.bg-green { background-color: var(--field-green); }
.bg-red { background-color: var(--energy-red); }
.bg-blue { background-color: var(--team-blue); }
.bg-orange { background-color: var(--victory-orange); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-container { max-width: 1200px; }
.max-w-content { max-width: 800px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Neumorphism Effect */
.neuro-card {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-neuro-light);
    transition: all 0.3s ease;
}

.neuro-card:hover {
    box-shadow: 16px 16px 32px #bebebe, -16px -16px 32px #ffffff;
    transform: translateY(-5px);
}

.neuro-pressed {
    box-shadow: var(--shadow-neuro-dark);
}

/* ==================== BASE STYLES ==================== */

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

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== GRADIENT BUTTONS (Gradient Fill Style) ==================== */

.btn {
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--field-green), var(--team-blue));
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--champion-gold), var(--victory-orange));
    color: var(--dark-gray);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.25rem;
}

/* ==================== HEADER & NAVIGATION ==================== */

.c-header {
    background: var(--light-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.l-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--field-green);
}

.m-nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.m-nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.m-nav-link:hover {
    color: var(--field-green);
}

.u-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.u-burger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */

.l-hero {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.c-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.c-hero-title {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
}

.c-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--dark-gray);
}

.c-game-card {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neuro-light);
    padding: var(--space-lg);
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    transition: all 0.3s ease;
}

.c-game-card:hover {
    box-shadow: 20px 20px 40px #bebebe, -20px -20px 40px #ffffff;
    transform: translateY(-8px);
}

.c-game-preview {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.c-game-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--field-green);
}

.c-game-description {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
    line-height: 1.8;
}

/* ==================== FEATURES SECTION ==================== */

.l-features {
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
}

.c-section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--dark-gray);
}

.l-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.c-feature-card {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-neuro-light);
    transition: all 0.3s ease;
}

.c-feature-card:hover {
    box-shadow: 16px 16px 32px #bebebe, -16px -16px 32px #ffffff;
    transform: translateY(-5px);
}

.c-feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.c-feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--field-green);
}

.c-feature-text {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ==================== FAQ SECTION ==================== */

.l-faq {
    padding: var(--space-xl) var(--space-md);
    background: var(--light-gray);
}

.c-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.c-faq-item {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-neuro-light);
}

.c-faq-question {
    padding: var(--space-md);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-gray);
}

.c-faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    display: none;
    color: var(--dark-gray);
    line-height: 1.8;
}

.c-faq-answer.u-active {
    display: block;
}

.c-faq-icon {
    transition: transform 0.3s ease;
}

.c-faq-icon.u-rotate {
    transform: rotate(180deg);
}

/* ==================== CTA SECTION ==================== */

.l-cta {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    background: linear-gradient(135deg, var(--field-green), var(--team-blue));
}

.c-cta-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.c-cta-text {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

/* ==================== FOOTER ==================== */

.c-footer {
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
}

.l-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.l-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.c-footer-section h3 {
    margin-bottom: var(--space-md);
    color: var(--field-green);
}

.c-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.c-footer-link:hover {
    color: var(--field-green);
}

.c-footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
}

/* ==================== COOKIE CONSENT ==================== */

.c-cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    max-width: 400px;
    z-index: 9999;
}

.c-cookie-banner.u-hidden {
    display: none;
}

.c-cookie-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--dark-gray);
}

.c-cookie-text {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
    line-height: 1.6;
}

.c-cookie-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* ==================== BLOG STYLES ==================== */

.l-blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.c-blog-card {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-neuro-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.c-blog-card:hover {
    box-shadow: 16px 16px 32px #bebebe, -16px -16px 32px #ffffff;
    transform: translateY(-5px);
}

.c-blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.c-blog-content {
    padding: var(--space-md);
}

.c-blog-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.c-blog-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--dark-gray);
}

.c-blog-excerpt {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ==================== ARTICLE STYLES ==================== */

.l-article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.c-article-header {
    margin-bottom: var(--space-lg);
}

.c-article-title {
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
}

.c-article-meta {
    display: flex;
    gap: var(--space-md);
    color: var(--dark-gray);
}

.c-article-content {
    color: var(--dark-gray);
    line-height: 1.8;
}

.c-article-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--field-green);
}

.c-article-content p {
    margin-bottom: var(--space-md);
}

.c-article-nav {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
}

/* ==================== CONTACT FORM ==================== */

.l-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.c-form-group {
    margin-bottom: var(--space-md);
}

.c-form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--dark-gray);
}

.c-form-input,
.c-form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--light-gray);
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

.c-form-input:focus,
.c-form-textarea:focus {
    outline: none;
    border-color: var(--field-green);
}

.c-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== MODAL ==================== */

.c-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.c-modal.u-active {
    display: flex;
}

.c-modal-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .l-nav-container {
        padding: 1rem;
    }
    
    .m-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--light-gray);
        padding: var(--space-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .m-nav-menu.u-active {
        display: flex;
    }
    
    .u-burger {
        display: flex;
    }
    
    .l-features-grid,
    .l-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .l-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .c-cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .c-article-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

