
:root {
    /* Color Palette */
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #334155;
    --text-light: #94a3b8;
    --text-white: #f8fafc;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --success: #10b981;
    --border-color: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: clamp(1.75rem, 4vw, 2.5rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2rem);
    --line-height-body: 1.6;
    --line-height-heading: 1.2;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* Layout Containers */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.skip-link:focus {
    background-color: var(--bg-card);
    color: var(--accent-color);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    clip: auto !important;
    clip-path: none;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.site-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Branding & Logo */
.header-html-1 a {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.025em;
}

/* Mobile Hamburger */
.mob-hamburger {
    display: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    position: relative;
    z-index: 101;
}

.mob-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.mob-hamburger span::before,
.mob-hamburger span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

.mob-hamburger span::before { top: -8px; }
.mob-hamburger span::after { top: 8px; }

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.search-form:focus-within {
    background: var(--bg-card);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.search-form__text {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-form:focus-within .search-form__text {
    color: var(--text-main);
}

.search-form__submit {
    background-color: var(--accent-color);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
}

.search-form__submit::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid white;
    border-radius: 50%;
    display: block;
}

.search-form__submit::after {
    content: '';
    width: 2px;
    height: 6px;
    background: white;
    position: absolute;
    transform: rotate(-45deg);
    bottom: 6px;
    right: 6px;
}

.search-form__submit:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Navigation (Desktop) */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

/* Content Area */
.site-content {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Entry Image / Title Section */
.entry-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-md);
}

.entry-image__title {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.entry-image__title h1 {
    font-size: var(--font-size-h1);
    color: var(--text-white);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Main Content & Article */
.content-area {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.entry-content {
    font-size: 1.125rem;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Images within content */
.entry-content img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

.entry-content img:hover {
    transform: scale(1.01);
}

.wp-caption {
    background: var(--bg-body);
    padding: var(--spacing-xs);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) auto;
    max-width: 100%;
}

/* Interactive Elements inside Article */
.entry-content a {
    position: relative;
    font-weight: 500;
}

.entry-content a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.entry-content a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Buttons (Generic class if added later or for form inputs) */
button, .btn {
    cursor: pointer;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header-inner {
        padding: 0 var(--spacing-sm);
    }
    
    .mob-hamburger {
        display: block;
        order: 1;
    }
    
    .header-html-1 {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    .mob-search {
        order: 3;
    }

    .search-form__text {
        width: 0;
        padding: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 100%;
        background: var(--secondary-color);
        border-radius: var(--radius-sm);
    }

    .search-form:focus-within .search-form__text {
        width: 200px;
        padding: 0.5rem;
        opacity: 1;
        right: 0;
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
    }

    .entry-image {
        min-height: 150px;
    }

    .content-area {
        padding: var(--spacing-sm);
    }
}

/* Micro-animations for selections */
::selection {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
