/* Современная дизайн-система интернет-магазина "Aquatica Fish" */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Цветовая палитра - Глубокий океан */
    --color-bg-deep: #030812;
    --color-bg-medium: #0a1428;
    --color-bg-light: #102141;
    --color-primary: #00f0ff; /* Неоновый бирюзовый */
    --color-primary-glow: rgba(0, 240, 255, 0.4);
    --color-secondary: #ff3366; /* Коралловый розовый */
    --color-secondary-glow: rgba(255, 51, 102, 0.4);
    --color-success: #10b981; /* Изумрудный */
    --color-text-white: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-gold: #f59e0b; /* Золотая рыбка */
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Стилизация Canvas Аквариума */
#aquarium-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* Задний фон для контента, идущего поверх аквариума */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Glassmorphism контейнеры */
.glass-panel {
    background: rgba(10, 20, 40, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05);
}

.glass-card {
    background: rgba(16, 33, 65, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 240, 255, 0.15);
}

/* Эффект погружения - глубина скролла */
.depth-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 50;
    pointer-events: auto;
}

.depth-bar {
    width: 2px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 1px;
}

.depth-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-primary), #0066ff);
    border-radius: 1px;
    transition: height 0.1s ease;
}

.depth-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 20, 40, 0.8);
    border: 1.5px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0088ff 100%);
    color: #000;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d60036 100%);
    color: var(--color-text-white);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-secondary-glow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
}

/* Анимация левой боковой панели каталога в стиле "Розетка" */
.sidebar-filters::-webkit-scrollbar {
    width: 4px;
}
.sidebar-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* 3D Банковская Карта (Checkout) */
.credit-card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 380px;
    height: 220px;
    margin: 20px auto;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.credit-card-front, .credit-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.credit-card-front {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credit-card-back {
    background: linear-gradient(135deg, #111e38 0%, #1a2f56 100%);
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    justify-content: flex-start;
    gap: 20px;
}

.card-magnetic-strip {
    width: 100%;
    height: 45px;
    background: #000;
}

.card-signature-cvv {
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-signature {
    flex-grow: 1;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.card-cvv-box {
    width: 60px;
    height: 35px;
    background: white;
    color: black;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Чат Тикетов поддержки */
.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.4;
    position: relative;
    animation: bubbleAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-right-radius: 4px;
}

.chat-bubble.admin {
    align-self: flex-start;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 9px;
    color: var(--color-text-muted);
    margin-top: 4px;
    text-align: right;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Спиннер загрузки */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Всплывающее уведомление "Золотая рыбка" */
.goldfish-promo-modal {
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Красивая анимация волнового эффекта клика */
.click-ripple {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}
