/* Cookie Banner Component Styles */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(17, 24, 39, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.cookie-banner-icon {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.5);
}

.cookie-banner-icon::before {
    content: '🍪';
    font-size: 24px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.cookie-banner-btn {
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cookie-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cookie-banner-btn:hover::before {
    transform: translateX(100%);
}

.cookie-banner-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

.cookie-banner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
}

.cookie-banner-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Debug Panel Styles */
.ccb-debug-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ccb-debug-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccb-debug-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.ccb-debug-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    line-height: 1;
}

.ccb-debug-content {
    padding: 16px;
}

.ccb-debug-status,
.ccb-debug-consent {
    margin-bottom: 16px;
}

.ccb-debug-status h4,
.ccb-debug-consent h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #1e293b;
}

.ccb-debug-status p {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.ccb-debug-consent pre {
    background: #f8fafc;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    margin: 0;
}

.ccb-debug-actions {
    display: flex;
    gap: 8px;
}

.ccb-debug-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.ccb-debug-actions button:hover {
    background: #2563eb;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cookie-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.cookie-modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.5);
}

.cookie-modal-icon::before {
    content: '🍪';
    font-size: 24px;
}

.cookie-modal h2 {
    margin: 0 0 0.5rem;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-modal p {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-option h3 {
    margin: 0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.cookie-option p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.cookie-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    transition: 0.3s;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + label {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

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

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

/* Modal Buttons */
.cookie-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cookie-modal-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    max-width: 160px;
}

.cookie-modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

.cookie-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
}

.cookie-modal-btn-secondary {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.cookie-modal-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 1rem;
        width: calc(100% - 2rem);
        padding: 1.25rem;
    }

    .cookie-modal-content {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-modal-btn {
        max-width: none;
    }
} 