/* Common Styles */
body {
    background-color: #111;
    color: #f5f5f5;
    text-shadow: 0 0 2px #f5f5f5;
    font-family: Tahoma, sans-serif;
    cursor: default;
    margin: 0px 50px;
    position: relative;
    min-height: 100vh;
    overflow: hidden; /* Prevent scrollbars as requested */
}

/* Выносим фон в псевдо-элемент, чтобы применить блюр только к звездам */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('../img/stars.svg'), url('../img/stars.svg'), url('../img/stars.svg');
    background-size: 500px 500px, 400px 400px, 300px 300px;
    background-position: 0 0, 0 0, 0 0;
    filter: blur(1px);
    animation: bg-drift 20s linear infinite;
    will-change: background-position;
}

@keyframes bg-drift {
    from { 
        background-position: 0 0, 0 0, 0 0; 
    }
    to { 
        background-position: -500px 500px, 400px -400px, 300px -300px; 
    }
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}
/* --- Стили для Vue приложения --- */

/* Главная страница - заглушка */
.home-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Логотип */
.logo-container {
    text-align: center;
}

.logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.7));
    animation: shadow 3s infinite ease-in-out;
    transition: all 0.5s ease;
}

/* Состояние ОТКРЫТОГО меню (добавляется Vue) */
.main-layout.menu-open .logo-container {
    top: 15%;
}

.main-layout.menu-open .logo {
    width: 150px;
}

/* Ссылки по бокам */
.nav-link {
    position: absolute;
    top: 15%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    pointer-events: none; /* Чтобы не кликались пока скрыты */
    white-space: nowrap;
}

.nav-link:hover {
    color: dodgerblue;
    text-shadow: 0 0 10px dodgerblue;
}

.link-left { 
    right: 50%;
    margin-right: 160px;
    transform: translateX(50px) scale(0.8);
}

.link-right { 
    left: 50%;
    margin-left: 160px;
    transform: translateX(-50px) scale(0.8);
}

.main-layout.menu-open .nav-link {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    margin: 0;
    right: auto;
    left: auto;
}

.main-layout.menu-open .link-left {
    left: 20%; /* Примерное позиционирование, можно подстроить */
}

.main-layout.menu-open .link-right {
    right: 20%;
}

/* Контент снизу */
.content-block {
    position: absolute;
    top: 55%;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease 0.4s;
    
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-layout.menu-open .content-block {
    opacity: 1;
    transform: translateY(0);
}

.content-link {
    color: dodgerblue;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-link:visited {
    color: dodgerblue;
}

.content-link:hover {
    color: #fff;
    text-shadow: 0 0 10px dodgerblue;
}

/* Animations */
@keyframes shadow {
    from {filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.7));}
    50% {filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.7));}
    to {filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.7));}
}

/* --- Стили Вишлиста --- */
.wishlist-header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
}
.back-link:hover { 
    color: dodgerblue; 
    text-shadow: 0 0 10px dodgerblue;
}

.mini-logo { 
    width: 150px; 
    height: 150px;
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

.wishlist-view {
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    width: 100%;
}

.intro-text {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.intro-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Секция кнопки Донат */
.donate-section {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 40px;
}

.donate-btn {
    background: linear-gradient(135deg, #ff7323 0%, #ff5420 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    color: #111;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 63, 38, 0.4);
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 60, 60, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
.modal-overlay-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 36, 36, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #fff;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 25px;
}

.donate-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donate-link {
    display: block;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.donate-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: dodgerblue;
}

.wishlist-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.wishlist-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    /* 5 items per row: (100% - 4 * 30px gap) / 5 */
    width: calc((100% - 120px) / 5);
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.card-description {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #ccc;
    min-height: 40px;
}

/* Картинки внутри описания (эмодзи и т.д.) */
.card-description img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    display: inline;
}

.card-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.marketplace-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketplace-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.marketplace-link.wb {
    background-color: #cb11ab;
    border-color: #cb11ab;
}
.marketplace-link.wb:hover {
    background-color: #e012bd;
    box-shadow: 0 5px 15px rgba(203, 17, 171, 0.4);
}

.marketplace-link.ozon {
    background-color: #005bff;
    border-color: #005bff;
}
.marketplace-link.ozon:hover {
    background-color: #1a6dff;
    box-shadow: 0 5px 15px rgba(0, 91, 255, 0.4);
}
.bg-ozon {
    background-color: #005bff;
    padding:10px;
    border-radius: 15px;
    margin: 10px 150px;
    font-weight: bold;
}
.bg-ym {
    background-color: #fc3f1d;
    padding:10px;
    border-radius: 15px;
    margin: 10px 150px;
    font-weight: bold;
}
.marketplace-link.yandex {
    background-color: #fc3f1d;
    border-color: #fc3f1d;
}
.marketplace-link.yandex:hover {
    background-color: #ff5232;
    box-shadow: 0 5px 15px rgba(252, 63, 29, 0.4);
}

/* Адаптация для мобильных */
@media (max-width: 1200px) {
    .wishlist-grid {
        gap: 25px;
    }
    .wishlist-card {
        width: calc((100% - 75px) / 4);
    }
}

@media (max-width: 992px) {
    .wishlist-grid {
        gap: 20px;
    }
    .wishlist-card {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .wishlist-header {
        padding: 5px 5px;
    }
    .back-link {
        font-size: 0.95em;
    }
    .mini-logo {
        width: 100px;
        height: 100px;
    }
    .wishlist-view {
        padding-top: 50px;
    }
    .wishlist-grid {
        gap: 15px;
        padding: 0 15px;
    }
    .wishlist-card {
        width: calc((100% - 15px) / 2);
    }
    .intro-text h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .wishlist-card {
        width: 100%;
    }
    .donate-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}
