/**
 * Cookie Policy Popup - Clean and Modern Design
 * Refined version of the previous clean design
 */

/* Cookie Popup Container */
.cookie-policy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cookie-policy-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Clean Horizontal Container */
.cookie-policy-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-policy-card:hover {
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
}

/* Container Layout */
.cookie-policy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

/* Content Section */
.cookie-policy-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cookie-policy-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 1.125rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.cookie-policy-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    flex: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cookie-policy-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.cookie-policy-link:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Actions Section */
.cookie-policy-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Enhanced Button Design */
.cookie-policy-btn {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.cookie-policy-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.4),
        0 2px 6px rgba(59, 130, 246, 0.2);
}

.cookie-policy-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.5),
        0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    color: white;
}

.cookie-policy-btn-primary:active {
    transform: translateY(-1px);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-policy-card {
        background: rgba(17, 24, 39, 0.98);
        border-top: 1px solid rgba(75, 85, 99, 0.3);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .cookie-policy-card:hover {
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
    }
    
    .cookie-policy-text {
        color: #e5e7eb;
    }
    
    .cookie-policy-icon {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.35);
    }
    
    .cookie-policy-link {
        color: #60a5fa;
    }
    
    .cookie-policy-link:hover {
        color: #93c5fd;
        border-bottom-color: #93c5fd;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-policy-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-policy-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    
    .cookie-policy-actions {
        width: 100%;
    }
    
    .cookie-policy-btn {
        width: 100%;
        padding: 0.875rem 1.75rem;
    }
    
    .cookie-policy-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .cookie-policy-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .cookie-policy-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cookie-policy-text {
        font-size: 0.8125rem;
    }
    
    .cookie-policy-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Slide Out Animation */
.cookie-policy-popup.slide-out {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

/* Focus Styles for Accessibility */
.cookie-policy-btn:focus,
.cookie-policy-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-policy-popup,
    .cookie-policy-btn,
    .cookie-policy-link {
        transition: none;
    }
    
    .cookie-policy-popup.show {
        animation: none;
    }
}