/* =====================================================
   UPUTSTVO PAGE
   Uses theme.css variables only - no hardcoded colors
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input, select, textarea, button, th, td, p, a, h1, h2, h3, legend, label {
    font-family: inherit;
}

/* =====================================================
   SCANLINES & NOISE
   ===================================================== */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

/* =====================================================
   HAMBURGER MENU
   ===================================================== */

.menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    width: auto;
    max-width: none;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.menu-toggle:hover span {
    background: var(--bg-primary);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   SLIDE-IN MENU
   ===================================================== */

.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    z-index: 2000;
    padding: 5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-menu);
}

.slide-menu.active {
    right: 0;
}

.menu-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-align: center;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.2rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.slide-menu .menu-btn-item {
    width: 100%;
    padding: 1rem;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 2px;
    color: var(--btn-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    white-space: nowrap;
    max-width: none;
}

.slide-menu .menu-btn-item:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border);
}

/* =====================================================
   UPUTSTVO CONTAINER
   ===================================================== */

.uputstvo-container {
    max-width: 720px;
    width: 100%;
    margin-top: 1rem;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-primary);
}

.header p {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* =====================================================
   SECTIONS
   ===================================================== */

.guide-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.guide-section-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.guide-section-header:hover {
    border-bottom-color: var(--accent-primary);
}

.guide-section-header h2 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin: 0;
}

.guide-section-header .toggle-icon {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    font-weight: 700;
}

.guide-section.open .toggle-icon {
    transform: rotate(180deg);
}

.guide-section-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.guide-section.open .guide-section-body {
    padding: 1rem;
    max-height: 2000px;
}

.guide-section-body p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.guide-section-body p:last-child {
    margin-bottom: 0;
}

.guide-section-body strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.guide-section-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.guide-section-body ul:last-child {
    margin-bottom: 0;
}

.guide-section-body li {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-primary);
    padding-left: 1rem;
    position: relative;
}

.guide-section-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.step-num {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    line-height: 1.4em;
    text-align: center;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 2px;
    margin-right: 0.4em;
    vertical-align: middle;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 720px;
}

.footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .uputstvo-container {
        max-width: 100%;
    }

    .guide-section-body {
        font-size: 0.75rem;
    }
}
