/*
Theme Name: Wakatipu Cycling
Description: Tailwind-based trail intelligence theme -- schist/trail/ridge/dust palette with Barlow Semi Condensed + Karla typography. Ghost fingerprint.
Version: 1.0.0
Text Domain: wakatipucycling
*/

/* ==========================================================================
   1. BASE
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    transition: color 0.2s ease;
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */

.wc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. NAV STATES
   ========================================================================== */

/* Homepage: transparent over hero */
.nav-transparent .wc-header {
    background: transparent;
    color: #faf9f6; /* dust-50 */
}

/* Homepage: scrolled past hero */
.nav-sticky .wc-header {
    background: #31241c; /* schist-950 */
    color: #f5f2ec; /* dust-100 */
    box-shadow: 0 1px 3px rgba(49, 36, 28, 0.25);
}

/* Inner pages: solid immediately */
.nav-solid .wc-header {
    background: #31241c; /* schist-950 */
    color: #f5f2ec; /* dust-100 */
    box-shadow: 0 1px 3px rgba(49, 36, 28, 0.25);
}

/* ==========================================================================
   4. HAMBURGER
   ========================================================================== */

.wc-hamburger {
    display: none;
}

@media (max-width: 1023px) {
    .wc-hamburger {
        display: block;
    }
}

/* ==========================================================================
   5. MOBILE MENU
   ========================================================================== */

.wc-mobile-menu {
    opacity: 0;
    pointer-events: none;
}

.wc-mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

#mobileOverlay.open {
    display: block;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

/* Buttons use Tailwind inline classes -- no custom CSS needed */

/* ==========================================================================
   7. HERO -- Contour Line Decoration
   ========================================================================== */

.contour-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cpath d='M0 280 Q150 240 300 260 T600 250' fill='none' stroke='%23c0a87e' stroke-width='0.8' opacity='0.15'/%3E%3Cpath d='M0 300 Q150 270 300 285 T600 275' fill='none' stroke='%23c0a87e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M0 320 Q150 300 300 310 T600 300' fill='none' stroke='%23c0a87e' stroke-width='0.8' opacity='0.09'/%3E%3Cpath d='M0 340 Q150 330 300 335 T600 325' fill='none' stroke='%23c0a87e' stroke-width='0.8' opacity='0.07'/%3E%3Cpath d='M0 200 Q200 170 400 190 T600 180' fill='none' stroke='%23c0a87e' stroke-width='0.6' opacity='0.08'/%3E%3Cpath d='M0 160 Q250 130 500 150 T600 145' fill='none' stroke='%23c0a87e' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
}

/* ==========================================================================
   8. HOMEPAGE SECTIONS
   ========================================================================== */

/* Trail Grade Badges */
.grade-green {
    background: #3d9a4f;
    color: #fff;
}
.grade-blue {
    background: #2d6ab3;
    color: #fff;
}
.grade-black {
    background: #1a1a1a;
    color: #fff;
}

.grade-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 11px;
    font-weight: 700;
}
.grade-shape.circle {
    border-radius: 50%;
}
.grade-shape.square {
    border-radius: 3px;
}
.grade-shape.diamond {
    border-radius: 3px;
    transform: rotate(45deg);
    width: 22px;
    height: 22px;
}
.grade-shape.diamond span {
    transform: rotate(-45deg);
}

/* Season Card Hover */
.season-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.season-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(49, 36, 28, 0.12);
}

/* Trail Card Hover */
.trail-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 36, 28, 0.1);
}

/* ==========================================================================
   9. PAGE HERO BANNER
   ========================================================================== */

/* Handled by Tailwind inline classes */

/* ==========================================================================
   10. ARTICLE SINGLE
   ========================================================================== */

.wc-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1.5px) brightness(0.85);
}

/* ==========================================================================
   11. PROSE
   ========================================================================== */

.wc-prose h2 {
    font-family: "Barlow Semi Condensed", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #31241c; /* schist-950 */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.wc-prose h3 {
    font-family: "Barlow Semi Condensed", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5c4636; /* schist-900 */
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.wc-prose p {
    margin-bottom: 1.5rem;
}

.wc-prose a {
    color: #a47e54; /* schist-600 */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wc-prose a:hover {
    color: #896747; /* schist-700 */
}

.wc-prose ul,
.wc-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.wc-prose ul {
    list-style-type: disc;
}

.wc-prose ol {
    list-style-type: decimal;
}

.wc-prose li {
    margin-bottom: 0.5rem;
}

.wc-prose blockquote {
    border-left: 4px solid #c0a87e; /* schist-400 */
    padding-left: 1.25rem;
    margin: 2rem 0;
    color: #93775d; /* dust-700 */
    font-style: italic;
}

.wc-prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.wc-prose hr {
    border: none;
    border-top: 1px solid #ede8dc; /* dust-200 */
    margin: 2.5rem 0;
}

@media (min-width: 1024px) {
    .wc-prose h2 {
        font-size: 1.5rem;
    }
    .wc-prose h3 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   12. COMMENTS
   ========================================================================== */

.wc-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-comments .children {
    margin-top: 1.25rem;
}

/* ==========================================================================
   13. POST CARDS
   ========================================================================== */

.wc-post-date {
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

/* Handled by Tailwind inline classes */

/* ==========================================================================
   15. REVEAL ANIMATION
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

/* Smooth link underlines */
.link-trail {
    position: relative;
}
.link-trail::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a47e54; /* schist-600 */
    transition: width 0.25s ease;
}
.link-trail:hover::after {
    width: 100%;
}

/* Pagination styling */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: "Barlow Semi Condensed", system-ui, sans-serif;
    font-size: 0.875rem;
}
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}
.nav-links a {
    color: #5c4636; /* schist-900 */
    background: #fff;
    border: 1px solid #ede8dc; /* dust-200 */
}
.nav-links a:hover {
    background: #f5f2ec; /* dust-100 */
    border-color: #c0a87e; /* schist-400 */
}
.nav-links .current {
    background: #a47e54; /* schist-600 */
    color: #fff;
    border: 1px solid #a47e54;
}

@media (max-width: 767px) {
    .nav-links {
        flex-wrap: wrap;
    }
}
