/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-icon {
    font-size: 24px;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin: 0;
}

.cookie-consent-link {
    color: #28a745;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #34d058;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.cookie-consent-btn-accept {
    background: #28a745;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cookie-consent-btn-accept:hover {
    background: #34d058;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #4b5563;
}

.cookie-consent-btn-decline:hover {
    background: #374151;
    border-color: #6b7280;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 12px 16px;
    text-decoration: underline;
}

.cookie-consent-btn-settings:hover {
    color: #ffffff;
}

/* Modal Styles */
.cookie-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-consent-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.cookie-consent-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cookie-consent-modal-close:hover {
    background: #f3f4f6;
}

.cookie-consent-modal-body {
    padding: 24px;
}

.cookie-consent-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

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

.cookie-consent-category-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider {
    background-color: #28a745;
}

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

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

.cookie-consent-category-required {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.cookie-consent-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-consent-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-consent-modal-footer {
        flex-direction: column;
    }

    .cookie-consent-modal-footer .cookie-consent-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-consent-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
