/* Catppuccin Latte Color Scheme */
:root {
    --ctp-latte-rosewater: #dc8a78;
    --ctp-latte-flamingo: #dd7878;
    --ctp-latte-pink: #ea76cb;
    --ctp-latte-mauve: #8839ef;
    --ctp-latte-red: #d20f39;
    --ctp-latte-maroon: #e64553;
    --ctp-latte-peach: #fe640b;
    --ctp-latte-yellow: #df8e1d;
    --ctp-latte-green: #40a02b;
    --ctp-latte-teal: #179299;
    --ctp-latte-sky: #04a5e5;
    --ctp-latte-sapphire: #209fb5;
    --ctp-latte-blue: #1e66f5;
    --ctp-latte-lavender: #7287fd;
    --ctp-latte-text: #4c4f69;
    --ctp-latte-subtext1: #5c5f77;
    --ctp-latte-subtext0: #6c6f85;
    --ctp-latte-overlay2: #7c7f93;
    --ctp-latte-overlay1: #8c8fa1;
    --ctp-latte-overlay0: #9ca0b0;
    --ctp-latte-surface2: #acb0be;
    --ctp-latte-surface1: #bcc0cc;
    --ctp-latte-surface0: #ccd0da;
    --ctp-latte-base: #eff1f5;
    --ctp-latte-mantle: #e6e9ef;
    --ctp-latte-crust: #dce0e8;

    /* New lively background colors - warm beige/skin tones for modern, calming feel */
    --bg-sky-tint: #f5f1eb; /* Warm beige - replaces sky blue */
    --bg-lavender-tint: #f7f3ee; /* Light warm beige - replaces lavender */
    --bg-teal-tint: #f3ede7; /* Soft skin tone - replaces teal */
    --bg-sapphire-tint: #f6f0ea; /* Peachy beige - replaces sapphire */
}

/* Global Styles */
body {
    font-family:
        Ubuntu,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen-Sans,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
    background-color: #f5f1eb;
    color: var(--ctp-latte-text);
    min-height: 100vh;
}

a {
    color: var(--ctp-latte-maroon);
}

/* Navbar Customization */
.navbar {
    background-color: var(--ctp-latte-mantle);
    box-shadow: 0 2px 8px rgba(76, 79, 105, 0.1);
}

.navbar-item,
.navbar-link {
    color: var(--ctp-latte-text);
}

.navbar-item:hover,
.navbar-link:hover {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    color: var(--ctp-latte-teal);
}

.navbar-item.is-active {
    background-color: #e8e2d9;
    border-bottom: 2px solid var(--ctp-latte-peach);
    color: var(--ctp-latte-mauve);
}

/* Buttons */
.button.is-primary {
    background-color: var(--ctp-latte-maroon);
    border-color: var(--ctp-latte-maroon);
    color: white;
}

.button.is-primary:hover {
    background-color: var(--ctp-latte-peach);
    border-color: var(--ctp-latte-peach);
}

.button.is-light {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    border-color: var(--bg-lavender-tint);
    color: var(--ctp-latte-text);
}

.button.is-light:hover {
    background-color: #ddd7cc; /* Even darker for better hover visibility */
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #f7f3ee 0%, #f5f1eb 50%, #f3ede7 100%);
    border-bottom: 3px solid var(--ctp-latte-peach);
}

.hero .title {
    color: var(--ctp-latte-text);
}

.hero .subtitle {
    color: var(--ctp-latte-subtext1);
}

/* Sections */
.section {
    background-color: #f5f1eb;
}

/* Box/Card Styling */
.box {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(76, 79, 105, 0.08);
    border: 1px solid var(--bg-sapphire-tint);
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 8px 24px rgba(76, 79, 105, 0.12);
    transform: translateY(-2px);
}

.feature-box {
    border-left: 4px solid var(--ctp-latte-sapphire);
}

.feature-box:nth-child(odd) {
    border-left-color: var(--ctp-latte-sky);
}

