/*
Theme Name: De Morgen
Description: A clean, minimalist blog theme inspired by the De Morgen logo design. Features a modern, readable layout with navy blue and light blue color scheme, perfect for blog websites.
Author: Your Name
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: de-morgen
Tags: blog, one-column, two-columns, right-sidebar, accessibility-ready, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* CSS Variables for Theme Colors */
:root {
    --primary-color: #1e3a5f;        /* Navy blue from logo */
    --secondary-color: #a8c5d6;      /* Light blue from logo */
    --accent-color: #87ceeb;         /* Lighter blue for hover states */
    --text-color: #333333;          /* Dark gray for text */
    --text-light: #666666;          /* Lighter text */
    --background-color: #ffffff;     /* White background */
    --border-color: #e1e1e1;        /* Light gray borders */
    --hover-color: #154b75;         /* Darker navy for hover */
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-secondary: Georgia, serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --content-max-width: 800px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --border-radius: 4px;
    --border-radius-lg: 8px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--primary-color);
}

h1 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 var(--spacing-sm) 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Container and Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 6px;
    right: auto;
    width: auto;
    height: auto;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    z-index: 999999;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Buttons */
.btn, button, input[type="submit"], input[type="button"], .wp-block-button__link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, .wp-block-button__link:hover {
    background-color: var(--hover-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Forms */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
    padding: var(--spacing-xs);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--secondary-color);
    border-color: var(--primary-color);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* WordPress Core Alignments */
.alignnone {
    margin: var(--spacing-sm) 0;
}

.aligncenter, div.aligncenter {
    display: block;
    margin: var(--spacing-md) auto;
}

.alignright {
    float: right;
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
}

.alignleft {
    float: left;
    margin: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.aligncenter {
    clear: both;
}

/* WordPress Captions */
.wp-caption {
    background: #fff;
    border: 1px solid var(--border-color);
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: var(--spacing-sm) 0;
}

.wp-caption.alignleft {
    margin: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.wp-caption.alignright {
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
    padding: 0;
    color: var(--text-light);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-color: #000000;
        --border-color: #000000;
    }
}

/* Focus indicators for better accessibility */
button:focus, input:focus, textarea:focus, select:focus, a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}