/*
Theme Name: Moleanos Hockey Hub
Author: DGM Media
Description: Elite hockey information portal. NHL, international leagues, in-depth statistics and power play analytics.
Version: 1.5.0
*/

:root {
    /* Hockey Professional Palette (Power Play Edition) */
    --primary: #3A86FF;        /* Ice Blue */
    --secondary: #051622;      /* Deep Rink Navy */
    --accent: #112B3C;         /* Cold Steel */
    --highlight: #FF4D00;      /* Power Play Orange (Team Jersey Color) */
    --bg-light: #051622;
    --white: #FFFFFF;
    --text-main: #E2E8F0;      /* Frost White */
    --text-muted: #94A3B8;
    --border: #1E3A8A;         /* Ice Border */
    
    --container-width: 1200px;
    --content-width: 900px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Adaptive Design Variables */
    --section-pad: clamp(3rem, 10vw, 10rem);
    --hero-pad: clamp(5rem, 15vw, 20rem);
    --block-border: clamp(2px, 0.5vw, 8px);
    
    /* Decoration */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 4px !important; /* Hockey Style: Slight round like puck/blade edges */
}

html, body {
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--secondary);
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 90px;
}

/* Fluid Typography (Athletic Oswald) */
h1 { font-size: clamp(3rem, 10vw, 9rem); font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 0.85; color: var(--white); text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1; color: var(--white); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1.1; color: var(--white); text-transform: uppercase; }
h4 { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 2px; }

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

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: rgba(5, 22, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.logo {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--highlight);
    border: 2px solid var(--highlight);
    padding: 0.1rem 0.5rem;
}

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; gap: 2.5rem; list-style: none; justify-content: flex-end; }
.main-nav a { font-weight: 600; font-size: 0.9rem; color: var(--white); text-transform: uppercase; white-space: nowrap; }
.main-nav a:hover { color: var(--primary); }

.nav-toggle {
    display: none; flex-direction: column; gap: 7px; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { width: 32px; height: 3px; background: var(--white); display: block; transition: var(--transition); }

/* Hero Section: Asymmetric Split (Option B) */
.hero-hockey {
    padding: var(--hero-pad) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-hockey::before {
    content: 'HOCKEY';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 35vw;
    font-family: 'Oswald';
    font-weight: 900;
    color: rgba(58, 134, 255, 0.03);
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
}

.hero-hockey-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('banner.png') center/cover no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; text-align: left; }
.hero-content h1 { margin-bottom: 2rem; }
.hero-content h1 span { color: var(--primary); -webkit-text-stroke: 1px var(--primary); color: transparent; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 4px; margin-bottom: 4rem; }

.btn-hockey {
    background: var(--highlight);
    color: var(--white);
    padding: 1.2rem 3rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    border: none;
    transition: var(--transition);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Skewed blade effect */
}
.btn-hockey:hover { transform: translateY(-5px); background: var(--primary); }

/* Features: Glassmorphism Cards */
.hockey-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: -100px; /* Overlap hero */
    position: relative;
    z-index: 10;
}

.feat-card {
    background: rgba(17, 43, 60, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    transition: var(--transition);
}
.feat-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.feat-card h3 { color: var(--primary); margin-bottom: 1.5rem; }

/* Unique Section 1: Power Play Breakdown */
.power-play-section {
    padding: var(--section-pad) 0;
    position: relative;
}

.pp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.pp-visual {
    background: var(--accent);
    padding: 4rem;
    position: relative;
    border-left: 8px solid var(--highlight);
}

.puck-tracker {
    width: 100%; height: 200px;
    border: 2px dashed var(--primary);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.puck-tracker::after {
    content: '';
    width: 40px; height: 40px;
    background: #000; border-radius: 50% !important;
    position: absolute;
    animation: puck-move 4s infinite linear;
}

@keyframes puck-move {
    0% { left: 10%; top: 20%; }
    25% { left: 80%; top: 50%; }
    50% { left: 40%; top: 80%; }
    75% { left: 10%; top: 40%; }
    100% { left: 10%; top: 20%; }
}

/* Unique Section 2: Ice Performance Analytics */
.ice-analytics {
    background: linear-gradient(135deg, var(--secondary) 0%, #112B3C 100%);
    padding: var(--section-pad);
    border: 4px solid var(--primary);
    margin: 8rem 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.stat-box { text-align: center; }
.stat-box strong { display: block; font-size: 5rem; font-family: 'Oswald'; color: var(--primary); line-height: 1; }
.stat-box span { text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }

/* Posts Grid: 3x3 Standard */
.grid-header {
    margin-bottom: 5rem;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.hockey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
}

.post-card-hockey {
    background: var(--accent);
    display: flex; flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.post-card-hockey:hover { transform: scale(1.02); }

.post-card-hockey .thumb {
    height: clamp(200px, 25vw, 300px);
    overflow: hidden; position: relative;
}
.post-card-hockey .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.post-card-hockey:hover .thumb img { transform: scale(1.1); }

.post-card-hockey .content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-hockey h3 { margin-bottom: 2rem; flex-grow: 1; }
.post-card-hockey .btn-read {
    color: var(--primary); font-weight: 700; text-transform: uppercase; font-family: 'Oswald';
    border-bottom: 2px solid var(--primary); align-self: flex-start;
}

/* Pagination */
.pagi-wrap { margin-bottom: 10rem; }
.pagi-list { display: flex; gap: 1rem; justify-content: center; list-style: none; }
.pagi-list a, .pagi-list span {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    background: var(--accent); border: 2px solid var(--border);
    font-family: 'Oswald'; font-weight: 700; font-size: 1.2rem;
}
.pagi-list span.current, .pagi-list a:hover {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* Footer */
.site-footer {
    background: #000;
    padding: 10rem 0 5rem;
    border-top: 5px solid var(--primary);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10rem;
}

.footer-logo { font-size: 4rem; font-family: 'Oswald'; margin-bottom: 3rem; }
.footer-logo span { color: var(--highlight); }
.footer-desc { font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; line-height: 1.8; }

.footer-nav-heading { font-size: 1.5rem; color: var(--primary); margin-bottom: 3rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { text-transform: uppercase; font-weight: 600; color: var(--white); }
.footer-nav a:hover { color: var(--primary); padding-left: 10px; }

.footer-bottom {
    margin-top: 8rem; padding-top: 4rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; text-transform: uppercase; font-weight: 700; color: var(--text-muted);
}

/* Responsive: Rule 20 compliance */
@media (max-width: 1024px) {
    .hockey-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .header-inner { gap: 1.5rem; }
    .main-nav ul { gap: 1.5rem; }
    .main-nav a { font-size: 0.8rem; }
}

/* Single Post */
.post-main-hockey {
    max-width: var(--content-width);
    margin: 8rem auto;
    background: var(--accent);
    padding: clamp(2rem, 6vw, 8rem);
    border: 5px solid var(--white);
}

.post-meta-hockey {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.post-body-hockey { font-size: 1.1rem; line-height: 1.8; }
.post-body-hockey p { margin-bottom: 2rem; }

.post-thumbnail-wrap {
    margin-bottom: clamp(3rem, 8vw, 8rem);
    border: clamp(4px, 1.5vw, 10px) solid var(--primary);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--secondary); padding: 3rem; border-bottom: 10px solid var(--primary);
    }
    .main-nav ul { flex-direction: column; align-items: center; }

    .hockey-grid { grid-template-columns: 1fr; }
    .pp-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 5rem; }
    
    h1 { font-size: 4.5rem; }
}
