/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    background: #0a0f1b;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.rounded-button {
    border-radius: 0.375rem;
}

/* Анимации звезд */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.3;
    animation-name: twinkle;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Шапка */
header {
    background: #1a2338;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

header h1 span:nth-child(1) {
    color: #ffffff; /* Blinky белым */
}

header h1 span:nth-child(2) {
    color: #1e90ff; /* Wave синим */
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a2338;
        padding: 1rem;
    }
    .mobile-menu.active {
        display: flex;
    }
    header h1 {
        font-size: 1.2rem;
    }
}

/* Каталог товаров */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

.product-link {
    background-color: #1e90ff;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.product-link:hover {
    background-color: #1c86ee;
}

/* На это: */
.product-labels {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.product-label {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: white;
}

.product-label.blue {
    background-color: rgba(30, 144, 255, 0.9);
}

.product-label.yellow {
    background-color: rgba(255, 215, 0, 0.9);
}

.product-card .status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.product-card .status-active {
    color: #00ff00;
}

.product-card .status-maintenance {
    color: #ffff00;
}

.product-card .status-inactive {
    color: #ff0000;
}

/* Модальное окно */
#productModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.bg-gray-900 {
    background: #1a2338;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.product-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    margin-right: 0.5rem;
}

.product-thumbnail img:hover {
    opacity: 0.7;
}

/* Стили для статусов */
.status-badge {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
}

.status-active {
    color: #00ff00 !important;
}

.status-maintenance {
    color: #ffff00 !important;
}

.status-inactive {
    color: #ff0000 !important;
}

/* Градиенты */
.hero-bg {
    background: linear-gradient(to bottom, #000B18, #001C3D);
    position: relative;
    overflow: hidden;
}

.catalog-bg {
    background: linear-gradient(to bottom, #001C3D, #000B18);
}

/* Мобильное меню */
@media (max-width: 1023px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { display: none; }
    .mobile-menu.active { display: flex; }
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none; }
    .desktop-nav { display: flex; }
}

/* Адаптация каталога */
@media (max-width: 767px) {
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .product-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }
}