:root {
    /* Gym Palette */
    --primary: #FF3E3E;
    /* Energy Red */
    --secondary: #111111;
    /* Asphalt */
    --accent: #FFFFFF;
    /* White */
    --bg-body: #000000;
    --bg-card: #1A1A1A;
    --text-main: #FFFFFF;
    --text-muted: #888888;

    /* Typography */
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Roboto Condensed', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* UI */
    --skew: -5deg;
}

[data-theme="military"] {
    --primary: #708238;
    /* Olive Green */
    --secondary: #2B2B2B;
    --bg-body: #1C1C1C;
    --bg-card: #262626;
}

[data-theme="concrete"] {
    --primary: #F1C40F;
    /* Caution Yellow */
    --secondary: #333333;
    --bg-body: #2C3E50;
    --bg-card: #34495E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    line-height: 1;
    transform: skew(var(--skew));
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-join {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transform: skew(var(--skew));
    display: inline-block;
    transition: background 0.3s;
}

.btn-join:hover {
    background: white;
    color: var(--secondary);
}

/* Hero */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
    transform: skew(var(--skew));
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* WOD Section */
.wod-section {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    transform: skewY(-2deg);
    margin: 4rem 0;
}

.wod-content {
    transform: skewY(2deg);
    /* Counter skew */
    text-align: center;
}

.wod-box {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto 0;
    font-family: monospace;
    font-size: 1.2rem;
}

/* Timetable */
.timetable {
    padding: 6rem 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.day-col {
    text-align: center;
}

.day-header {
    background: var(--secondary);
    padding: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 1rem;
}

.class-item {
    background: var(--bg-card);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--text-muted);
    transition: border-color 0.3s;
}

.class-item:hover {
    border-left-color: var(--primary);
}

.class-time {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

/* Community Wall */
.community {
    padding: 6rem 0;
    text-align: center;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.wall-post {
    position: relative;
    height: 250px;
    overflow: hidden;
    group: hover;
}

.wall-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.wall-post:hover .wall-img {
    transform: scale(1.1);
}

.wall-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, black);
    padding: 1rem;
    text-align: left;
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 4rem 0;
    text-align: center;
    border-top: 5px solid var(--primary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}