/*
Theme Name: Hands on GEO Theme
Theme URI: https://www.handsongeo.nl
Author: Hans Schepers
Author URI: https://www.handsongeo.nl
Description: Custom WordPress theme for Hands on GEO — optimized for Generative Engine Optimization (GEO) and AI search citation.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geosite-theme
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #0d0d0d;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.375rem; margin-top: 1.5rem; }
h4 { font-size: 1.125rem; margin-top: 1.25rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: #1a56db;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: #0e3a8c;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    border-bottom: 2px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
}

.site-header__inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #0d0d0d;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

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

.main-navigation a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #1a56db;
}

/* Mobile navigation */
@media (max-width: 640px) {
    .site-header__inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 2px solid #e5e7eb;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ==========================================================================
   Article / Single Post
   ========================================================================== */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.entry-meta time {
    font-weight: 500;
}

.entry-content {
    margin-bottom: 3rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Last updated timestamp — GEO freshness signal */
.last-updated {
    font-size: 0.8125rem;
    color: #6b7280;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   TL;DR Block — primary AI citation target
   ========================================================================== */

.tldr-block {
    background-color: #f0f7ff;
    border-left: 4px solid #1a56db;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.tldr-block__heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a56db;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Statistics Block — second AI citation target
   ========================================================================== */

.stats-block {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.stats-block__heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    margin-bottom: 0.75rem;
}

.stats-block ul {
    list-style: none;
    padding: 0;
}

.stats-block li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stats-block li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   FAQ Section — third AI citation target
   ========================================================================== */

.faq-section {
    margin-top: 3rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
}

.faq-section__heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item__question {
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.faq-item__answer {
    color: #374151;
}

/* ==========================================================================
   Archive / Post List
   ========================================================================== */

.post-list {
    list-style: none;
}

.post-list__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.post-list__item:last-child {
    border-bottom: none;
}

.post-list__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.post-list__title a {
    color: #0d0d0d;
    text-decoration: none;
}

.post-list__title a:hover {
    color: #1a56db;
}

.post-list__excerpt {
    color: #374151;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Language Switcher (Polylang)
   ========================================================================== */

.language-switcher {
    font-size: 0.875rem;
}

.language-switcher ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
}

.language-switcher a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.language-switcher .current-lang a {
    color: #1a56db;
    font-weight: 700;
}

/* ==========================================================================
   Author Page — E-E-A-T signals
   ========================================================================== */

.author-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.author-avatar img {
    border-radius: 50%;
    width: 128px;
    height: 128px;
}

.author-info h1 {
    margin-bottom: 0.125rem;
}

.author-title {
    color: #1a56db;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.author-bio {
    margin-bottom: 1rem;
    color: #374151;
}

.author-credentials {
    list-style: none;
    padding: 0;
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.author-credentials li {
    padding: 0.125rem 0;
}

.author-credentials li::before {
    content: "✓ ";
    color: #1a56db;
    font-weight: 700;
}

.author-links a {
    font-weight: 600;
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    h1, .entry-title { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }

    .site-content {
        padding: 1.5rem 1rem;
    }

    .tldr-block,
    .stats-block {
        padding: 1rem;
    }
}
