/* GE AI Course Factory - Shortcode Test Gallery Styles */
/* Version: 5.0 | Standalone | 2026-01-10 */

.sc-test-wrapper * { box-sizing: border-box; }
.sc-test-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; padding: 20px 0; }

/* Header */
.sc-header { text-align: center; margin-bottom: 30px; }
.sc-header h2 { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0 0 8px 0; }
.sc-header p { color: #666; font-size: 14px; margin: 0; }
.sc-stats { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.sc-stat { background: #f8f9fa; padding: 8px 16px; border-radius: 20px; font-size: 13px; color: #555; }
.sc-stat strong { color: #667eea; }

/* Card Grid */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.sc-card { background: white; border-radius: 16px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.3s ease; border: 2px solid #f0f0f0; position: relative; overflow: hidden; }
.sc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15); border-color: #667eea; }
.sc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); opacity: 0; transition: opacity 0.3s; }
.sc-card:hover::before { opacity: 1; }
.sc-card-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.sc-card-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; line-height: 1.3; }
.sc-card-count { font-size: 12px; color: #888; background: #f5f5f5; padding: 3px 10px; border-radius: 12px; display: inline-block; }

/* Modal */
.sc-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 99999; display: none; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; backdrop-filter: blur(4px); }
.sc-modal-overlay.active { display: flex; }
.sc-modal { background: white; border-radius: 20px; max-width: 900px; width: 100%; max-height: calc(100vh - 80px); overflow: hidden; position: relative; animation: scModalSlide 0.3s ease; }
@keyframes scModalSlide { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.sc-modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.sc-modal-header-icon { font-size: 28px; }
.sc-modal-header-title { font-size: 18px; font-weight: 600; flex: 1; }
.sc-modal-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.sc-modal-close:hover { background: rgba(255,255,255,0.3); }
.sc-modal-body { padding: 24px; overflow-y: auto; max-height: calc(100vh - 180px); }
.sc-modal-body p { margin: 0 0 12px 0; color: #555; font-size: 14px; line-height: 1.5; }
.sc-modal-body small { color: #888; font-size: 12px; }

/* Shortcode Dropdown Items */
.sc-dropdown { margin-bottom: 12px; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.sc-dropdown-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; background: #f9fafb; transition: background 0.2s; user-select: none; }
.sc-dropdown-header:hover { background: #f3f4f6; }
.sc-dropdown.open .sc-dropdown-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.sc-dropdown-title { font-size: 14px; font-weight: 600; color: #333; margin: 0; }
.sc-dropdown.open .sc-dropdown-title { color: white; }
.sc-dropdown-arrow { width: 20px; height: 20px; transition: transform 0.3s ease; flex-shrink: 0; }
.sc-dropdown.open .sc-dropdown-arrow { transform: rotate(180deg); }
.sc-dropdown.open .sc-dropdown-arrow path { stroke: white; }
.sc-dropdown-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sc-dropdown.open .sc-dropdown-content { max-height: none; }
.sc-dropdown-inner { padding: 16px; border-top: 1px solid #e5e7eb; }
.sc-dropdown.open .sc-dropdown-inner { border-top-color: rgba(255,255,255,0.2); }
.sc-dropdown-inner .code-example { background: #f5f5f5; padding: 8px 12px; border-radius: 6px; font-size: 11px; font-family: 'Monaco', 'Consolas', monospace; color: #666; display: block; margin-bottom: 16px; overflow-x: auto; white-space: nowrap; border: 1px solid #e5e7eb; }
.sc-dropdown-inner .sc-example-label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }

/* Search */
.sc-search-box { max-width: 400px; margin: 0 auto 24px auto; position: relative; display: flex; align-items: center; }
.sc-test-wrapper .sc-search-input,
.sc-search-box .sc-search-input,
.sc-search-input { flex: 1; padding: 12px 16px 12px 44px !important; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 14px; outline: none; transition: border-color 0.2s; background: white; box-sizing: border-box; }
.sc-search-input:focus { border-color: #667eea; }
.sc-search-box .sc-search-icon,
.sc-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #888; pointer-events: none; z-index: 1; }

/* Responsive */
@media (max-width: 600px) {
    .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sc-card { padding: 18px 12px; }
    .sc-card-icon { font-size: 28px; }
    .sc-card-title { font-size: 12px; }
    .sc-modal { border-radius: 16px 16px 0 0; max-height: 90vh; margin-top: auto; }
    .sc-modal-overlay { padding: 0; align-items: flex-end; }
    .sc-dropdown-header { padding: 12px 14px; }
    .sc-dropdown-title { font-size: 13px; }
}
