
/* =========================================
   1. Reset & Variables (Modern Foundation)
   ========================================= */
:root {
    /* Color Palette - Dark & Premium Theme */
    --color-bg-body: #0f1115;
    --color-bg-card: #1a1d24;
    --color-bg-header: rgba(15, 17, 21, 0.95);
    
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-heading: #ffffff;
    
    --color-primary: #ff4b1f; /* Vibrant Orange/Red */
    --color-primary-dark: #cc3a16;
    --color-secondary: #ff9068; /* Soft Peach/Gold gradient end */
    --color-accent: #ffd700; /* Gold for highlights */
    
    --color-border: #2d3748;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-gold: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-h1: clamp(2rem, 5vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 4vw, 2.5rem);
    --font-size-h3: clamp(1.25rem, 3vw, 2rem);
    
    /* Spacing & Sizes */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    
    /* Effects */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 75, 31, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

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

ul, ol {
    list-style: none;
}

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

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

.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;
}

/* =========================================
   3. Header Styling
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: transform var(--transition-smooth);
}

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

.site-logotype {
    width: 150px;
    height: 40px;
    background-color: var(--color-text-muted); /* Placeholder for missing image */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 25'%3E%3Cpath d='M10,12 L20,12 M15,5 L15,20' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 25'%3E%3Cpath d='M10,12 L20,12 M15,5 L15,20' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form__text {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    color: var(--color-text-main);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition-fast);
}

.search-form__text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 75, 31, 0.2);
}

.search-form__submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form__submit::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    position: relative;
}

.search-form__submit::after {
    content: '';
    display: block;
    width: 2px;
    height: 6px;
    background: var(--color-text-muted);
    position: absolute;
    transform: rotate(-45deg);
    bottom: 4px;
    right: 4px;
}

.search-form__submit:hover::before {
    border-color: var(--color-primary);
}

.search-form__submit:hover::after {
    background: var(--color-primary);
}

/* Mobile Hamburger */
.mob-hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

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

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

.mob-hamburger::before { top: 0; }
.mob-hamburger::after { bottom: 0; }

/* =========================================
   4. Content & Article Styling
   ========================================= */
.site-content {
    margin-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease-out;
}

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

.entry-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.entry-title {
    font-size: var(--font-size-h1);
    font-weight: 800;
    color: var(--color-text-heading);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-separator {
    height: 1px;
    width: 100px;
    background: var(--gradient-primary);
    margin: 0 auto var(--spacing-md);
}

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

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

.entry-content h3 {
    font-size: var(--font-size-h2);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    color: var(--color-text-heading);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

/* Lists */
.wp-block-list {
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
    padding: 0;
}

.wp-block-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.wp-block-list li::before {
    content: '➢';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Images */
figure.wp-block-image {
    margin: var(--spacing-md) 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

figure.wp-block-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

/* =========================================
   5. Buttons (CTA)
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.btn-box {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-size-big {
    font-size: 1.1rem;
    min-width: 250px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 75, 31, 0.6);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 75, 31, 0.4);
}

/* =========================================
   6. Comments Section styling
   ========================================= */
.comments-area {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: var(--font-size-h3);
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.comment-list {
    display: grid;
    gap: var(--spacing-sm);
    padding: 0;
}

.comment-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background-image: var(--gradient-card);
}

.comment-box:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    margin-right: 1rem;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: 700;
    color: var(--color-text-heading);
    font-style: normal;
}

.comment-time {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.comment-footer {
    margin-top: 1rem;
    text-align: right;
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-primary);
    border-radius: 1rem;
    transition: all var(--transition-fast);
}

.comment-reply-link:hover {
    background-color: var(--color-primary);
    color: white;
}

/* =========================================
   7. Responsive Design (Tablets & Mobile)
   ========================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .site-header-inner {
        padding: 0 1rem;
    }

    .mob-hamburger {
        display: block;
        order: 1;
    }

    .site-branding {
        order: 2;
        margin-left: 1rem;
    }

    .mob-search {
        display: none; /* Often hidden on mobile or toggled */
    }

    .entry-title {
        text-align: center;
    }

    .btn {
        width: 100%;
    }
    
    .comment-header {
        flex-direction: row;
    }
    
    .comment-box {
        padding: 1rem;
    }

    .entry-content p {
        text-align: justify;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .site-logotype {
        width: 100px;
    }
    
    .btn-size-big {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}
