/*
Theme Name: Helaut Theme
Theme URI: https://helaut.be
Author: Kerim Helaut
Author URI: https://helaut.be
Description: Custom theme for Kerim Helaut - Gastronomisch Filosoof. A casual chic design balancing academic philosophy with gastronomic pleasure.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helaut
*/

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fafaf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0071e3;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

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

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
    position: relative;
    padding: 20px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

/* Permanent Home Button */
.home-button-container {
    position: fixed;
    top: 20px;
    left: 40px;
    z-index: 1001;
}

.home-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: #666666;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: all 0.3s ease;
}

.home-button:hover {
    color: #000000;
    transform: none;
}

/* Special styling for home button on black background (landing page) */
.home .home-button {
    background-color: transparent;
    border: none;
    color: #999999;
}

.home .home-button:hover {
    background-color: transparent;
    color: #ffffff;
}

.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-hover-trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 999;
}

.nav-hover-trigger:hover + .main-navigation,
.main-navigation:hover {
    transform: translateY(0);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #1d1d1f;
    padding: 10px 15px;
}

.main-navigation a:hover {
    color: #0071e3;
}

/* ==========================================
   LANDING PAGE
   ========================================== */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: #000000;
}

.site-title {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.logo-container {
    margin: 60px 0;
}

.site-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.3));
}

.site-tagline {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-top: 60px;
}

.tagline-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color: #ffffff;
}

.tagline-link:hover {
    border-bottom-color: #ffffff;
    transform: translateY(-3px);
}

.gastronomisch {
    color: #ffffff;
}

.filosoof {
    color: #ffffff;
}

/* ==========================================
   SECTION PAGES (Gastronomy & Philosophy)
   ========================================== */

.section-page {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 19px;
    line-height: 1.6;
    color: #1d1d1f;
}

.subsections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.subsection-box {
    background: #ffffff;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subsection-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #c17a3a, #8b6f47);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subsection-box:hover::before {
    transform: scaleX(1);
}

.subsection-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subsection-box h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #1d1d1f;
}

/* ==========================================
   SUBPAGES (Individual Blog Sections)
   ========================================== */

.subpage-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.subpage-intro {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 40px;
    background: #ffffff;
    border-left: 3px solid #0071e3;
    font-size: 17px;
    line-height: 1.6;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
    letter-spacing: -0.2px;
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #86868b;
}

/* ==========================================
   TAG CLOUD
   ========================================== */

.tag-cloud-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: #f9f9f9;
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
}

.tag-cloud-section h3 {
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 16px;
    font-size: 13px;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
}

/* ==========================================
   SINGLE POST PAGE
   ========================================== */

.single-post-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

.single-post-header {
    margin-bottom: 40px;
}

.single-post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1d1d1f;
    letter-spacing: -1px;
}

.single-post-meta {
    font-size: 14px;
    color: #86868b;
    font-style: normal;
}

.single-post-image {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.single-post-content {
    font-size: 17px;
    line-height: 1.6;
}

.single-post-content p {
    margin-bottom: 25px;
}

.single-post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.single-post-content h3 {
    font-size: 26px;
    margin: 35px 0 18px;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: #2c2c2c;
    color: #c8c8c8;
    padding: 40px 20px;
    text-align: center;
    margin-top: 100px;
}

.site-footer p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subsections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 36px;
    }
    
    .site-tagline {
        font-size: 21px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .subpage-intro,
    .section-intro {
        font-size: 16px;
    }
    
    .home-button-container {
        top: 15px;
        left: 15px;
    }
    
    .home-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* === Overrides (lowercase + glass buttons) === */

/* 1) No uppercase anywhere (force lowercase in visual rendering) */
body, body * {
    text-transform: lowercase !important;
}

/* 2) iOS-like glass effect for Gutenberg block buttons */
.wp-block-button .wp-block-button__link,
.wp-element-button,
.wp-block-button__link {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14) !important;
    border-radius: 999px !important;
    text-transform: lowercase !important;
    letter-spacing: inherit !important;
    padding: 12px 18px !important;
}

/* Hover / active states */
.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    transform: translateY(-1px);
}

.wp-block-button .wp-block-button__link:active,
.wp-element-button:active,
.wp-block-button__link:active {
    transform: translateY(0px);
}

/* Focus */
.wp-block-button .wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 3px;
}

