/**
 * Sub Hub Core: Global Dashboard Styles
 */

/* ============================================================================
   LAYOUT & DASHBOARD CARDS
   ============================================================================ */
.sub-hub-dashboard-section {
    margin-top: 25px;
    margin-bottom: 40px;
}
.sub-hub-dashboard-title {
    margin-top: 0; 
    font-family: 'Dancing Script', cursive; 
    font-size: clamp(1.8rem, 3vw, 2.5rem); 
    color: #1d4ed8; 
    text-shadow: 0 0 10px rgba(255,255,255,0.8); 
    margin-bottom: 10px;
}
.sub-hub-dashboard-subtitle {
    margin-bottom: 20px; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 500; 
    font-size: 1rem; 
    color: #475569;
}
.sub-hub-card {
    margin-bottom: 25px; 
    background: rgba(255,255,255,0.6); 
    border-radius: 8px; 
    padding: 20px; 
    border: 1px dashed rgba(0,0,0,0.15);
}
.sub-hub-card-title {
    margin-top: 0; 
    color: #1e293b; 
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ============================================================================
   SSO BUTTON GRID
   ============================================================================ */
.sub-hub-sso-grid {
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}
.sub-hub-sso-btn {
    background: linear-gradient(135deg, #4c1d95 0%, #312e81 100%);
    color: #f1f5f9 !important; 
    padding: 15px 30px; 
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: 'Dancing Script', cursive, -apple-system, BlinkMacSystemFont;
    display: block;
}
.sub-hub-sso-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ============================================================================
   UI COMPONENTS (Alerts, Buttons, Inputs, Lists)
   ============================================================================ */
.sub-hub-alert-danger {
    padding: 10px; 
    background: #f8d7da; 
    color: #c62828; 
    border-radius: 6px; 
    margin-bottom: 20px; 
    font-weight: bold;
}
.sub-hub-invite-row { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
}
.sub-hub-input, .sub-hub-select {
    flex-grow: 1; 
    padding: 10px; 
    border-radius: 6px; 
    border: 1px solid #ccc;
    font-family: sans-serif;
}
.sub-hub-btn-primary {
    background: #c71585; 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    padding: 10px 20px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background 0.2s;
}
.sub-hub-btn-primary:hover { 
    background: #900c61; 
}
.sub-hub-btn-danger {
    background: transparent; 
    color: #d32f2f; 
    border: 1px solid #d32f2f; 
    border-radius: 4px; 
    padding: 4px 8px; 
    font-size: 0.8rem; 
    cursor: pointer;
}
.sub-hub-btn-danger:hover { 
    background: #d32f2f; 
    color: white; 
}
.sub-hub-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    font-size: 0.95rem; 
}
.sub-hub-list-item { 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 10px; 
}
.sub-hub-item-purchased { 
    text-decoration: line-through; 
    color: #aaa; 
}
.sub-hub-text-muted { 
    color: #666; 
    font-size: 0.9rem; 
    font-style: italic; 
}
.sub-hub-text-success { 
    color: #229954; 
    font-weight: bold; 
}
.sub-hub-text-danger { 
    color: #d32f2f; 
    font-weight: bold; 
}
.sub-hub-scroll-box { 
    max-height: 250px; 
    overflow-y: auto; 
    padding-right: 5px; 
}
.sub-hub-log-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    font-size: 0.85rem; 
    font-family: monospace; 
}
.sub-hub-log-item { 
    padding: 8px; 
    border-bottom: 1px solid #eee; 
    background: #fff; 
    margin-bottom: 4px; 
    border-radius: 4px; 
}
.sub-hub-log-time { 
    color: #888; 
}

/* ============================================================================
   SHOPPING HUB COMPONENTS
   ============================================================================ */
.sub-hub-add-item-bar {
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    flex-wrap: wrap;
}
.sub-hub-app-toggle {
    cursor: pointer; 
    background: #f7f7f7; 
    padding: 10px; 
    margin: 0; 
    border-bottom: 1px solid #ddd;
}
.sub-hub-app-items-list {
    padding: 10px; 
    display: none;
}

/* ============================================================================
   TUTORIAL TABLE OF CONTENTS BLOCK
   ============================================================================ */
.sub-hub-toc-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4c1d95;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.sub-hub-toc-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sub-hub-toc-list { list-style: none; padding: 0; margin: 0; }
.sub-hub-toc-item { margin-bottom: 8px; }
.sub-hub-toc-h2 { font-weight: 600; }
.sub-hub-toc-h2 a { color: #4c1d95; text-decoration: none; }
.sub-hub-toc-h3 { font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.sub-hub-toc-h3 a { color: #555; text-decoration: none; }
.sub-hub-toc-sub-list { list-style: none; padding-left: 20px; margin: 5px 0 0 0; }

/* ============================================================================
   FAQ ACCORDION BLOCK
   ============================================================================ */
.sub-hub-faq-details {
    background: rgba(76, 29, 149, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}
.sub-hub-faq-summary {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #f1f5f9;
    font-weight: 700;
    padding: 15px 25px 15px 75px;
    cursor: pointer;
    display: block;
    list-style: none;
}
.sub-hub-faq-body {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.6;
}

/* ============================================================================
   GUTENBERG EDITOR PREVIEW STYLES
   ============================================================================ */
.sub-hub-editor-preview {
    border: 2px dashed #4c1d95;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}
.sub-hub-editor-accordion {
    background: rgba(76, 29, 149, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.sub-hub-editor-accordion-header {
    padding: 15px 25px 15px 75px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.sub-hub-editor-accordion-body {
    background: rgba(255,255,255,0.6);
    padding: 25px;
    font-family: 'Montserrat', sans-serif;
    color: #1e293b;
}

/* ============================================================================
   RESPONSIVE SCALING
   ============================================================================ */
@media (max-width: 768px) {
    .sub-hub-add-item-bar { 
        flex-direction: column; 
        align-items: stretch; 
    }
}