﻿/* ==========================================
   MANUAL DE UTILIZARE — GeoCG
   Sidebar + Main layout, restyled to match
   the site's design system (--accent, --dark, --light, --text)
   ========================================== */

/* --- Layout: sidebar + main --- */
.manual-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

/* ===========================
   SIDEBAR
   =========================== */
.manual-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--dark);
    color: #ccc;
    overflow-y: auto;
    z-index: 50;
    padding: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.manual-sidebar::-webkit-scrollbar {
    width: 5px;
}

.manual-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.manual-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.manual-sidebar-logo {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
}

.manual-sidebar-app {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.manual-sidebar-sub {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.manual-nav-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    padding: 1rem 1.25rem 0.4rem;
}

.manual-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.manual-sidebar a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(46,204,113,0.3);
}

.manual-sidebar a.active {
    color: #fff;
    background: rgba(46,204,113,0.1);
    border-left-color: var(--accent);
}

.manual-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}

.manual-sidebar a.active .manual-nav-icon,
.manual-sidebar a:hover .manual-nav-icon {
    opacity: 1;
}

/* --- Sidebar toggle (mobile) --- */
.manual-sidebar-toggle {
    display: none;
    position: fixed;
    top: 70px;
    left: 12px;
    z-index: 60;
    background: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.manual-sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.manual-sidebar-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.manual-sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.manual-sidebar-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.manual-main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
    padding: 0 2.5rem 3rem;
    background: var(--light);
}

/* ===========================
   HERO
   =========================== */
.manual-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    margin: 0 -2.5rem 2rem;
    background: white;
    border-bottom: 1px solid #eee;
}

.manual-hero-badge {
    display: inline-block;
    background: rgba(46,204,113,0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.manual-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.manual-hero h1 span {
    color: var(--accent);
}

.manual-hero-desc {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.manual-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.manual-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.manual-hero-meta-item .label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

.manual-hero-meta-item .value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
}

/* ===========================
   SECTIONS
   =========================== */
.manual-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    scroll-margin-top: 30px;
    transition: box-shadow 0.3s ease;
}

.manual-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.manual-section:target {
    box-shadow: 0 0 0 2px var(--accent), 0 4px 16px rgba(46,204,113,0.1);
}

.manual-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.manual-section-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
}

.manual-section-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.manual-section p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.manual-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.75rem 0 0.75rem;
}

.manual-section h3:first-of-type {
    margin-top: 1.25rem;
}

/* ===========================
   TOC GRID (Overview section)
   =========================== */
.manual-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.manual-toc-card {
    display: block;
    background: var(--light);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.manual-toc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.manual-toc-card:hover {
    border-color: rgba(46,204,113,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.manual-toc-card:hover::before {
    opacity: 1;
}

.manual-tc-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.manual-tc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.manual-tc-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.4;
}

/* ===========================
   FIELD TABLES
   =========================== */
.manual-field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.manual-field-table thead tr {
    background: var(--dark);
}

.manual-field-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    text-align: left;
}

.manual-field-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.manual-field-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.manual-field-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    line-height: 1.5;
    vertical-align: top;
}

.manual-field-table tbody td:first-child {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.manual-field-table tbody tr:last-child td {
    border-bottom: none;
}

.manual-field-table tbody tr:hover {
    background: rgba(46,204,113,0.03);
}

/* ===========================
   SCREENSHOTS
   =========================== */
.manual-screenshot {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #1a1a2e;
}

.manual-screenshot-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #252540;
}

.manual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.manual-dot-r { background: #ff5f57; }
.manual-dot-y { background: #febc2e; }
.manual-dot-g { background: #28c840; }

.manual-bar-title {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-left: 0.5rem;
    font-weight: 500;
}

.manual-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.manual-img-small {
    max-width: 280px;
}

.manual-img-full {
    width: 100%;
}

.manual-screenshot-caption {
    padding: 0.6rem 1rem;
    background: #252540;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    text-align: center;
    font-style: italic;
}

/* ===========================
   STEPS
   =========================== */
.manual-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin: 1rem 0 1.5rem;
}

.manual-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.manual-step:last-child {
    padding-bottom: 0;
}

/* Vertical connector line */
.manual-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(46,204,113,0.15));
}

