/* Chatbot Preview Modal Styles - Modern UI */
/* Modular CSS for chatbot preview modal component */

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Custom Close Button */
.btn-close-custom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.btn-close-custom:hover {
    background: rgba(0, 0, 0, 0.7);
}

.btn-close-custom i {
    color: white;
    font-size: 20px;
}

/* Cover Photo Section */
.preview-cover-photo {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.preview-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--card-bg) 100%);
}

.preview-cover-badges {
    position: absolute;
    bottom: 16px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.preview-badge-chip {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Modal Body */
#chatbotPreviewModal .modal-body {
    padding: 32px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Section */
.preview-header-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-title-large {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.preview-subtitle {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.preview-creator-text {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.preview-creator-highlight {
    color: var(--primary-color);
    font-weight: 500;
}

/* Tags Section */
.preview-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tag-chip {
    padding: 6px 12px;
    background: #1a1a1a;
    color: #9ca3af;
    font-size: 12px;
    border-radius: 8px;
}

/* Stats Section */
.preview-stats-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.preview-stat-item i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Modal Footer */
#chatbotPreviewModal .modal-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.btn-modal-primary {
    flex: 1;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-primary:hover {
    background: #00c93fb3;
    transform: translateY(-1px);
}

.btn-modal-secondary {
    flex: 1;
    padding: 12px 24px;
    background: #1a1a1a;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-secondary:hover {
    background: #252525;
}

/* Light Theme Adjustments */
html[data-theme="light"] #chatbotPreviewModal .modal-content {
    background: #ffffff;
    border-color: #d0d7de;
}

html[data-theme="light"] .preview-cover-gradient {
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
}

html[data-theme="light"] .preview-tag-chip {
    background: #f6f8fa;
    color: #656d76;
}

html[data-theme="light"] .preview-stats-section {
    border-top-color: #d0d7de;
}

html[data-theme="light"] #chatbotPreviewModal .modal-footer {
    border-top-color: #d0d7de;
}

html[data-theme="light"] .btn-modal-secondary {
    background: #f6f8fa;
    color: #24292f;
}

html[data-theme="light"] .btn-modal-secondary:hover {
    background: #e1e4e8;
}

/* Dark Theme Adjustments */
html[data-theme="dark"] #chatbotPreviewModal .modal-content {
    background-color: #0d1117;
    border-color: #30363d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .preview-cover-photo {
        height: 180px;
    }

    #chatbotPreviewModal .modal-body {
        padding: 24px;
    }
    
    .preview-title-large {
        font-size: 20px;
    }
    
    .preview-stats-section {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    #chatbotPreviewModal .modal-footer {
        padding: 20px 24px;
        flex-direction: column;
    }
    
    .btn-modal-primary,
    .btn-modal-secondary {
        width: 100%;
    }
}
