/* ============================================
   POCITS Base CSS - Shared Components
   Consolidated from hub-specific CSS files
   Created: 2025-12-27
   ============================================ */

/* =========================================
   STATS ROW - Used across all hub pages
   ========================================= */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hub-color);
}

.stat-card .label {
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================================
   SECTION CARD - Main content sections
   ========================================= */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.1rem;
}

.section-header a {
    color: var(--hub-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.section-header a:hover {
    text-decoration: underline;
}

.section-title-inline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Sidebar section card variant */
.section-card.sidebar-section {
    padding: 1.25rem;
}

.section-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hub-light);
}

/* =========================================
   SIDEBAR CARD - Right sidebar elements
   ========================================= */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hub-light);
}

/* =========================================
   HUB HEADER - Gradient header for hubs
   ========================================= */
.hub-header,
.book-header,
.mall-header,
.cmty-header,
.medi-header,
.smarts-header,
.topx-header {
	background: linear-gradient(to bottom, var(--hub-color-dark) 0%, var(--hub-color) 80%, var(--bg-page) 100% );
	color: white;
	padding: 0.7rem;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
	border-left: 1px solid var(--hub-color);
	border-right: 1px solid var(--hub-color);
}

.hub-header h1,
.book-header h1,
.mall-header h1,
.cmty-header h1,
.medi-header h1,
.smarts-header h1,
.topx-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hub-header p,
.book-header p,
.mall-header p,
.cmty-header p,
.medi-header p,
.smarts-header p,
.topx-header p {
    opacity: 0.9;
    max-width: 600px;
}