/* Better contrast on dark sections (e.g., landing page) */
.home .wp-block-button .wp-block-button__link,
.home .wp-element-button,
.home .wp-block-button__link {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
}

/* =========================================================
   Dark mode baseline + iOS-like glass blocks (2026-01-27)
   ========================================================= */

/* Global: black background + white type */
:root {
    color-scheme: dark;
}

html, body {
    background: #000 !important;
}

body {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Ensure common text elements inherit white */
h1, h2, h3, h4, h5, h6,
p, li, dt, dd, blockquote, cite,
figcaption, caption,
label, small, strong, em {
    color: inherit;
}

/* Links */
a, a:visited {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}
a:hover, a:focus {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* Make sure header/footer containers also stay dark */
header, footer, .site-header, .site-footer, .wp-site-blocks {
    background: transparent !important;
}

/* iOS-like glassmorphism tokens */
:root {
    --helaut-glass-bg: rgba(255, 255, 255, 0.08);
    --helaut-glass-bg-strong: rgba(255, 255, 255, 0.12);
    --helaut-glass-border: rgba(255, 255, 255, 0.18);
    --helaut-glass-border-strong: rgba(255, 255, 255, 0.28);
    --helaut-glass-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --helaut-glass-radius: 18px;
    --helaut-glass-blur: 22px;
}

/* Glass effect for “container-like” blocks */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-query,
.entry-content > .wp-block-post-template,
.entry-content > .wp-block-latest-posts,
.entry-content > .wp-block-latest-comments,
.entry-content > .wp-block-table,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-image,
.entry-content > .wp-block-video,
.entry-content > .wp-block-audio,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-pullquote {
    border-radius: var(--helaut-glass-radius) !important;
    background: var(--helaut-glass-bg) !important;
    border: 1px solid var(--helaut-glass-border) !important;
    -webkit-backdrop-filter: blur(var(--helaut-glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--helaut-glass-blur)) saturate(180%);
    box-shadow: var(--helaut-glass-shadow) !important;
    overflow: hidden;
}

/* Add a subtle highlight layer (more “iOS 16 glass”) */
.entry-content > .wp-block-group::before,
.entry-content > .wp-block-columns::before,
.entry-content > .wp-block-media-text::before,
.entry-content > .wp-block-cover::before,
.entry-content > .wp-block-query::before,
.entry-content > .wp-block-latest-posts::before,
.entry-content > .wp-block-quote::before,
.entry-content > .wp-block-pullquote::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 10% 0%, rgba(255,255,255,0.12), transparent 55%),
        radial-gradient(900px 500px at 90% 20%, rgba(255,255,255,0.10), transparent 60%);
    opacity: 0.9;
}

/* Ensure the blocks are positioned for ::before overlay */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-query,
.entry-content > .wp-block-latest-posts,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-pullquote {
    position: relative;
}

/* Inner padding for common container blocks (avoid cramped content) */
.entry-content > .wp-block-group,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-query,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-pullquote,
.entry-content > .wp-block-table {
    padding: clamp(14px, 2vw, 22px) !important;
}

/* Cards for post lists/templates */
.wp-block-post-template > li,
.wp-block-latest-posts__list li,
.wp-block-query .wp-block-post {
    border-radius: var(--helaut-glass-radius) !important;
    background: var(--helaut-glass-bg) !important;
    border: 1px solid var(--helaut-glass-border) !important;
    -webkit-backdrop-filter: blur(var(--helaut-glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--helaut-glass-blur)) saturate(180%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.42) !important;
    overflow: hidden;
    padding: 16px !important;
}

/* Buttons: keep glass, improve contrast on black */
.wp-block-button .wp-block-button__link,
.wp-element-button,
.wp-block-button__link {
    color: rgba(255, 255, 255, 0.95) !important;
    background: var(--helaut-glass-bg-strong) !important;
    border-color: var(--helaut-glass-border-strong) !important;
    -webkit-backdrop-filter: blur(calc(var(--helaut-glass-blur) - 6px)) saturate(180%);
    backdrop-filter: blur(calc(var(--helaut-glass-blur) - 6px)) saturate(180%);
}

/* Focus outline on dark background */
.wp-block-button .wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}

/* Form elements (optional but helps legibility) */
input, select, textarea {
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}
