
/* =========================================
   1. Reset & Variables (Modern CSS)
   ========================================= */
:root {
    /* Color Palette */
    --primary-hue: 210;
    --color-primary: hsl(var(--primary-hue), 100%, 35%); /* Deep Blue */
    --color-primary-light: hsl(var(--primary-hue), 80%, 60%);
    --color-secondary: hsl(150, 100%, 35%); /* Betting Green */
    --color-secondary-hover: hsl(150, 100%, 28%);
    --color-accent: hsl(340, 80%, 55%); /* Red/Pink for accents */
    
    --color-text-main: hsl(210, 20%, 20%);
    --color-text-muted: hsl(210, 10%, 50%);
    --color-bg-body: hsl(210, 20%, 96%);
    --color-bg-surface: #ffffff;
    --color-border: hsl(210, 20%, 90%);

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-relaxed: 1.7;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Effects */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: var(--line-height-relaxed);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* 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;
}

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

.site-content {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Main Content Area */
#primary {
    width: 100%;
}

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

/* Article Card Style */
article.post-2 {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

/* =========================================
   3. Typography & Elements
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-primary), #003366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: var(--spacing-md);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

/* Lists */
ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

ul.wp-block-list li::marker {
    color: var(--color-secondary);
    font-size: 1.2em;
}

/* Images */
figure.wp-block-image {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

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

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

.btn-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white !important;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    background: linear-gradient(135deg, var(--color-secondary-hover), var(--color-primary));
    color: white;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

/* =========================================
   5. Comments Section
   ========================================= */
#comments {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.comment-list {
    list-style: none;
    margin: 0;
}

.comment {
    margin-bottom: var(--spacing-md);
}

.comment-box {
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: background-color var(--transition-fast);
}

.comment-box:hover {
    background: #ffffff;
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.comment-avatar {
    margin-right: 1rem;
    flex-shrink: 0;
}

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

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

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

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

.comment-text p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    text-transform: uppercase;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Nested Comments */
.children {
    list-style: none;
    margin-left: 0;
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--color-border);
    margin-top: var(--spacing-sm);
}

/* Comment Form */
.comment-respond {
    margin-top: var(--spacing-lg);
    background: #fafbfc;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-submit .submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.form-submit .submit:hover {
    background-color: #004494;
}

/* Smiles / Checkbox */
.comment-smiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* =========================================
   6. Footer
   ========================================= */
.site-footer {
    background-color: #1a2c4e; /* Dark Navy */
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-md) 0;
    margin-top: auto;
    text-align: center;
}

.site-footer a {
    color: #fff;
}

.site-footer-inner {
    font-size: 0.9rem;
}

/* =========================================
   7. Utilities & ScrollTop
   ========================================= */
.scrolltop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: all var(--transition-fast);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scrolltop::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: rotate(45deg);
    margin-top: 4px;
}

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

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    article.post-2 {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .children {
        padding-left: var(--spacing-sm);
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    #comments {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    h1.entry-title {
        font-size: 1.75rem;
    }
}
