:root {
    --primary-color: #B9410E;
    --text-color: #333;
    --bg-color: #fff;
    --sidebar-width: 280px;
    --sidebar-bg: #f8f9fa;
    --border-color: #e9ecef;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(185, 65, 14, 0.08);
}

/* Banner */
.banner-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start; /* Aligns with Left text alignment of the doc */
}

.doc-banner {
    width: 300px; /* Fixed smaller width */
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Intro Text */
.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(185, 65, 14, 0.1);
    border-color: rgba(185, 65, 14, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(185, 65, 14, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 1000px;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

/* Code Blocks */
pre {
    background: #1e1e1e;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.inline-code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #c7254e;
    font-size: 0.9em;
}

/* Lists */
ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Info Box */
.info-box {
    background-color: rgba(185, 65, 14, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

/* Support Button */
.btn-support {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: opacity 0.2s;
}

.btn-support:hover {
    opacity: 0.9;
}

/* Screenshots Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border-color);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.screenshot-thumb {
    width: 100%;
    height: 350px; /* Force consistent height */
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 4px;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        padding: 8px;
        font-size: 20px;
        background-color: rgba(0,0,0,0.5);
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
