/* ==========================================================================
   CMS Public Site Styles
   ========================================================================== */

:root {
    --cms-brand: #0066CC;
    --cms-brand-dark: #004C99;
    --cms-text: #333;
    --cms-text-muted: #6c757d;
}

/* Reset */
.cms-public-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cms-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
}
.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    color: var(--cms-text) !important;
    transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--cms-brand) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}
.dropdown-item:hover {
    background: #f0f4ff;
    color: var(--cms-brand);
}

/* Main content - ensure GrapesJS content renders properly */
main {
    min-height: calc(100vh - 200px);
}
main section {
    overflow: hidden;
}
main img {
    max-width: 100%;
    height: auto;
}

/* Buttons from GrapesJS */
main .btn-primary {
    background: var(--cms-brand);
    border-color: var(--cms-brand);
}
main .btn-primary:hover {
    background: var(--cms-brand-dark);
    border-color: var(--cms-brand-dark);
}

/* Footer */
.cms-public-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    margin-top: 2rem;
}
.cms-footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
}
.cms-footer-link:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-collapse {
        padding: 1rem 0;
    }
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
