/*
Theme Name: Gravitational Health
Theme URI: https://github.com/oyolokorai/coyolmediagroup
Description: A clean, minimal WordPress theme for the Gravitational Media portfolio. Pure white background, Inter font, exceptional readability. Colors easily customizable per property. Includes native ads monetization with admin UI.
Version: 3.4.7
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Author: Coyol Media Group
Author URI: https://github.com/oyolokorai
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: gravitational-health
Tags: clean, minimal, portfolio, white, simple, readable, native-ads, monetization
*/

/* ==========================================
   DESIGN PHILOSOPHY
   ========================================== 
   - White background always (#fff)
   - Inter font for maximum readability
   - 18px base font, 1.7em line height
   - #333 text color for comfortable reading
   - Colors controlled via CSS variables
   - Minimal, clean, professional
   ========================================== */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================
   CSS VARIABLES - EASY COLOR CUSTOMIZATION
   ========================================== */
:root {
    /* Primary brand color - easily customizable per property */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    
    /* Link color - Standard hyperlink blue for accessibility */
    --link-color: #0000EE;
    --link-visited: #551A8B;
    --link-hover: #0000CC;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.7em;
    
    /* Colors - Always white background */
    --color-background: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    
    /* Layout */
    --max-width: 1200px;
    --content-width: 720px;
    --spacing: 2rem;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* ==========================================
   LAYOUT
   ========================================== */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
    width: 100%;
}

.content-area {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Content with Sidebar Layout - Desktop Only */
.site-content.has-sidebar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: block;
}

.site-content.has-sidebar .content-area {
    max-width: 100%;
    margin: 0;
}

.site-content.has-sidebar .sidebar {
    margin-top: 2rem;
    width: 100%;
}

/* Desktop: Side-by-side layout */
@media (min-width: 769px) {
    .site-content.has-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        align-items: start;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .site-content.has-sidebar .content-area {
        max-width: 720px;
        min-width: 0;
        padding-right: 1rem;
    }
    
    .site-content.has-sidebar .sidebar {
        position: sticky;
        top: 2rem;
        padding-left: 2rem;
        border-left: 2px solid var(--color-border);
        margin-top: 0;
        width: 300px;
    }
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem var(--spacing);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.site-title a {
    color: var(--color-text);
    text-decoration: none;
}

.site-description {
    display: none;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

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

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
}

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

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

/* ==========================================
   CONTENT
   ========================================== */
article {
    margin-bottom: 4rem;
}

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

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

.entry-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: var(--color-text-light);
}

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

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ==========================================
   ARCHIVE/INDEX
   ========================================== */
.post-list {
    list-style: none;
}

.post-list-item {
    margin-bottom: 3rem;
}

.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.read-more {
    display: inline-block;
    color: var(--link-color);
    font-weight: 500;
    margin-top: 0.25rem;
    text-decoration: underline;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    margin-top: 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.widget li {
    margin-bottom: 0.5rem;
}

/* Native Ads Widget */
.native-ads-widget {
    margin-bottom: 2rem;
}

.native-ad-item {
    display: block;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

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

.native-ad-item:hover .native-ad-title {
    color: var(--link-hover);
}

.native-ad-image {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: block;
}

/* Native ads without images */
.native-ad-item:not(:has(img)) .native-ad-title {
    margin-top: 0;
}

.native-ad-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.native-ad-sponsored {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--color-background);
    border-top: 2px solid var(--color-border);
    padding: 3rem var(--spacing) 1.5rem;
    margin-top: 4rem;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Portfolio Properties List */
.footer-properties {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-properties-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-properties-list {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-properties-list a {
    color: var(--link-color);
    text-decoration: underline;
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer-navigation a {
    font-size: 0.875rem;
    color: var(--link-color);
}

/* Disclaimers */
.footer-disclaimers {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-align: left;
}

.footer-disclaimer:last-child {
    margin-bottom: 0;
}

.footer-disclaimer strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 12px;
    color: var(--color-text);
}

/* Site Info & Copyright */
.site-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.site-info p {
    margin: 0.5rem 0;
}

.footer-address {
    font-style: normal;
    margin-top: 0.5rem;
}

.footer-navigation a {
    color: var(--color-text-light);
}

/* ==========================================
   FORMS & BUTTONS
   ========================================== */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

button,
input[type="submit"],
.button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    background: var(--primary-hover);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-background);
        border-top: 1px solid var(--color-border);
        padding: 1rem;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

/* ==========================================
   UTILITIES
   ========================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
