/* Modern Cookie Consent Banner */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookie-consent-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cookie-consent-content {
    flex: 1;
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-text a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #764ba2;
}

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

.cookie-consent-button {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cookie-consent-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cookie-consent-decline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
}

.cookie-consent-settings:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-consent-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .cookie-consent-title {
        font-size: 16px;
    }
    
    .cookie-consent-text {
        font-size: 13px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-button {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 575px) {
    .cookie-consent-container {
        padding: 15px;
        gap: 15px;
    }
    
    .cookie-consent-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .cookie-consent-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .cookie-consent-text {
        font-size: 12px;
    }
    
    .cookie-consent-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1a1a1a;
}

.cookie-settings-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-settings-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-settings-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 575px) {
    .cookie-settings-content {
        border-radius: 0;
        max-height: 100vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer button {
        width: 100%;
    }
}
