/* Privacy Consent Banner Styles */
/* Non-intrusive bottom banner design with worldwide compliance */

.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 0;
}

.privacy-banner-visible {
    transform: translateY(0);
}

.privacy-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.privacy-banner-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.privacy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.privacy-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}

.privacy-message strong {
    color: #2d3748;
    font-weight: 600;
}

.privacy-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.privacy-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.privacy-btn-secondary {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.privacy-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.privacy-btn-decline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.privacy-btn-decline:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

.privacy-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.privacy-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Detailed Modal Styles */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.privacy-modal-visible {
    opacity: 1;
    visibility: visible;
}

.privacy-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.privacy-modal-visible .privacy-modal {
    transform: translateY(0) scale(1);
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.privacy-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    flex-shrink: 0;
}

.privacy-modal-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.privacy-modal-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc2626;
}

.privacy-modal-close:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.privacy-modal-content {
    margin-bottom: 24px;
}

.privacy-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(102, 126, 234, 0.02);
    border: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: 16px;
}

.privacy-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.privacy-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.privacy-section h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.privacy-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.privacy-item:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.privacy-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #667eea;
    flex-shrink: 0;
}

.privacy-item-content strong {
    display: block;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.privacy-item-content p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.privacy-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.privacy-list li {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.privacy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.privacy-right-item {
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.privacy-right-item:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.privacy-right-item strong {
    display: block;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.privacy-right-item p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.privacy-contact-info {
    margin-top: 16px;
}

.privacy-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.privacy-contact-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.privacy-contact-item span {
    color: #4a5568;
    font-size: 0.95rem;
}

.privacy-section p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-modal-actions {
    display: flex;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.privacy-modal-actions .privacy-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-banner-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .privacy-banner-text {
        text-align: center;
    }

    .privacy-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .privacy-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .privacy-modal {
        padding: 24px;
        margin: 10px;
    }

    .privacy-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .privacy-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .privacy-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .privacy-banner {
        padding: 12px 0;
    }

    .privacy-banner-content {
        padding: 0 12px;
    }

    .privacy-icon {
        width: 32px;
        height: 32px;
    }

    .privacy-icon svg {
        width: 16px;
        height: 16px;
    }

    .privacy-message p {
        font-size: 13px;
    }

    .privacy-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .privacy-modal {
        padding: 20px;
        border-radius: 16px;
    }

    .privacy-modal-icon {
        width: 48px;
        height: 48px;
    }

    .privacy-modal-header h2 {
        font-size: 1.3rem;
    }

    .privacy-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .privacy-section-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .privacy-section-icon {
        width: 36px;
        height: 36px;
    }

    .privacy-section h3 {
        font-size: 1.1rem;
    }

    .privacy-content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .privacy-item {
        padding: 12px;
    }

    .privacy-item-icon {
        width: 28px;
        height: 28px;
    }

    .privacy-rights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .privacy-right-item {
        padding: 12px;
    }

    .privacy-contact-item {
        padding: 10px 12px;
    }

    .privacy-section li,
    .privacy-section p {
        font-size: 0.9rem;
    }
}

/* Animation for smooth scrolling when banner appears */
body.privacy-banner-active {
    padding-bottom: 120px;
    transition: padding-bottom 0.4s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .privacy-banner {
        background: rgba(26, 32, 44, 0.98);
        border-top-color: rgba(102, 126, 234, 0.3);
    }

    .privacy-message p {
        color: #cbd5e0;
    }

    .privacy-message strong {
        color: #f7fafc;
    }

    .privacy-modal {
        background: rgba(26, 32, 44, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .privacy-modal-header h2 {
        color: #f7fafc;
    }

    .privacy-section h3 {
        color: #f7fafc;
    }

    .privacy-section li,
    .privacy-section p {
        color: #cbd5e0;
    }

    .privacy-section li strong {
        color: #f7fafc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .privacy-banner {
        background: white;
        border-top: 2px solid #000;
    }

    .privacy-btn {
        border-width: 2px;
    }

    .privacy-modal {
        background: white;
        border: 2px solid #000;
    }
}