/* Hub abbreviation in small-caps (e.g., "BOOK Directory") */
.hub-abbrev {
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

/* Topic/Detail header variant */
.topic-header,
.detail-header {
    background: linear-gradient(135deg, var(--hub-color) 0%, var(--hub-color-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.topic-header h1,
.detail-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.topic-header-content,
.detail-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* =========================================
   QUICK LINKS/ACTIONS - Header action buttons
   ========================================= */
.quick-links,
.quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.quick-link,
.quick-action {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-link:hover,
.quick-action:hover {
    background: white;
    color: var(--hub-color-dark);
}

/* =========================================
   BACK LINK - Detail page navigation
   ========================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hub-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================================
   SEARCH BAR - Header search
   ========================================= */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.btn-search {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: white;
    color: var(--hub-color-dark);
}

/* =========================================
   BUTTONS - Common button styles
   ========================================= */

/* Primary button */
.btn-primary {
    background: var(--hub-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--hub-color-dark);
}

/* Secondary button */
.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Small buttons */
.btn-sm {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
}

.btn-primary-sm {
    background: var(--hub-color);
    color: white;
}

.btn-secondary-sm {
    background: #e5e7eb;
    color: #374151;
}

/* View button */
.btn-view {
    background: var(--hub-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Post button */
.btn-post {
    background: var(--hub-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Vote button */
.btn-vote {
    background: var(--hub-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* Follow button */
.follow-btn-large {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn-large:hover {
    background: white;
    color: var(--hub-color-dark);
}

.follow-btn-large.following {
    background: white;
    color: var(--hub-color-dark);
}

/* Read more link */
.btn-read-more {
    color: var(--hub-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* =========================================
   PAGINATION - Page navigation
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f3f4f6;
}

.page-btn.active {
    background: var(--hub-color);
    color: white;
    border-color: var(--hub-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   CATEGORY LIST - Sidebar navigation
   ========================================= */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #374151;
}

.category-item:hover {
    background: var(--hub-light);
}

.category-item.active {
    background: var(--hub-light);
    color: var(--hub-color-dark);
    font-weight: 500;
}

.category-icon {
    font-size: 1.1rem;
}

.category-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* =========================================
   BADGE COMPONENTS
   ========================================= */
.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--hub-color);
    color: white;
}

.badge-success {
    background: #D1FAE5;
    color: #059669;
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

/* Featured badge */
.featured-badge {
    display: inline-block;
    background: var(--hub-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Event badge */
.event-badge {
    display: inline-block;
    background: var(--hub-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Vote badges */
.vote-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.vote-badge.active {
    background: #D1FAE5;
    color: #059669;
}

.vote-badge.ending {
    background: #FEF3C7;
    color: #D97706;
}

/* =========================================
   AVATAR COMPONENTS
   =========================================
   Avatar shapes by profile type:
   - Personal (person, couple, professional, expert, casual): Round (50%)
   - Entity (company, organization, group): Square (12px radius)
   ========================================= */
.avatar {
    border-radius: 50%;  /* Default: round for personal profiles */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Entity avatar modifier - use on company/org/group avatars */
.avatar-entity {
    border-radius: 12px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
}

/* Context-specific avatars */
.content-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.provider-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.delegate-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 0.75rem;
}

.contributor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   DATE DISPLAY - Event/appointment dates
   ========================================= */
.date-box,
.event-date,
.appointment-date {
    text-align: center;
    min-width: 60px;
}

.date-box .day,
.event-date .day,
.appointment-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hub-color);
}

.date-box .month,
.event-date .month,
.appointment-date .month {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

/* =========================================
   LIST ITEM PATTERNS
   ========================================= */

/* Event item */
.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.event-item:hover {
    background: var(--hub-light);
}

.event-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 1rem;
}

/* Appointment item */
.appointment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--hub-color);
}

.appointment-info {
    flex: 1;
}

.appointment-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.appointment-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
}

/* Content item */
.content-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.content-item:last-child {
    border-bottom: none;
}

.content-body h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.content-body p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.content-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* =========================================
   CARD PATTERNS
   ========================================= */

/* Business card */
.business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.business-image {
    height: 120px;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.business-info {
    padding: 1rem;
}

.business-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.business-category {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.business-rating .stars {
    color: #F59E0B;
}

.business-rating .count {
    color: #9ca3af;
}

/* Provider card */
.provider-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.provider-card:hover {
    background: var(--hub-light);
}

.provider-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.provider-specialty {
    font-size: 0.8rem;
    color: #6b7280;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.provider-rating .star {
    color: #F59E0B;
}

/* Place card */
.place-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.place-card:hover {
    background: var(--hub-light);
}

.place-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.place-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.place-count {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Delegate card */
.delegate-card {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.delegate-card:hover {
    background: var(--hub-light);
}

.delegate-name {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.delegate-role {
    font-size: 0.8rem;
    color: #6b7280;
}

.delegate-votes {
    font-size: 0.75rem;
    color: var(--hub-color);
    margin-top: 0.25rem;
}

/* Featured card */
.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.featured-image {
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.featured-content {
    padding: 1.5rem;
}

.featured-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.featured-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* =========================================
   FEED COMPONENTS
   ========================================= */
.feed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.feed-author {
    font-weight: 600;
}

.feed-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.feed-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.feed-actions {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.feed-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.feed-action:hover {
    color: var(--hub-color);
}

/* Feed tabs */
.feed-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feed-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
}

.feed-tab:hover {
    background: #f3f4f6;
}

.feed-tab.active {
    background: var(--hub-light);
    color: var(--hub-color-dark);
}

/* =========================================
   COMPOSER COMPONENT
   ========================================= */
.composer-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.composer-textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 1rem;
    padding: 0.5rem;
    min-height: 80px;
}

.composer-textarea:focus {
    outline: none;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.composer-tools {
    display: flex;
    gap: 0.5rem;
}

.composer-tool {
    padding: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.composer-tool:hover {
    background: #f3f4f6;
    color: var(--hub-color);
}

/* =========================================
   PROGRESS BAR
   ========================================= */
.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.progress-fill.for {
    background: #10B981;
}

.progress-fill.against {
    background: #EF4444;
}

/* Vote progress */
.vote-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

/* =========================================
   VOTING COMPONENTS
   ========================================= */
.active-votes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--hub-color);
}

.vote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.vote-title {
    font-weight: 600;
    font-size: 1rem;
}

.vote-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* =========================================
   GROUP/SERVICE ITEMS
   ========================================= */
.group-item,
.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.group-item:hover,
.service-item:hover {
    background: #f3f4f6;
}

.group-icon,
.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.group-info {
    flex: 1;
}

.group-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.group-members {
    font-size: 0.8rem;
    color: #6b7280;
}

/* =========================================
   CONTRIBUTOR/RELATED ITEMS
   ========================================= */
.contributor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contributor-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.contributor-posts {
    font-size: 0.8rem;
    color: #6b7280;
}

.related-topic {
    display: block;
    padding: 0.5rem 0;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.related-topic:last-child {
    border-bottom: none;
}

.related-topic:hover {
    color: var(--hub-color);
}

/* =========================================
   ACTIVITY COMPONENTS
   ========================================= */
.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hub-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-text {
    flex: 1;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* =========================================
   ANNOUNCEMENTS
   ========================================= */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.announcement-item {
    padding: 0.75rem;
    background: #FEF3C7;
    border-radius: 6px;
    border-left: 3px solid #F59E0B;
}

.announcement-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.announcement-item p {
    font-size: 0.8rem;
    color: #92400E;
}

/* =========================================
   EMERGENCY CARD
   ========================================= */
.emergency-card {
    background: #FEE2E2;
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid #FCA5A5;
    margin-bottom: 1rem;
}

.emergency-card h3 {
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 0.5rem;
}

.emergency-text {
    font-size: 0.85rem;
    color: #7F1D1D;
}

/* =========================================
   HEALTH TIPS
   ========================================= */
.health-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-item {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.tip-item:hover {
    background: var(--hub-light);
}

.tip-icon {
    font-size: 1.25rem;
}

/* =========================================
   PARTICIPATION DISPLAY
   ========================================= */
.my-participation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participation-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.participation-label {
    color: #6b7280;
}

.participation-value {
    font-weight: 600;
}

/* =========================================
   TOPIC STATS (in header)
   ========================================= */
.topic-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.topic-stat {
    text-align: center;
}

.topic-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.topic-stat .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =========================================
   CONSTITUTION SUMMARY
   ========================================= */
.constitution-summary {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =========================================
   FEATURED SECTION
   ========================================= */
.featured-section {
    margin-bottom: 1.5rem;
}

.featured-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* =========================================
   LIST CONTAINERS
   ========================================= */
.appointments-list,
.event-list,
.services-list,
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appointments-list {
    gap: 1rem;
}

.event-list {
    gap: 1rem;
}

.services-list {
    gap: 0.5rem;
}

.groups-list {
    gap: 0.5rem;
}
