/* Cookie Consent Popup Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

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

.cookie-consent h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: -0.02em;
}

.cookie-consent p {
    margin: 0 0 20px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    flex: 1;
    min-width: 80px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.cookie-consent-btn.accept-all {
    background: #007bff;
    color: white;
}

.cookie-consent-btn.accept-all:hover {
    background: #0056b3;
}

/* Detailed Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-preferences-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-preferences-modal.show .cookie-preferences-content {
    transform: translateY(0);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-preferences-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-preferences-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.cookie-preferences-close:hover {
    background-color: #f5f5f5;
}

.cookie-preferences-intro {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.6;
}

.cookie-preferences-intro p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-preferences-intro.collapsed p:nth-child(n+2) {
    display: none;
}

.cookie-preferences-intro .show-less {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-preferences-intro .show-less:hover {
    text-decoration: underline;
}

/* Cookie Categories */
.cookie-category {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cookie-category-header {
    padding: 16px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.cookie-category-header:hover {
    background: #f0f0f0;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-category-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #666;
}

.cookie-category.expanded .cookie-category-arrow {
    transform: rotate(90deg);
}

.cookie-category-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-category-status.always-active {
    background: #d4edda;
    color: #155724;
}

.cookie-category-status.toggle {
    background: #e2e3e5;
    color: #383d41;
}

.cookie-category-content {
    padding: 16px;
    display: block;
    border-top: 1px solid #e5e5e5;
    background: white;
}

.cookie-category-description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Cookie Details Box */
.cookie-details-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e5e5e5;
    display: none;
}

.cookie-category.expanded .cookie-details-box {
    display: block;
}

.cookie-detail-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.cookie-detail-row:last-child {
    margin-bottom: 0;
}

.cookie-detail-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 12px;
    min-width: 80px;
    margin-right: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-detail-value {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.no-cookies-message {
    text-align: center;
    color: #666;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

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

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

input:checked + .toggle-slider {
    background-color: #007bff;
}

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

/* Action Buttons */
.cookie-preferences-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.cookie-preferences-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    flex: 1;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-preferences-btn:hover {
    background: #f8f9fa;
}

.cookie-preferences-btn.accept-all {
    background: #007bff;
    color: white;
}

.cookie-preferences-btn.accept-all:hover {
    background: #0056b3;
}

.cookie-preferences-powered-by {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        margin: 0;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        flex: none;
        width: 100%;
    }

    .cookie-preferences-content {
        width: 95%;
        max-height: 90vh;
        padding: 24px;
    }

    .cookie-preferences-actions {
        flex-direction: column;
    }

    .cookie-preferences-btn {
        width: 100%;
    }
}

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

.cookie-consent.animate-in {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
} 