/**
 * CRM Leads Tracking - Consent Popup Styles
 * GDPR/CCPA compliant consent popup
 */

.clt-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0 16px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    opacity: 0;
    transform: translateY(100%);
    animation: cltSlideUp 0.5s ease-out 0.3s forwards;
}

@keyframes cltSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clt-consent-container {
    max-width: 580px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
}

.clt-consent-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff94 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    flex-shrink: 0;
}

.clt-consent-icon svg {
    width: 28px;
    height: 28px;
}

.clt-consent-content {
    flex: 1;
}

.clt-consent-heading {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.clt-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Data Collection List */
.clt-consent-data-list {
    margin: 14px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.clt-data-list-title {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clt-consent-data-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 16px;
}

.clt-consent-data-list li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 16px;
    position: relative;
}

.clt-consent-data-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d9ff;
    font-weight: bold;
}

/* Privacy Link */
.clt-consent-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    color: #00d9ff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.clt-consent-link:hover {
    color: #00ff94;
    text-decoration: none;
}

/* Action Buttons */
.clt-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.clt-consent-btn {
    flex: 1;
    min-width: 100px;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.clt-consent-btn-primary {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff94 100%);
    color: #1a1a2e;
}

.clt-consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.clt-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.clt-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Footer Note */
.clt-consent-note {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    line-height: 1.5;
}

.clt-consent-note small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.35);
}

/* Responsive - Desktop layout */
@media (min-width: 640px) {
    .clt-consent-container {
        padding: 20px 24px;
        gap: 20px;
    }
    
    .clt-consent-actions {
        flex-shrink: 0;
        min-width: 120px;
    }
    
    .clt-consent-btn {
        min-width: 120px;
    }
    
    .clt-consent-note {
        text-align: left;
        grid-column: 1 / -1;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .clt-consent-popup {
        padding: 0 12px 12px;
    }
    
    .clt-consent-container {
        padding: 20px;
    }
    
    .clt-consent-data-list ul {
        grid-template-columns: 1fr;
    }
    
    .clt-consent-heading {
        font-size: 16px;
    }
    
    .clt-consent-text {
        font-size: 13px;
    }
}

/* Animation for hiding */
.clt-consent-popup.clt-hiding {
    animation: cltSlideDown 0.3s ease-in forwards;
}

@keyframes cltSlideDown {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .clt-consent-container {
        border: 2px solid #ffffff;
    }
    
    .clt-consent-text,
    .clt-consent-data-list li {
        color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .clt-consent-popup {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
    
    .clt-consent-popup.clt-hiding {
        display: none;
    }
    
    .clt-consent-btn:hover {
        transform: none;
    }
}

/* Dark mode already - but ensure consistency */
@media (prefers-color-scheme: light) {
    .clt-consent-container {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
}