.feature-box:nth-child(even) {
    border-left-color: var(--ctp-latte-flamingo);
}

.feature-box-compact {
    height: 100%;
    padding: 1.5rem;
    border-left: 4px solid var(--ctp-latte-peach);
}

/* Screenshot Placeholders */
.screenshot-placeholder {
    background-color: #f7f3ee;
    border-radius: 12px;
    padding: 3rem 2rem;
    border: 2px dashed var(--ctp-latte-peach);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Styling - Rounded corners and border */
.image img,
figure img {
    border-radius: 12px;
    border: 2px solid var(--bg-sapphire-tint);
    box-shadow: 0 2px 8px rgba(76, 79, 105, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Don't apply to navbar logo */
.navbar-item img {
    border: none;
    border-radius: 4px;
    box-shadow: none;
}

/* Tags */
.tag.is-success {
    background-color: var(--ctp-latte-green);
    color: white;
}

.tag.is-success.is-light {
    background-color: #d4f0cd;
    color: var(--ctp-latte-green);
    border: 1px solid var(--ctp-latte-green);
}

.tag.is-info {
    background-color: var(--ctp-latte-sky);
    color: white;
}

.tag.is-info.is-light {
    background-color: #cef3ff;
    color: var(--ctp-latte-sky);
    border: 1px solid var(--ctp-latte-sky);
}

.tag.is-light {
    background-color: var(--ctp-latte-yellow);
    color: white;
}

/* Special Sections */
.pricing-section {
    background: linear-gradient(180deg, #f5f1eb 0%, #f7f3ee 100%);
}

.price-box {
    border: 3px solid var(--ctp-latte-sky);
    background: white;
}

.download-box {
    background: linear-gradient(135deg, white 0%, #fef5ed 100%);
    border: 2px solid var(--ctp-latte-peach);
}

.cta-section {
    background: linear-gradient(135deg, #f7f3ee 0%, #f6f0ea 100%);
}

.cta-box {
    background: white;
    border: 3px solid var(--ctp-latte-lavender);
}

/* Footer */
.footer {
    background-color: #f5f1eb;
    border-top: 1px solid var(--ctp-latte-rosewater);
    color: var(--ctp-latte-subtext1);
}

.footer a {
    color: var(--ctp-latte-maroon);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--ctp-latte-peach);
}

/* Typography Enhancements */
.title {
    color: var(--ctp-latte-text);
}

.subtitle {
    color: var(--ctp-latte-subtext1);
}

.content {
    color: var(--ctp-latte-text);
}

.content strong {
    color: var(--ctp-latte-text);
    font-weight: 600;
}

.content ul {
    margin-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--ctp-latte-subtext1);
}

/* Icon Styling */
.icon-text .icon {
    margin-right: 0.5rem;
}

/* Vary icon colors for visual interest */
.feature-box:nth-child(4n + 1) .icon.has-text-primary {
    color: var(--ctp-latte-teal) !important;
}

.feature-box:nth-child(4n + 2) .icon.has-text-primary {
    color: var(--ctp-latte-sapphire) !important;
}

.feature-box:nth-child(4n + 3) .icon.has-text-primary {
    color: var(--ctp-latte-lavender) !important;
}

.feature-box:nth-child(4n + 4) .icon.has-text-primary {
    color: var(--ctp-latte-mauve) !important;
}

.has-text-primary {
    color: var(--ctp-latte-sapphire) !important;
}

.has-text-grey {
    color: var(--ctp-latte-overlay1) !important;
}

.has-text-grey-light {
    color: var(--ctp-latte-overlay0) !important;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hero.is-large .hero-body {
        padding: 3rem 1.5rem;
    }

    .title.is-1 {
        font-size: 2rem;
    }

    .order-2-mobile {
        order: 2;
    }

    .screenshot-placeholder {
        min-height: 150px;
        padding: 2rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem; /* Height of fixed navbar + extra spacing */
}

/* Animation for hover effects */
.button,
.box,
.navbar-item {
    transition: all 0.3s ease;
}

/* Custom scrollbar (webkit browsers) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-lavender-tint);
}

::-webkit-scrollbar-thumb {
    background: var(--ctp-latte-lavender);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ctp-latte-mauve);
}

/* Accessibility - Focus States */
a:focus,
button:focus,
.button:focus {
    outline: 2px solid var(--ctp-latte-teal);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .button {
        display: none;
    }

    .box {
        box-shadow: none;
        border: 1px solid var(--ctp-latte-overlay0);
        page-break-inside: avoid;
    }
}
/* Documentation-specific styles */

/* Sidebar */
.sidebar {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    border-right: 1px solid var(--ctp-latte-lavender);
    padding: 2rem 1rem;
    position: sticky;
    top: 3.25rem;
    height: calc(100vh - 3.25rem);
    overflow-y: auto;
}

.sidebar-title {
    color: var(--ctp-latte-text);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ctp-latte-subtext1);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    color: var(--ctp-latte-teal);
}

.sidebar-menu a.is-active {
    color: var(--ctp-latte-mauve);
    border-left: 3px solid var(--ctp-latte-mauve);
}

/* Doc Item Styling */
.doc-item {
    border-left: 4px solid var(--ctp-latte-sapphire);
}

.doc-item:nth-child(odd) {
    border-left-color: var(--ctp-latte-sky);
}

.doc-item:nth-child(even) {
    border-left-color: var(--ctp-latte-flamingo);
}

.topic-card {
    border-left: 4px solid var(--ctp-latte-teal);
    cursor: pointer;
}

.topic-card:hover {
    border-left-color: var(--ctp-latte-peach);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.theme-toggle .button {
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    box-shadow: 0 4px 12px rgba(76, 79, 105, 0.3);
}

.theme-toggle .button.is-primary {
    background-color: var(--ctp-latte-peach) !important;
    border-color: var(--ctp-latte-peach) !important;
}

.theme-toggle .button.is-primary:hover {
    background-color: var(--ctp-latte-maroon) !important;
    border-color: var(--ctp-latte-maroon) !important;
    transform: scale(1.05);
}

/* Back to Index Button */
.back-to-index {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 100;
}

.back-to-index .button {
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    box-shadow: 0 4px 12px rgba(76, 79, 105, 0.3);
}

.back-to-index .button.is-primary {
    background-color: var(--ctp-latte-sky) !important;
    border-color: var(--ctp-latte-sky) !important;
}

.back-to-index .button.is-primary:hover {
    background-color: var(--ctp-latte-sapphire) !important;
    border-color: var(--ctp-latte-sapphire) !important;
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb a {
    color: var(--ctp-latte-sapphire);
}

.breadcrumb a:hover {
    color: var(--ctp-latte-teal);
}

.breadcrumb li.is-active a {
    color: var(--ctp-latte-text);
}

/* Table of Contents */
.table-of-contents {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--ctp-latte-lavender);
}

.table-of-contents .title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--ctp-latte-subtext1);
    text-decoration: none;
}

.table-of-contents a:hover {
    color: var(--ctp-latte-teal);
}

/* Code blocks */
.content code {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    color: var(--ctp-latte-peach);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.content pre {
    background-color: #e8e2d9; /* Slightly darker warm beige for better contrast */
    border: 1px solid var(--ctp-latte-lavender);
    border-radius: 8px;
    padding: 1rem;
}

.content pre code {
    background-color: transparent;
    color: var(--ctp-latte-text);
    padding: 0;
}

/* Responsive sidebar */
@media screen and (max-width: 1023px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--ctp-latte-lavender);
    }
}

/* Prevent image scaling - preserve original size */
.doc-item .image img,
.doc-item figure img {
    max-width: none;
    width: auto;
    height: auto;
}
