/* GDPR Cookie Consent Banner Styles */

.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.1);
    color: #e2e8f0;
    font-family: 'Raleway', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cookie-banner-content {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    /* Add padding bottom to prevent content from being hidden behind sticky buttons */
    padding-bottom: 120px;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.cookie-icon {
    font-size: 32px;
    margin-right: 16px;
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
}

.cookie-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.cookie-details {
    margin: 24px 0;
    display: block;
}

.cookie-category {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.08);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-category-header label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.cookie-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tracking-details {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.tracking-details li {
    font-size: 13px;
    color: #64748b;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.tracking-details li::before {
    content: '•';
    color: #38bdf8;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cookie-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 70%, transparent 100%);
    backdrop-filter: blur(12px);
    padding: 20px 32px 32px 32px;
    margin: 0 -32px -32px -32px;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Make primary button more prominent */
.cookie-actions .btn-primary {
    order: -1;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 
        0 4px 12px rgba(56, 189, 248, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cookie-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cookie-actions .btn-primary:hover::before {
    left: 100%;
}

.cookie-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(56, 189, 248, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: inherit;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.5);
}

.btn-outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-outline:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.btn-link {
    background: transparent;
    color: #38bdf8;
    border: none;
    text-decoration: underline;
    min-width: auto;
    padding: 8px 12px;
}

.btn-link:hover {
    color: #0ea5e9;
    text-decoration: none;
}

.cookie-footer {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    padding: 16px 32px 0 32px;
    margin: 0 -32px;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.cookie-link {
    color: #38bdf8;
    text-decoration: none;
}

.cookie-link:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cookie-settings-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #0ea5e9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-banner-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    
    .cookie-banner {
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        width: 100%;
        max-width: none;
    }
    
    .cookie-banner-content {
        padding: 24px;
        padding-bottom: 140px;
    }
    
    .cookie-header {
        flex-direction: column;
        text-align: center;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .cookie-icon {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 28px;
    }
    
    .cookie-actions {
        flex-direction: column;
        padding: 16px 24px 24px 24px;
        margin: 0 -24px -24px -24px;
        gap: 10px;
    }
    
    .cookie-actions .btn {
        width: 100%;
        min-width: auto;
        order: initial;
    }
    
    .cookie-actions .btn-primary {
        order: -1;
        margin-bottom: 4px;
    }
    
    .cookie-category-header {
        flex-direction: row;
        align-items: center;
    }
    
    .cookie-category-header input[type="checkbox"] {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .cookie-footer {
        padding: 12px 24px 0 24px;
        margin: 0 -24px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-overlay {
        padding: 8px;
    }
    
    .cookie-banner {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
    }
    
    .cookie-banner-content {
        padding: 20px;
        padding-bottom: 150px;
    }
    
    .cookie-header h3 {
        font-size: 18px;
    }
    
    .cookie-content p {
        font-size: 14px;
    }
    
    .cookie-actions {
        padding: 16px 20px 20px 20px;
        margin: 0 -20px -20px -20px;
    }
    
    .cookie-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cookie-footer {
        padding: 12px 20px 0 20px;
        margin: 0 -20px;
        font-size: 11px;
    }
}

/* Quick Accept Bar for returning visitors */
.cookie-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 2px solid rgba(56, 189, 248, 0.3);
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

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

.cookie-quick-text {
    color: #e2e8f0;
    font-size: 14px;
    flex: 1;
}

.cookie-quick-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-quick-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cookie-quick-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-quick-actions .btn {
        flex: 1;
        max-width: 140px;
    }
}

/* Animation for banner entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner {
    animation: fadeInUp 0.4s ease-out;
}