/* Removed slow @import — moved to header.php <link> for better performance */

:root {
    --primary: #F1641E;
    --primary-hover: #D95A1A;
    --secondary: #FFF6F1;
    --dark: #1F1F1F;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark {
    --primary: #F1641E;
    --secondary: #2D1A11;
    --dark: #F5F5F5;
    --light: #1F1F1F;
    --white: #121212;
    --gray-400: #6B7280;
    --gray-600: #9CA3AF;
    
    --shadow-soft: 0 10px 25px -5px rgba(255, 255, 255, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Added fallback system fonts */
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Layout Stability: Reserve space for Ad Slots to prevent CLS */
.ad-slot {
    min-height: 100px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.ad-top, .ad-after_tool { min-height: 90px; }
.ad-sidebar { min-height: 250px; }
.ad-in_article { min-height: 60px; }

p {
    line-height: 1.7;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .glass-card {
    background: rgba(31, 31, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(241, 100, 30, 0.2), 0 2px 4px -1px rgba(241, 100, 30, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(241, 100, 30, 0.3), 0 4px 6px -2px rgba(241, 100, 30, 0.15);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 100, 30, 0.2);
}

.dark .btn-secondary {
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Input Styling */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    background-color: var(--white);
    color: var(--dark);
    transition: all 0.2s ease;
}

.dark .input-field {
    border: 1px solid #374151;
    background-color: #1F1F1F;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(241, 100, 30, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Prose Styling */
.prose {
    max-width: 65ch;
    color: var(--gray-600);
}

.prose h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--dark);
    font-weight: 700;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.625rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.dark .prose {
    color: var(--gray-400);
}

.dark .prose h2, .dark .prose h3 {
    color: #fff;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Tables for Blog / Articles */
.prose table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prose th, .prose td {
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    min-width: 120px;
}

.dark .prose th, .dark .prose td {
    border-color: #3F3F46;
}

.prose th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: var(--dark);
}

.dark .prose th {
    background-color: #27272A;
    color: #fff;
}

