/*
Theme Name: Fabulous Minimalist
Theme URI: https://thefabweb.com
Author: The Fabulous Web
Author URI: https://thefabweb.com
Description: A minimalist light design theme embodying sophisticated simplicity. Using restraint and precision to highlight the web's elegance with geometric harmony and breathing room.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabulous-minimalist
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, minimalist, clean
*/

/* ============================================
   1. CSS VARIABLES - Design System
   ============================================ */
:root {
    /* Color System */
    --bg-gradient-start: #f5f7fa;
    --bg-gradient-end: #c3cfe2;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-tertiary: #b2bec3;
    --accent-primary: #dfe6e9;
    --accent-hover: #2d3436;
    --surface-white: #ffffff;
    
    /* Typography Scale */
    --type-display: clamp(3rem, 8vw, 5rem);
    --type-h1: clamp(2rem, 4vw, 3rem);
    --type-h2: clamp(1.5rem, 3vw, 2rem);
    --type-h3: clamp(1.25rem, 2.5vw, 1.5rem);
    --type-body: 1.125rem;
    --type-small: 0.875rem;
    
    /* Font Stack */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing System (8px Grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 40px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 96px;
    
    /* Animation */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    
    /* Layout */
    --container-max: 1200px;
    --content-max: 800px;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--type-h1);
    font-weight: 300;
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--type-h2);
    font-weight: 400;
}

h3 {
    font-size: var(--type-h3);
    font-weight: 400;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-standard);
    border-bottom: 1px solid transparent;
}

a:hover {
    border-bottom-color: var(--text-primary);
}

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--accent-primary);
    padding: 2px;
    margin: var(--space-3xl) 0;
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--accent-primary);
    padding: var(--space-md) 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-xl);
}

.main-navigation a {
    font-size: var(--type-small);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--duration-normal) var(--ease-standard);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5xl) 0;
    margin-top: 60px;
}

.hero-title {
    font-size: var(--type-display);
    font-weight: 200;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    text-align: center;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s var(--ease-standard);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
}

.hero-subtitle {
    font-size: var(--type-body);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    animation: fadeInUp 0.8s 0.2s var(--ease-standard) both;
}

/* ============================================
   7. FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--surface-white);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-standard);
    cursor: pointer;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--text-primary);
    color: var(--surface-white);
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
    transition: transform var(--duration-normal) var(--ease-standard);
}

.feature-card:hover .icon {
    transform: rotate(180deg);
}

.feature-card span {
    font-size: var(--type-small);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   8. BUTTONS
   ============================================ */
.button,
.wp-block-button__link {
    padding: var(--space-sm) var(--space-lg);
    background: var(--text-primary);
    color: var(--surface-white);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--text-primary);
}

.button:hover,
.wp-block-button__link:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 52, 54, 0.15);
}

.button-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.button-secondary:hover {
    background: var(--text-primary);
    color: var(--surface-white);
}

/* ============================================
   9. CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: var(--space-4xl) 0;
}

.section-title {
    font-size: var(--type-h1);
    font-weight: 200;
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--text-primary);
}

/* ============================================
   10. POSTS & ARTICLES
   ============================================ */
.post-card {
    background: var(--surface-white);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-standard);
}

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

.post-title {
    font-size: var(--type-h2);
    font-weight: 300;
    margin-bottom: var(--space-sm);
}

.post-meta {
    font-size: var(--type-small);
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--accent-primary);
    margin-top: var(--space-5xl);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: var(--type-small);
    color: var(--text-secondary);
}

/* ============================================
   12. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeInUp 0.8s var(--ease-standard);
}

/* ============================================
   13. ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --type-display: 2.5rem;
        --type-h1: 2rem;
        --type-h2: 1.5rem;
        --type-body: 1rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
}

/* ============================================
   15. WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
    height: auto;
    max-width: 100%;
}

.alignleft {
    float: left;
    margin-right: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-md);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--space-md);
}

.wp-block-quote {
    border-left: 3px solid var(--text-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--surface-white);
}

.comment-author {
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.comment-content {
    color: var(--text-secondary);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--accent-primary);
    background: var(--surface-white);
    font-family: var(--font-primary);
    font-size: var(--type-body);
    transition: border-color var(--duration-fast) var(--ease-standard);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--text-primary);
    outline: none;
}

/* Pagination */
.pagination {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-3xl) 0;
}

.page-numbers {
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface-white);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-standard);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--text-primary);
    color: var(--surface-white);
}