
/* =========================================
   1. Reset & Base Styles
   ========================================= */
:root {
    /* Color Palette */
    --color-primary: #fa5800; /* Orange from inline styles */
    --color-primary-dark: #d64700;
    --color-secondary: #1e293b; /* Dark slate blue */
    --color-accent: #3b82f6; /* Bright blue */
    --color-background: #f8fafc; /* Very light gray */
    --color-surface: #ffffff;
    --color-text-main: #334155;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-gradient-start: #fa5800;
    --color-gradient-end: #ff8c42;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 6px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

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

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

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

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

ul, ol {
    list-style: none;
}

/* =========================================
   2. Layout & Container
   ========================================= */
.grid-container,
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.site-content {
    display: flex;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.content-area {
    width: 100%;
}

/* =========================================
   3. Header Styles
   ========================================= */
.site-header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

/* Header Buttons Group */
.header-widget .wp-block-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

/* =========================================
   4. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

strong {
    color: var(--color-secondary);
    font-weight: 600;
}

/* =========================================
   5. Buttons & Interactive Elements
   ========================================= */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Primary Button Style (Download/Reg) */
.wp-block-button__link[style*="background-color"] {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end)) !important;
    color: #fff !important;
    border: none;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.wp-block-button__link:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center;
    margin: var(--spacing-md) 0;
    gap: 1rem;
}

/* Full width button on mobile */
@media (max-width: 768px) {
    .wp-block-button, 
    .wp-block-button__link {
        width: 100%;
        display: block;
    }
}

/* =========================================
   6. Content Elements (Article)
   ========================================= */
.inside-article {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Feature List */
.feature-list {
    background-color: #f1f5f9;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
    border-left: 5px solid var(--color-primary);
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

/* Images within content */
.wp-block-image figure {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.wp-block-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.wp-block-image img:hover {
    transform: scale(1.02);
}

.alignleft {
    float: left;
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

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

/* Separator */
hr.wp-block-separator {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: var(--spacing-md) 0;
}

/* Preformatted text */
.wp-block-preformatted {
    background-color: var(--color-secondary);
    color: #fff;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    overflow-x: auto;
    white-space: pre-wrap;
}

.wp-block-preformatted a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =========================================
   7. Tables
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background-color: var(--color-secondary);
    color: #fff;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: 600;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Responsive Table */
@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =========================================
   8. FAQ (Details/Summary)
   ========================================= */
details.wp-block-details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    transition: all 0.3s ease;
}

details.wp-block-details[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    background-color: #f8fafc;
    position: relative;
    list-style: none; /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-secondary);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details .wp-block-details-content, /* Hypothetical child wrapper */
details > p {
    padding: 1rem;
    margin: 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    animation: fadeIn 0.4s ease;
}

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

/* =========================================
   9. Footer & Utilities
   ========================================= */
center {
    margin-top: var(--spacing-lg);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.skip-link:focus {
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: #fff;
    padding: 1rem;
    z-index: 9999;
}

/* =========================================
   10. Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    /* Header adjustments */
    .inside-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-widget {
        width: 100%;
    }
    
    .header-widget .wp-block-buttons {
        justify-content: center;
    }

    /* Typography scaling */
    h1 {
        margin-top: 1rem;
    }

    /* Layout */
    .inside-article {
        padding: var(--spacing-sm);
    }
    
    .wp-block-image .alignleft {
        float: none;
        margin: 0 auto var(--spacing-sm);
        display: block;
    }
    
    /* Buttons */
    .wp-block-button {
        width: 100%;
    }
}
