/**
 * Стили для универсального cookie-уведомления
 * Для темы Dietolog-darya
 */

/* Cookie модальное окно */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--celadon);
    box-shadow: 0 -4px 20px rgba(47, 62, 70, 0.15);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice-content {
    flex: 1;
    min-width: 280px;
}

.cookie-notice-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--space-cadet);
    margin: 0 0 8px 0;
}

.cookie-notice-text {
    font-size: 0.95rem;
    color: var(--ultra-violet);
    line-height: 1.5;
    margin: 0;
}

.cookie-notice-text a {
    color: var(--rose-quartz);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.cookie-notice-text a:hover {
    border-bottom-color: var(--rose-quartz);
}

.cookie-notice-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 200px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: var(--celadon);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--pale-dogwood);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--ultra-violet);
    border: 1px solid var(--pale-dogwood);
}

.cookie-btn-decline:hover {
    background: var(--isabelline);
    border-color: var(--ultra-violet);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 16px;
    }
    
    .cookie-notice-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-notice-content {
        min-width: auto;
    }
    
    .cookie-notice-title {
        font-size: 1rem;
    }
    
    .cookie-notice-text {
        font-size: 0.9rem;
    }
    
    .cookie-notice-actions {
        justify-content: center;
        min-width: auto;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cookie-notice-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Анимация появления */
@keyframes cookieSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-notice.animate-in {
    animation: cookieSlideIn 0.3s ease-out;
}

/* Стили для overlay (опционально, если нужно затемнение) */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 62, 70, 0.1);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cookie-overlay.show {
    opacity: 1;
    pointer-events: auto;
}