
/* =========================================
   1. Reset & Normalization
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* 16px default */
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* =========================================
   2. CSS Variables (Custom Properties)
   ========================================= */
:root {
    /* Color Palette */
    --color-primary: #e62e04; /* Fire Red */
    --color-primary-dark: #b00e00;
    --color-secondary: #1a1f2c; /* Dark Blue/Charcoal */
    --color-accent: #ffcc00; /* Gold */
    
    --color-text-main: #334155;
    --color-text-heading: #0f172a;
    --color-text-light: #64748b;
    --color-bg-body: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    --gradient-gold: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    --gradient-dark: linear-gradient(to right, #243949 0%, #517fa4 100%);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --container-width: 75rem; /* 1200px */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-pill: 50px;

    /* 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);
    --shadow-glow: 0 0 15px rgba(230, 46, 4, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   3. Base Typography
   ========================================= */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-heading);
    line-height: 1.2;
    margin-bottom: 1em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.25em;
    margin-top: 1.5em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-top: 1.5em;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =========================================
   4. Layout Structure
   ========================================= */
.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 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.site-branding {
    flex-shrink: 0;
}

.site-logotype {
    width: 150px;
    height: 40px;
    background-color: var(--color-secondary); /* Fallback */
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 25"><text y="20" font-size="20" font-weight="bold">AZINO777</text></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 25"><text y="20" font-size="20" font-weight="bold">AZINO777</text></svg>');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background: var(--gradient-primary);
}

/* Header Search Form */
.mob-search {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.search-form {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-form__text {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-pill);
    background-color: var(--color-bg-body);
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.search-form__text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(230, 46, 4, 0.1);
}

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

.search-form__submit::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
    box-sizing: border-box;
}

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

.search-form__submit:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 5px rgba(230, 46, 4, 0.4);
}

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

.mob-hamburger span,
.mob-hamburger span::before,
.mob-hamburger span::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    position: absolute;
    transition: var(--transition);
}

.mob-hamburger span { top: 50%; transform: translateY(-50%); }
.mob-hamburger span::before { content: ''; top: -8px; }
.mob-hamburger span::after { content: ''; top: 8px; }

/* =========================================
   6. Main Content Area
   ========================================= */
.site-content {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.content-area {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

/* Article Styling */
.entry-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
}

.page-separator {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 2rem auto;
    border-radius: 2px;
}

/* =========================================
   7. Buttons & Interactive Elements
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.btn-box {
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-pill);
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(230, 46, 4, 0.3);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dd2476 0%, #ff512f 100%); /* Reversed gradient */
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 46, 4, 0.5);
    color: white;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(230, 46, 4, 0.3);
}

.btn-size-big {
    font-size: 1.125rem;
    padding: 1em 2.5em;
}

/* =========================================
   8. Images & Figures
   ========================================= */
.wp-block-image {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.wp-block-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

/* =========================================
   9. Lists & Tables
   ========================================= */
.wp-block-list, 
ol.wp-block-list {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Tables */
.wp-block-table {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    font-size: var(--font-size-sm);
}

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

th {
    background-color: var(--color-secondary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #f1f5f9;
}

/* =========================================
   10. Footer
   ========================================= */
.site-footer {
    background: var(--color-secondary);
    color: #94a3b8;
    padding: var(--spacing-lg) 0;
    margin-top: auto;
    font-size: var(--font-size-sm);
}

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

.footer-info a {
    color: white;
    text-decoration: underline;
}

/* =========================================
   11. Micro-interactions & Utility
   ========================================= */
.scrolltop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scrolltop::before {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(-135deg);
    margin-top: 6px;
}

.scrolltop.is-visible, 
.scrolltop:hover { /* Added hover for visual check if JS is missing */
    opacity: 1;
    visibility: visible;
}

.scrolltop:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

/* =========================================
   12. Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-wrap: wrap;
    }

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

    .site-branding {
        order: 2;
        margin-right: auto;
        margin-left: var(--spacing-sm);
    }
    
    .mob-search {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .search-form {
        max-width: 100%;
    }

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

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Form Styles for better UI within content */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: #fff;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 46, 4, 0.1);
}
