@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import "../globals.css";

/* =============== HEADER =============== */
#header {
    background: url("../../images/header-background.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 400px;
    height: 30vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0 150px;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

#header .content .info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header .content .info .minecraft-server-ip {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0;
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

/* =============== DONATE SECTION =============== */
#donate .donate-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 50px 0;
}

/* Заголовок категории */
.donate-category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Специальный стиль для категории скидок */
.donate-category-title.hot {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.fire-icon {
    color: #ff6b35;
    font-size: 1.2em;
    animation: fireAnimation 1.5s infinite alternate;
}

@keyframes fireAnimation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Сетка товаров */
.donate-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Карточка товара */
.donate-card {
    position: relative;
    background: rgba(36, 39, 43, 0.8);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(57, 190, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.donate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(57, 190, 255, 0.15);
    border-color: rgba(57, 190, 255, 0.3);
}

/* Ссылка в карточке */
.donate-link {
    text-decoration: none;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

/* Изображение товара */
.donate-img {
    max-width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(57, 190, 255, 0.1);
    padding: 10px;
}

/* Заголовок товара */
.donate-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    margin: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Описание товара */
.donate-card p {
    font-size: 14px;
    color: var(--description-color);
    line-height: 1.5;
    margin: 0;
    min-height: 60px;
    flex-grow: 1;
}

/* =============== СТИЛИ ДЛЯ ЦЕН =============== */
.donate-price {
    margin-top: auto;
}

/* Контейнер для цен со скидкой */
.donate-price.discounted {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(57, 190, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(57, 190, 255, 0.1);
}

/* Старая цена */
.old-price {
    text-decoration: line-through;
    color: var(--description-color) !important;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(210, 208, 208, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(210, 208, 208, 0.2);
    position: relative;
}

/* Новая цена */
.new-price {
    background: linear-gradient(135deg, var(--main-color), #2980b9);
    color: var(--white-color) !important;
    font-weight: 700;
    font-size: 20px;
    padding: 12px 24px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(57, 190, 255, 0.25);
    animation: pricePulse 2s infinite;
}

@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(57, 190, 255, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(57, 190, 255, 0.35);
    }
}

/* Бейдж скидки */
.discount-badge {
    background: linear-gradient(135deg, #ff4757, #e84118);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
}

/* Базовая цена (без скидки) */
.donate-price:not(.discounted) {
    background: linear-gradient(135deg, var(--main-color), #2980b9);
    color: var(--white-color);
    font-weight: 700;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(57, 190, 255, 0.25);
}

/* =============== АДАПТИВНОСТЬ =============== */
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 0 90px;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        padding: 0 60px;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 0 30px;
    }

    #header .content .info .minecraft-server-ip {
        font-size: 16px;
    }

    #header .content .info .title {
        font-size: 36px;
        line-height: 1.2;
    }

    #header .content .description {
        font-size: 16px;
        padding: 0 20px;
    }
    
    /* Адаптивность для доната */
    .donate-items {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .donate-category-title {
        font-size: 24px;
    }
    
    .donate-card h3 {
        font-size: 18px;
        min-height: 44px;
    }
    
    .donate-card p {
        font-size: 13px;
        min-height: 52px;
    }
}

@media screen and (max-width: 530px) {
    #header {
        height: auto;
        min-height: 300px;
        padding: 60px 0;
    }

    #header .content {
        padding: 0 20px;
    }

    #header .content .info .title {
        font-size: 28px;
    }
    
    #header .content .description {
        font-size: 14px;
        padding: 0;
    }
    
    /* Адаптивность для доната */
    .donate-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .donate-card {
        padding: 20px 15px;
    }
    
    .donate-img {
        max-width: 80px;
        height: 80px;
    }
    
    .new-price,
    .donate-price:not(.discounted) {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .old-price {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media screen and (max-width: 380px) {
    #header .content .info .title {
        font-size: 24px;
    }
    
    .donate-img {
        max-width: 70px;
        height: 70px;
    }
    
    .donate-card h3 {
        font-size: 16px;
        min-height: 40px;
    }
    
    .donate-card p {
        font-size: 12px;
        min-height: 48px;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 320px) {
    #header .content .info .title {
        font-size: 22px;
    }
    
    .donate-items {
        grid-template-columns: 1fr;
    }
}

/* Стили для разных валют */

.coins-item .currency-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.rub-item .currency-badge {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: #fff;
}

.currency-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.coins-link {
    cursor: pointer;
    transition: transform 0.2s;
}

.coins-link:hover {
    transform: translateY(-5px);
}