/*
Theme Name: Mushing Athlete
Theme URI: https://example.com
Description: A custom WordPress theme for promoting a long-distance mushing athlete with news, info pages, and WooCommerce shop
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mushing-athlete
Tags: sports, athlete, ecommerce, responsive, bootstrap

This theme requires Advanced Custom Fields Pro and WooCommerce.
*/

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --footer-bg: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.site-header {
    background: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.page-header {
    padding-bottom: 2em;
}

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

.site-logo img,
.site-logo svg {
    width: 64px;
    height: 64px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_ancestor > a {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 3rem 2rem 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.single-post-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.back-link-wrapper {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--secondary-color);
}

.featured-image-wrapper {
    margin-bottom: 2rem;
}

.featured-image-wrapper img {
    width: 256px;
    height: auto;
    border-radius: 8px;
}

.fi-position-top-center img {
    display: block;
    margin: 0 auto;
}

.fi-position-left img {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.fi-position-right img {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.fi-position-top-center img {
    width: 600px;
    max-width: 100%;
}

.fi-position-full img {
    width: 100%;
    max-width: 100%;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
}

.post-navigation .nav-next {
    justify-content: flex-end;
    text-align: right;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.post-navigation a:hover {
    background-color: #f3f4f6;
}

.post-navigation .nav-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.post-navigation .nav-title {
    color: var(--primary-color);
    font-weight: 600;
}

.sponsors-list {
    margin-top: 3rem;
}

.sponsor-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.sponsor-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sponsor-image {
    flex-shrink: 0;
    width: 200px;
}

.sponsor-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sponsor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sponsor-text {
    color: var(--text-dark);
    line-height: 1.6;
}

.sponsor-link {
    margin-top: 0.5rem;
}

.no-sponsors {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-navigation .nav-next {
        justify-content: flex-start;
        text-align: left;
    }
}

.site-footer {
    background: var(--footer-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.athlete-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--footer-bg);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Word Explainer */
.explainable-word {
    background: linear-gradient(120deg, lightgray 0%, darkgrey 100%) !important;
    border-bottom: 2px dotted var(--accent-color) !important;
}

.word-explanation-popup {
    border: 2px solid var(--accent-color) !important;
}

.word-explanation-popup::before {
    border-bottom: 10px solid var(--accent-color) !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-item {
        flex-direction: column;
        gap: 1rem;
    }

    .sponsor-image {
        width: 100%;
        max-width: 300px;
    }
}