/* public/css/main.css */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 50px -12px rgba(99, 102, 241, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    scroll-behavior: smooth;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #111;
}

h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    color: #333;
}

p {
    margin: 0.9rem 0;
}

.intro-box {
    background: #fffbea;
    border-left: 4px solid #f6a623;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 0.97rem;
}

.tip-box {
    background: #eef7f1;
    border-left: 4px solid #2c6e49;
    padding: 14px 18px;
    border-radius: 4px;
    margin: 1.25rem 0;
}

.tip-box strong {
    color: #2c6e49;
}

.conclusion-list {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.conclusion-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.conclusion-list li {
    margin: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--slate-700);
}

.conclusion-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.conclusion-list li strong {
    color: var(--slate-900);
    display: block;
    margin-bottom: 0.15rem;
}

/* Modern FAQ Section Styling */
.faq-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, white 0%, var(--slate-50) 100%);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.faq-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-align: center;
}

.faq-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.faq-section h3::before {
    content: "Q.";
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 900;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 2px;
}

.faq-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate-600);
    margin-bottom: 1.25rem;
    padding-left: 3.5rem;
}

.faq-section p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .faq-section {
        padding: 1.25rem;
    }
    .faq-section p {
        padding-left: 2rem;
    }
}

.meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.premium-card {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-card {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--slate-100);
    position: relative;
    z-index: 2;
}

.category-card:hover .category-icon-wrapper {
    transform: rotate(-5deg) scale(1.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: var(--slate-50);
    color: var(--slate-600);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--slate-100);
    z-index: 2;
}

.category-card:hover .category-badge {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

html { scroll-behavior: smooth; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-premium {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Post Content Styling */
.post-content {
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--slate-600);
}

.post-content h2 {
    color: var(--slate-900);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: var(--radius-xl);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}

.post-content .ad-slot {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.post-content .ad-slot img {
    box-shadow: none !important;
    margin: 0 !important;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--slate-900);
    margin: 1.5rem 0;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-50);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 5px;
    border: 3px solid var(--slate-50);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
}

/* Sidebar Gradient */
.sidebar-premium-box {
    background: linear-gradient(180deg, white 0%, var(--slate-50) 100%);
    border: 1px solid var(--slate-100);
    position: sticky;
    top: 100px;
}

/* Enhanced Post Content */
.post-content h3 {
    color: var(--slate-900);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content .relative.z-10 a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-content .relative.z-10 a:hover {
    color: var(--secondary);
}

.post-content .wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.75rem;
}

/* Table of Contents / Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-soft);
}

/* Table of Contents Premium Styling */
.toc {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.toc:hover {
    box-shadow: var(--shadow-premium);
    border-color: rgba(99, 102, 241, 0.1);
}

.toc h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.toc h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc li {
    margin-bottom: 0.5rem;
    counter-increment: toc-counter;
    position: relative;
    padding-left: 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc li:last-child {
    margin-bottom: 0;
}

.toc li::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-400);
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.toc li a {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
}

.toc li:hover {
    transform: translateX(6px);
}

.toc li:hover::before {
    color: var(--primary);
}

.toc li:hover a {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.toc li a:hover {
    text-decoration: none;
}

.floating-share {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@media (min-width: 1440px) {
    .floating-share {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}
/* 404 Page Customizations */
.select-none {
    user-select: none;
    -webkit-user-select: none;
}

/* Search UI Refinement */
#searchInput::placeholder {
    color: var(--slate-400);
    opacity: 0.5;
}

#searchOverlay {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchOverlay.opacity-100 {
    background: rgba(255, 255, 255, 0.95);
}