.manual-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.manual-step-body {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.65;
    padding-top: 0.4rem;
}

.manual-step-body strong {
    color: var(--dark);
}

/* ===========================
   CALLOUTS
   =========================== */
.manual-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 10px;
    padding: 1.15rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.manual-callout-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.manual-callout-body {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.manual-callout-body strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

/* Tip */
.manual-callout-tip {
    background: linear-gradient(135deg, rgba(46,204,113,0.06) 0%, rgba(46,204,113,0.02) 100%);
    border-color: var(--accent);
}

/* Warning */
.manual-callout-warn {
    background: linear-gradient(135deg, rgba(243,156,18,0.06) 0%, rgba(243,156,18,0.02) 100%);
    border-color: #f39c12;
}

/* Info */
.manual-callout-info {
    background: linear-gradient(135deg, rgba(52,152,219,0.06) 0%, rgba(52,152,219,0.02) 100%);
    border-color: #3498db;
}

/* ===========================
   MENU LIST
   =========================== */
.manual-menu-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.manual-menu-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.manual-menu-list li:last-child {
    border-bottom: none;
}

.manual-item-name {
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
    min-width: 160px;
}

.manual-item-desc {
    color: #666;
}

/* ===========================
   2-COL GRID
   =========================== */
.manual-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
    align-items: start;
}

/* ===========================
   COLOR INDICATORS (status bar section)
   =========================== */
.manual-color-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.manual-color-indicator::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.manual-color-white::before {
    background: #aaa;
}

.manual-color-green::before {
    background: var(--accent);
}

.manual-color-yellow::before {
    background: #f39c12;
}

/* ===========================
   FOOTER NOTE
   =========================== */
.manual-footer-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 600px;
}

/* ===========================
   FOOTER CTA
   =========================== */
.manual-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.manual-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.manual-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.manual-cta-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.manual-cta-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .manual-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .manual-sidebar.manual-sidebar-open {
        transform: translateX(0);
    }

    .manual-sidebar-toggle {
        display: flex;
    }

    .manual-main {
        margin-left: 0;
        padding: 0 1.5rem 3rem;
    }

    .manual-hero {
        margin: 0 -1.5rem 2rem;
        padding: 3rem 1.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .manual-main {
        padding: 0 1rem 2rem;
    }

    .manual-hero {
        margin: 0 -1rem 1.5rem;
        padding: 2.5rem 1rem 2rem;
    }

    .manual-hero h1 {
        font-size: 2.2rem;
    }

    .manual-hero-desc {
        font-size: 0.95rem;
    }

    .manual-hero-meta {
        gap: 1.5rem;
    }

    .manual-section {
        padding: 1.75rem 1.25rem;
    }

    .manual-section-header {
        gap: 0.7rem;
    }

    .manual-section-num {
        font-size: 1.4rem;
    }

    .manual-section-header h2 {
        font-size: 1.2rem;
    }

    .manual-grid-2 {
        grid-template-columns: 1fr;
    }

    .manual-toc-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .manual-item-name {
        min-width: 120px;
    }

    .manual-step {
        gap: 0.9rem;
    }

    .manual-step-num {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .manual-step:not(:last-child)::after {
        left: 14px;
        top: 34px;
    }

    .manual-callout {
        flex-direction: column;
        gap: 0.5rem;
    }

    .manual-cta {
        padding: 2rem 1.25rem;
    }

    .manual-field-table {
        font-size: 0.82rem;
    }

    .manual-field-table thead th {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }

    .manual-field-table tbody td {
        padding: 0.5rem 0.65rem;
    }

    .manual-field-table tbody td:first-child {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .manual-hero h1 {
        font-size: 1.8rem;
    }

    .manual-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .manual-section-num {
        font-size: 1.2rem;
    }

    .manual-section-header h2 {
        font-size: 1.05rem;
    }

    .manual-toc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .manual-toc-card {
        padding: 0.85rem;
    }

    .manual-tc-num {
        font-size: 1.2rem;
    }

    .manual-menu-list li {
        flex-direction: column;
        gap: 0.15rem;
    }

    .manual-item-name {
        min-width: unset;
    }

    .manual-sidebar-toggle {
        top: 62px;
        left: 8px;
    }
}
