/* ============================================
   GAME RE:STORE - Синтвейв/Вапорвейв стиль
   ============================================ */

/* Переменные цветов */
:root {
    --neon-pink: #FF1493;
    --neon-cyan: #00FFFF;
    --neon-orange: #FF6B35;
    --neon-yellow: #FFFF00;
    --dark-bg: #0a0e27;
    --dark-purple: #1a1a3e;
    --dark-blue: #16213e;
    --text-white: #FFFFFF;
    --grid-color: rgba(255, 20, 147, 0.1);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-blue) 50%, var(--dark-bg) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Сетчатый паттерн на фоне */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER / HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-image: url('/images/decorative/hero-background.webp'),
                      url('/images/decorative/hero-background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 0;
    overflow: hidden;
}

/* Темный оверлей для лучшей читаемости текста (верхняя часть) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 14, 39, 0.7) 0%,
        rgba(26, 26, 62, 0.5) 30%,
        rgba(26, 26, 62, 0.3) 60%,
        rgba(26, 26, 62, 0.1) 80%,
        transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* Плавный переход к основному фону сайта внизу */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(26, 26, 62, 0.3) 30%,
        rgba(22, 33, 62, 0.6) 60%,
        rgba(10, 14, 39, 0.9) 90%,
        rgba(10, 14, 39, 1) 100%);
    z-index: 0;
    pointer-events: none;
}

.logo-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
    z-index: 2;
    position: relative;
}

.logo-title .game {
    color: var(--neon-cyan);
}

.logo-title .restore {
    color: var(--neon-pink);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 40px var(--neon-pink);
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.description {
    font-size: 1rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    position: relative;
    z-index: 2;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
    margin-bottom: 16px;
    position: relative;
}

.btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--text-white);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-primary:hover {
    background: transparent;
    color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.btn-secondary:hover {
    background: var(--neon-pink);
    color: var(--text-white);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-header {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--neon-pink);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-logo-text a {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-text a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.header {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--neon-pink);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--neon-pink);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
    border-color: var(--neon-cyan);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-header {
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: var(--text-white);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.filters-section {
    padding: 30px 0;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.filters-container {
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(26, 26, 62, 0.8);
    border: 2px solid var(--neon-pink);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--neon-pink);
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

.filter-btn.tag-btn {
    border-color: var(--neon-cyan);
}

.filter-btn.tag-btn:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.filter-btn.tag-btn.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    flex: 1;
    max-width: 300px;
    padding: 10px 15px;
    background: rgba(26, 26, 62, 0.8);
    border: 2px solid var(--neon-cyan);
    color: var(--text-white);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.sort-select:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.sort-select:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
}

.sort-select option {
    background: var(--dark-purple);
    color: var(--text-white);
    padding: 10px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-white);
}

.no-products p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
}

.product-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--neon-pink);
    color: var(--text-white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 3px;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--dark-bg);
    display: block;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* ============================================
   WHY SECTION
   ============================================ */

.why-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.why-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.why-list {
    list-style: none;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-white);
}

.why-item::before {
    content: '✓';
    color: #00FF00;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.why-image {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.5);
}

/* ============================================
   PRODUCT PAGE
   ============================================ */

.product-page {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.product-image-wrapper {
    position: relative;
}

.product-image-wrapper .product-label {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.product-image-large {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6);
    background: var(--dark-bg);
    display: block;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    margin-bottom: 10px;
}

.description-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.description-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-pink);
    margin-bottom: 15px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cart {
    background: var(--neon-cyan);
    color: var(--text-white);
    border: 2px solid var(--neon-cyan);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

.btn-cart:hover {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-back {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--neon-pink);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.btn-back:hover {
    background: var(--neon-pink);
    color: var(--text-white);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
    transform: translateY(-2px);
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.related-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 20, 147, 0.3);
    margin-top: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Десктоп: компактные стили для первого экрана */
@media (min-width: 1025px) {
    .hero-section {
        min-height: 320px;
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .logo-title {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .categories-section {
        padding: 20px 0;
    }
    
    .products-section {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
}

/* Планшет в альбомной ориентации: только hero и категории на первом экране */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 280px;
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .logo-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .categories-section {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    
    /* Новинки начинаются после первого экрана */
    .products-section {
        padding: 40px 0;
    }
}

/* Планшет в портретной ориентации: как десктоп */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        min-height: 350px;
        padding: 35px 20px;
        margin-bottom: 35px;
    }
    
    .logo-title {
        font-size: 3rem;
    }
    
    .categories-section {
        padding: 25px 0;
    }
    
    .products-section {
        padding: 25px 0;
    }
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer-section {
    background: rgba(10, 14, 39, 0.8);
    border-top: 2px solid var(--neon-pink);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE - CATEGORY PAGE
   ============================================ */

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-container {
        padding: 20px 15px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .sort-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-select {
        max-width: 100%;
        width: 100%;
    }
}

