/*
Theme Name: Hooked on the Game
Theme URI: https://hookedonthegame.com
Author: Dan
Author URI: https://hookedonthegame.com
Description: A clean, minimal WordPress theme for documenting a real UK golfer's journey. Features modern typography, understated design, and full support for YouTube integration.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hooked-on-the-game
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   CSS Variables - Understated Pro Palette
   ========================================================================== */
:root {
    --color-primary: #1F1F1F;       /* Black */
    --color-secondary: #6B7280;     /* Cool Grey */
    --color-accent: #DC2626;        /* Red */
    --color-background: #FFFFFF;
    --color-text: #1F1F1F;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    
    --font-heading: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --max-width: 1100px;
    --max-width-narrow: 900px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem auto;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Header with Hero
   ========================================================================== */
.site-header-hero {
    background-color: var(--color-primary);
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                      url('/wp-content/uploads/2026/01/PXL_20251231_150542700-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.site-header-hero .site-branding {
    position: relative;
    z-index: 2;
}

.site-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.site-title a {
    color: white;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.site-header-hero .custom-logo-link {
    display: inline-block;
}

.site-header-hero .custom-logo {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    background-color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

@media (max-width: 768px) {
    .main-navigation ul {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Posts & Articles
   ========================================================================== */
.post-card {
    background: white;
    margin-bottom: 4rem;
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-thumbnail {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 3rem;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.entry-title a {
    color: var(--color-primary);
}

.entry-title a:hover {
    color: var(--color-accent);
}

.entry-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.entry-excerpt,
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.read-more,
.more-link {
    display: inline-block;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

.read-more:hover,
.more-link:hover {
    opacity: 0.7;
}

/* Single Post */
.single-post .post-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Featured Images in Content */
.featured-image {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-header .entry-title {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    background: white;
    padding: 2rem;
    border: 1px solid var(--color-border);
    height: fit-content;
}

.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: var(--color-text);
}

.sidebar a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 6rem;
    text-align: center;
}

.footer-navigation {
    margin-bottom: 1.5rem;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--font-heading);
}

.footer-navigation a {
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-navigation a:hover {
    opacity: 1;
    border-bottom: 1px solid white;
}

.site-info {
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Cookie Notice Banner
   ========================================================================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-text);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-notice-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-notice p {
    margin: 0;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.cookie-notice a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-accept-button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.cookie-accept-button:hover {
    opacity: 0.8;
}

.cookie-notice.hidden {
    display: none;
}

@media (max-width: 768px) {
    .cookie-notice-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Recent Posts Section (for Front Page)
   ========================================================================== */
.recent-posts {
    margin: 4rem 0;
}

.recent-posts-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-content {
    max-width: var(--max-width-narrow);
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-comment label {
    display: none;
}

.comment-submit,
#submit {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.comment-submit:hover,
#submit:hover {
    opacity: 0.8;
}

.comments-list {
    list-style: none;
    margin: 2rem 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-submit:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }
    
    .post-thumbnail {
        height: 300px;
    }
    
    .post-content {
        padding: 2rem;
    }
    
    .site-header-hero {
        padding: 4rem 0 3rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-description {
        font-size: 1rem;
    }
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.sticky {
    /* Sticky post styling */
}

.bypostauthor {
    /* Post author styling */
}

.gallery {
    margin: 2rem 0;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .main-navigation,
    .sidebar,
    .cookie-notice,
    .site-footer {
        display: none;
    }
}