@import url("https://fonts.bunny.net/css?family=roboto:400,400i,500,500i,700,700i");

:root {
    --bg: #f8fafc; /* Very light blue-white (Slate 50) */
    --bg-alt: #f1f5f9; /* Light blue-gray (Slate 100) */
    --fg: #0f172a; /* Deep navy blue (Slate 900) */
    --fg-muted: #64748b; /* Muted slate blue (Slate 500) */
    --accent: #2563eb; /* Vivid Royal Blue (Blue 600) */
    --accent-hover: #1d4ed8; /* Darker Royal Blue (Blue 700) */
    --card: #ffffff; /* Pure White */
    --border: #e2e8f0; /* Light blue border (Slate 200) */
    --border-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --white: #ffffff;
    --toast: #2563eb;
}

[data-theme="dark"] {
    --bg: #0f172a; /* Deep navy background (Slate 900) */
    --bg-alt: #1e293b; /* Darker navy (Slate 800) */
    --fg: #f1f5f9; /* Light blue-white text (Slate 100) */
    --fg-muted: #94a3b8; /* Medium slate text (Slate 400) */
    --accent: #0870f0; /* Bright Sky Blue (Blue 400) */
    --accent-hover: #93c5fd; /* Lighter Sky Blue (Blue 300) */
    --card: #1e293b; /* Match bg-alt */
    --border: #334155; /* Dark blue border (Slate 700) */
    --border-light: #ffffff;
    --glass: rgba(15, 23, 42, 0.8);
    --white: #ffffff;
    --toast: #0870f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--fg);
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

.font-display {
    font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Roboto", sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--fg-muted);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}
.stagger-2 {
    animation-delay: 0.2s;
}
.stagger-3 {
    animation-delay: 0.3s;
}
.stagger-4 {
    animation-delay: 0.4s;
}
.stagger-5 {
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Components */
.btn-primary {
    background-color: var(--accent);
    color: white;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--fg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--border);
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-hover:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Rich Text Editor */
.editor-content {
    min-height: 120px;
    outline: none;
}

.editor-content:empty::before {
    content: attr(data-placeholder);
    color: var(--fg-muted);
    pointer-events: none;
}

.editor-content:focus {
    outline: none;
}

/* Blog Content Styles */
.blog-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}
.blog-content h2 {
    font-size: 2rem;
    lline-height: 2rem;
    font-weight: 600;
    margin: 1.75rem 0 0.875rem;
}
.blog-content h3 {
    font-size: 1.5rem;
    line-height: 1.9rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}
.blog-content h4 {
    font-size: 1.1rem;
    line-height: 1.4rem;
    font-weight: 800;
    margin: 1.5rem 0 0rem;
}
.blog-content p {
    margin: 1rem 0;
    line-height: 1.8;
}
.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}
.blog-content ul {
    list-style-type: disc;
}
.blog-content ol {
    list-style-type: decimal;
}
.blog-content li {
    margin: 0.5rem 0;
}
.blog-content blockquote {
    font-size: 1.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--fg-muted);
}
.blog-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Toolbar button active state */
.toolbar-btn {
    transition: all 0.15s ease;
}
.toolbar-btn:hover {
    background-color: var(--bg-alt);
}
.toolbar-btn.active {
    background-color: var(--accent);
    color: white;
}

/* Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Image upload area */
.upload-zone {
    border: 2px dashed var(--border);
    transition: all 0.2s ease;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background-color: var(--bg-alt);
}

/* Section column layouts */
.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Hide scrollbar for admin panel */
.admin-panel::-webkit-scrollbar {
    display: none;
}
.admin-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Editor Content Visual Styles */
.editor-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--fg);
}

.editor-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--fg);
}

.editor-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--fg);
}

.editor-content p {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.editor-content ul,
.editor-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.editor-content ul {
    list-style-type: disc;
}

.editor-content ol {
    list-style-type: decimal;
}

.editor-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: var(--fg-muted);
    background-color: var(--bg-alt);
    border-radius: 0 4px 4px 0;
}

.editor-content strong,
.editor-content b {
    font-weight: 700;
    color: var(--fg);
}

.editor-content em,
.editor-content i {
    font-style: italic;
}

.editor-content u {
    text-decoration: underline;
}

.editor-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Logo image ===== */
#nav-logo {
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}
#footer-logo {
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== Woodmont Blog Logo ===== */
@font-face {
    font-family: "N27";
    src: url("./webfonts/N27-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "N27";
    src: url("./webfonts/N27-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "N27";
    src: url("./webfonts/N27-LightItalic.woff") format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

.wm-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--fg);
}
.wm-logo-svg {
    width: 30px;
    height: 30px;
    fill: var(--accent);
    flex-shrink: 0;
}
.wm-brand-text {
    font-family: "N27", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--fg);
    white-space: nowrap;
}
.wm-brand-italic {
    font-family: "N27", sans-serif;
    font-weight: 300;
    font-style: italic;
}
.wm-footer-svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
    flex-shrink: 0;
}
.wm-footer-brand-text {
    /*font-family: "N27", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg);
    white-space: nowrap;*/
    display: none;
}
