/* =============================================
   HH3D Theme - Global Styles
   ============================================= */

:root {
    --hh3d-primary: #e50914;
    --hh3d-primary-dark: #b20710;
    --hh3d-bg: #0a0a0a;
    --hh3d-bg-card: #141414;
    --hh3d-bg-card-hover: #1f1f1f;
    --hh3d-text: #e5e5e5;
    --hh3d-text-muted: #8c8c8c;
    --hh3d-border: #2a2a2a;
    --hh3d-header-bg: #141414;
    --hh3d-radius: 6px;
    --hh3d-transition: 0.2s ease;
    --hh3d-max-width: 1280px;
    --hh3d-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--hh3d-bg);
    color: var(--hh3d-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--hh3d-text);
    text-decoration: none;
    transition: color var(--hh3d-transition);
}

a:hover {
    color: var(--hh3d-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

.Container {
    max-width: var(--hh3d-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.Main {
    padding: 20px 0;
}

/* =============================================
   Header
   ============================================= */
.Hh3dHeader {
    background: var(--hh3d-header-bg);
    border-bottom: 1px solid var(--hh3d-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.HeaderTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--hh3d-max-width);
    margin: 0 auto;
    gap: 20px;
}

.Logo img {
    height: 42px;
    width: auto;
}

.LogoText {
    font-size: 26px;
    font-weight: 700;
    color: var(--hh3d-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.SearchForm {
    display: flex;
    background: var(--hh3d-bg-card);
    border: 1px solid var(--hh3d-border);
    border-radius: var(--hh3d-radius);
    overflow: hidden;
    transition: border-color var(--hh3d-transition);
    min-width: 260px;
}

.SearchForm:focus-within {
    border-color: var(--hh3d-primary);
}

.SearchForm input {
    flex: 1;
    padding: 9px 14px;
    background: transparent;
    border: none;
    color: var(--hh3d-text);
    font-size: 14px;
}

.SearchForm input::placeholder {
    color: var(--hh3d-text-muted);
}

.SearchForm button {
    padding: 9px 14px;
    background: var(--hh3d-primary);
    color: #fff;
    font-size: 14px;
    transition: background var(--hh3d-transition);
}

.SearchForm button:hover {
    background: var(--hh3d-primary-dark);
}

.MainNav {
    background: var(--hh3d-bg);
    border-top: 1px solid var(--hh3d-border);
}

.NavList {
    display: flex;
    align-items: center;
    max-width: var(--hh3d-max-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
}

.NavItem {
    position: relative;
}

.NavItem > a {
    display: block;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hh3d-text-muted);
    transition: color var(--hh3d-transition);
    white-space: nowrap;
}

.NavItem > a:hover,
.NavItem.active > a,
.NavItem:hover > a {
    color: var(--hh3d-primary);
}

.NavItem:hover .SubMenu {
    display: block;
}

.SubMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hh3d-bg-card);
    border: 1px solid var(--hh3d-border);
    border-radius: var(--hh3d-radius);
    min-width: 200px;
    box-shadow: var(--hh3d-shadow);
    z-index: 200;
    overflow: hidden;
}

.SubMenu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--hh3d-text-muted);
    transition: all var(--hh3d-transition);
}

.SubMenu li a:hover {
    background: var(--hh3d-primary);
    color: #fff;
    padding-left: 20px;
}
