/* Beach Gest Developer Guide Styles */

:root {
    --primary: #0d6efd;
    --dark: #1e1e1e;
    --darker: #121212;
    --light: #f8f9fa;
    --code-bg: #2d2d2d;
    --sidebar-width: 280px;
    --topbar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.6;
}

code, pre {
    font-family: 'Fira Code', monospace;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-header .logo i {
    color: var(--primary);
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
}

.nav-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active a {
    background: rgba(13, 110, 253, 0.2);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item a i {
    width: 18px;
    text-align: center;
    font-size: 0.8rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
}

.sidebar-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--dark);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.version-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-badge {
    background: #e9ecef;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Content */
.content {
    padding: 2rem;
    max-width: 1000px;
}

/* Doc Sections */
.doc-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.doc-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.doc-section h1 i {
    margin-right: 0.5rem;
}

.doc-section h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.doc-section h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.doc-section p {
    margin-bottom: 1rem;
}

.doc-section ul, .doc-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

/* Code blocks */
pre[class*="language-"] {
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

code:not([class*="language-"]) {
    background: #f1f3f5;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #d63384;
}

/* Tech Cards */
.tech-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.tech-card h5 {
    margin-bottom: 0.25rem;
}

.tech-card p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Tables */
.table {
    font-size: 0.875rem;
}

.table code {
    white-space: nowrap;
}

.config-table {
    margin: 1rem 0;
}

/* Footer */
.doc-footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .content {
        padding: 1rem;
    }

    .doc-section {
        padding: 1.5rem;
    }

    .topbar-actions {
        display: none;
    }

    .breadcrumb-container {
        flex-wrap: wrap;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Language Switcher */
body.lang-en .lang-it { display: none !important; }
body.lang-it .lang-en { display: none !important; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-left: 0.75rem;
}

.lang-switcher .lang-btn {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.lang-switcher .lang-btn:first-child {
    border-right: 1px solid #dee2e6;
}

.lang-switcher .lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-switcher .lang-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Print */
@media print {
    .sidebar, .topbar {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
}
