/**
 * ToolsSoGood.com - Custom Stylesheet (White & Sky-Blue Clean Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --brand-blue-50: #f0f9ff;
    --brand-blue-100: #e0f2fe;
    --brand-blue-200: #bae6fd;
    --brand-blue-500: #0ea5e9;
    --brand-blue-600: #0284c7;
    --brand-blue-700: #0369a1;
    --brand-navy: #0f172a;
}

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Article Prose Formatting */
.article-prose {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #334155;
}

.article-prose h2 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    scroll-margin-top: 5rem;
}

.article-prose h3 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0369a1;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    scroll-margin-top: 5rem;
}

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

.article-prose ul, .article-prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-prose ul {
    list-style-type: disc;
}

.article-prose ol {
    list-style-type: decimal;
}

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

.article-prose strong {
    color: #0f172a;
    font-weight: 600;
}

/* Table of Contents Box */
.toc-box {
    background: #ffffff;
    border: 1px solid #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.toc-link {
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem 0;
    color: #475569;
    text-decoration: none;
}

.toc-link:hover, .toc-link.active {
    color: #0284c7;
    font-weight: 600;
    transform: translateX(4px);
}

.toc-link.toc-h3 {
    padding-left: 1.25rem;
    font-size: 0.925rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Full Width Fluid Containers */
.container-fluid-clean {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1280px) {
    .container-fluid-clean {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast-item {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
