/* ═══════════════════════════════════════════════════════════════════
   GDPR Cookie Notice - Ashford & Grey Brand
   ═══════════════════════════════════════════════════════════════════

   Features:
   - Pure CSS animation with delayed appearance (no impact on PageSpeed)
   - GDPR compliant with accept/reject options
   - Luxury brand aesthetic matching Ashford & Grey
   - Responsive design
   - Accessible keyboard navigation

   ═══════════════════════════════════════════════════════════════════ */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 31, 68, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);

    /* Hidden by default */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show cookie notice when visible class is added */
.cookie-notice.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Hidden state when user accepts/rejects */
.cookie-notice.hidden {
    display: none;
}

.cookie-notice-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

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

.cookie-notice-content p {
    color: #F5F5F0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cookie-notice-content p:last-child {
    margin-bottom: 0;
}

.cookie-notice-content strong {
    color: #C9A961;
    font-weight: 600;
}

.cookie-notice-content a {
    color: #C9A961;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-notice-content a:hover {
    opacity: 0.8;
}

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

.cookie-notice-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-notice-btn-accept {
    background: #C9A961;
    color: #0A1F44;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.cookie-notice-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
    background: #D4B76D;
}

.cookie-notice-btn-reject {
    background: rgba(245, 245, 240, 0.1);
    color: #F5F5F0;
    border: 1px solid rgba(245, 245, 240, 0.3);
}

.cookie-notice-btn-reject:hover {
    background: rgba(245, 245, 240, 0.15);
    border-color: rgba(245, 245, 240, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 16px;
    }

    .cookie-notice-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-notice-content {
        min-width: 100%;
    }

    .cookie-notice-content p {
        font-size: 0.875rem;
    }

    .cookie-notice-actions {
        width: 100%;
    }

    .cookie-notice-btn {
        flex: 1;
        text-align: center;
        font-size: 0.8125rem;
    }
}

/* Accessibility - Focus states */
.cookie-notice-btn:focus {
    outline: 2px solid #C9A961;
    outline-offset: 2px;
}

/* Print - hide cookie notice when printing */
@media print {
    .cookie-notice {
        display: none !important;
    }
}
