/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #ecf0f1;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.show {
    display: flex !important;
}

.cookie-banner.hidden {
    display: none !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.cookie-banner.mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

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

.cookie-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cookie-text {
    line-height: 1.5;
}

.cookie-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.cookie-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.15);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-close {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.cookie-btn-close:hover {
    color: #ecf0f1;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 8px;
        max-height: none;
    }

    .cookie-banner.mobile {
        flex-direction: column;
    }

    .cookie-content {
        flex: 1;
        gap: 8px;
        font-size: 12px;
    }

    .cookie-icon {
        font-size: 16px;
    }

    .cookie-text {
        line-height: 1.3;
    }

    .cookie-text strong {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .cookie-text a {
        font-size: 12px;
    }

    .cookie-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-right: 32px;
    }

    .cookie-btn {
        flex: 1;
        min-width: 70px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .cookie-btn-close {
        position: absolute;
        top: 6px;
        right: 6px;
    }
}

/* При скрытии баннера - добавляем отступ к контенту */
body:not(.cookie-banner-hidden) {
    /* Когда баннер видимый, body может иметь отступ внизу */
}

/* Для страниц с фиксированной подвалом */
.main-content.with-cookie-banner {
    margin-bottom: 100px;
}
