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

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

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* =========================================
   2. CSS Variables (Custom Properties)
   ========================================= */
:root {
    /* Colors */
    --primary: #ff5402;
    --primary-hover: #ff7836;
    --primary-dark: #cc4300;
    --secondary: #1e293b;
    --accent-blue: #3b82f6;
    
    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-light: #f1f5f9;
    
    /* Typography */
    --text-primary: #334155;
    --text-heading: #0f172a;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* Spacing & Sizes */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --container-width: 75rem; /* 1200px approx */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --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-orange: 0 10px 25px -5px rgba(255, 84, 2, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   3. Layout & Structure
   ========================================= */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.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 {
    flex: 1;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease-out;
}

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

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

.screen-reader-text:focus {
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    clip: auto !important;
    clip-path: none;
    color: var(--primary);
    display: block;
    font-size: 1rem;
    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. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

h1.entry-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 0.3rem;
    background: var(--primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: 1rem;
}

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

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-top: var(--spacing-sm);
    color: var(--secondary);
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem; /* ~17px */
    color: var(--text-primary);
}

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

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =========================================
   5. Content Components
   ========================================= */

/* Article Card */
.post-14 {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.page-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: var(--spacing-md) 0;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Buttons */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white) !important;
    border-radius: 3rem;
    background-image: linear-gradient(45deg, var(--primary), #ff8a00);
    box-shadow: var(--shadow-orange);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 84, 2, 0.6);
}

.btn:active {
    transform: translateY(-1px);
}

/* Blockquotes */
blockquote {
    margin: var(--spacing-md) 0;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    position: relative;
    font-style: normal;
}

/* Check Style Blockquote */
blockquote.check {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

blockquote.check::before {
    content: '✓';
    font-weight: 900;
    color: #22c55e;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Quote Style Blockquote */
blockquote.quote {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary);
    color: var(--text-primary);
}

blockquote.quote ul {
    margin: 0;
    padding-left: 1.2rem;
}

blockquote.quote li::marker {
    color: var(--secondary);
    font-weight: bold;
}

/* Tables (if implied or added later) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-heading);
}

/* =========================================
   6. Form Elements (Generic Modern Styles)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background-color: #fff;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 84, 2, 0.1);
}

/* Checkboxes & Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: var(--spacing-md) 0;
    margin-top: auto;
    text-align: center;
    font-size: 0.875rem;
}

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

.site-footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   8. Scroll Top Button
   ========================================= */
.scrolltop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.8;
    transition: all var(--transition-base);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrolltop::after {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: rotate(45deg);
    margin-top: 0.2rem;
}

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

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .post-14 {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm); /* Lighter shadow on mobile */
    }

    h1.entry-title {
        margin-bottom: 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .scrolltop {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 0.9rem;
    }
    
    .entry-content p {
        font-size: 1rem;
    }
}

/* =========================================
   10. Schema/Microdata Visibility
   ========================================= */
/* Ensure meta tags usually don't take space, although they are mostly head/hidden */
meta, link[itemprop] {
    display: none;
}
