/* static/main/css/cookie-consent.css */

/* Базовые стили для баннера */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    color: #ffffff;
    padding: 16px 20px;
    z-index: 99999;
    display: none; /* Скрыт по умолчанию, показывается через JS */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 3px solid #28a745;
    transition: transform 0.3s ease-in-out;
}

.cookie-consent .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    gap: 15px;
}

/* Текстовая часть */
.cookie-consent .text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    min-width: 200px;
}

.cookie-consent .text i {
    color: #8bc34a;
    margin-right: 10px;
}

.cookie-consent .text a {
    color: #8bc34a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-consent .text a:hover {
    color: #ffffff;
}

/* Кнопки */
.cookie-consent .buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent .btn-accept {
    background: #28a745;
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent .btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.cookie-consent .btn-accept:active {
    transform: translateY(0);
}

.cookie-consent .btn-details {
    background: transparent;
    border: 1.5px solid #6c757d;
    color: #e9ecef;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent .btn-details:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: #adb5bd;
    color: #ffffff;
}

/* ======================================== */
/* Мобильная адаптация (до 768px) */
/* ======================================== */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 14px 16px;
        border-top-width: 2px;
    }

    .cookie-consent .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-consent .text {
        font-size: 13px;
        text-align: center;
        line-height: 1.5;
        min-width: unset;
    }

    .cookie-consent .text i {
        display: block;
        margin: 0 auto 8px;
        font-size: 20px;
    }

    .cookie-consent .buttons {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .cookie-consent .btn-accept,
    .cookie-consent .btn-details {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
        min-width: 120px;
    }

    .cookie-consent .btn-accept {
        order: 1;
    }

    .cookie-consent .btn-details {
        order: 2;
    }
}

/* ======================================== */
/* Очень маленькие экраны (до 400px) */
/* ======================================== */
@media (max-width: 400px) {
    .cookie-consent {
        padding: 12px 12px;
    }

    .cookie-consent .text {
        font-size: 12px;
    }

    .cookie-consent .btn-accept,
    .cookie-consent .btn-details {
        font-size: 12px;
        padding: 10px 12px;
        min-width: 100px;
    }

    .cookie-consent .buttons {
        flex-direction: column;
        gap: 6px;
    }

    .cookie-consent .btn-accept {
        order: 1;
    }

    .cookie-consent .btn-details {
        order: 2;
    }
}

/* ======================================== */
/* Десктопная адаптация (от 1200px) */
/* ======================================== */
@media (min-width: 1200px) {
    .cookie-consent {
        padding: 18px 40px;
    }

    .cookie-consent .text {
        font-size: 15px;
        max-width: 70%;
    }

    .cookie-consent .btn-accept,
    .cookie-consent .btn-details {
        padding: 12px 35px;
        font-size: 15px;
    }
}