/* base.css - Base styles and layout */
/* Reset, typography, header, container, and core layout styles */

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

html {
    background: #000000;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    min-height: 100dvh;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: white;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #cc0000;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 32px;
    height: 32px;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
    position: relative;
    transition: all 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background: white;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.hamburger.active .hamburger-icon {
    background: transparent;
}

.hamburger.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 60;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.8);
    border-right: 2px solid #cc0000;
    padding-top: env(safe-area-inset-top);
}

.side-menu.active {
    transform: translateX(0);
}

.menu-header {
    padding: 12px 12px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #333;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.menu-logo .logo {
    width: 42px;
    height: 42px;
}

.menu-title {
    font-weight: 700;
    font-size: 14px;
    color: white;
    line-height: 1.3;
}

.menu-subtitle {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

.menu-nav {
    padding: 16px 12px;
}

.menu-btn {
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    color: #b0b0b0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 rgba(204, 0, 0, 0.5);
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn.active {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(204, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.container {
    padding: 10px 10px 0 10px;
    max-width: 480px;
    margin: 0 auto;
}
