/* Demo page (Demo.cshtml) - extracted inline styles */

.is-hidden { display: none !important; }

/* Loading overlay (same as Event) */
.page-loading-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #166534 0%, #22c55e 50%, #16a34a 100%); transition: opacity 0.35s ease, visibility 0.35s ease; }
.page-loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loading-overlay .loader-content { text-align: center; padding: 1.5rem; }
.page-loading-overlay .loader-spinner { width: clamp(40px, 10vw, 56px); height: clamp(40px, 10vw, 56px); border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 1rem; }
.page-loading-overlay .loader-text { color: rgba(255,255,255,0.95); font-size: clamp(0.875rem, 2.5vw, 1rem); font-weight: 500; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Composer + feed */
.composer-card, .feed-post { background: white; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); margin-bottom: 1rem; overflow: hidden; }
.composer-trigger { padding: 1rem; border: none; background: none; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; }
.composer-trigger:hover { background: #f2f3f5; }
.composer-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.composer-placeholder { flex: 1; color: #65676b; font-size: 1rem; padding: 0.625rem 0; }
.composer-form { display: none; padding: 0 1rem 1rem; border-top: 1px solid #e4e6eb; }
.composer-form.active { display: block; }
.file-input-wrapper { margin-top: 0.75rem; }
.file-input-label { display: block; padding: 0.75rem; border: 2px dashed #dadde1; border-radius: 6px; text-align: center; cursor: pointer; background: #f7f8fa; transition: all 0.2s; }
.file-input-label:hover { background: #e4e6eb; border-color: var(--theme-primary); }
.file-input-label.has-files { border-color: var(--theme-primary); background: #e7f3ff; }
input[type="file"] { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #f0f2f5; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove { position: absolute; top: 0.25rem; right: 0.25rem; background: rgba(0,0,0,0.7); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.875rem; line-height: 1; }
.preview-remove:hover { background: rgba(0,0,0,0.85); }
.composer-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.upload-btn-grow { flex: 1; }
.feed { margin-top: 0; }
.feed-empty, .feed-loading { background: white; border-radius: 8px; padding: 3rem 1rem; text-align: center; color: #65676b; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.feed-loading { padding: 2rem; }
.feed-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.feed-empty-subtext { font-size: 0.875rem; margin-top: 0.5rem; }
.post-header { padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.post-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 0.9375rem; flex-shrink: 0; }
.post-info { flex: 1; }
.post-author { font-weight: 600; font-size: 0.9375rem; color: #050505; }
.post-time { font-size: 0.8125rem; color: #65676b; }
.post-caption { padding: 0 1rem 0.75rem; font-size: 0.9375rem; color: #050505; line-height: 1.4; white-space: pre-wrap; }
.post-images { display: grid; gap: 2px; background: #f0f2f5; }
.post-images.count-1 { grid-template-columns: 1fr; }
.post-images.count-2 { grid-template-columns: repeat(2, 1fr); }
.post-images.count-3 { grid-template-columns: repeat(2, 1fr); }
.post-images.count-3 .post-image:first-child { grid-row: 1 / 3; }
.post-images.count-4 { grid-template-columns: repeat(2, 1fr); }
.post-image { position: relative; cursor: pointer; overflow: hidden; background: #f0f2f5; aspect-ratio: 1; }
.post-images.count-1 .post-image { aspect-ratio: 4/3; max-height: 500px; }
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.post-image:hover img { transform: scale(1.05); }
.post-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 600; cursor: pointer; }
.post-image-overlay:hover { background: rgba(0,0,0,0.8); }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; }
.lightbox-content { position: relative; max-width: 95%; max-height: 95%; display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 95vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.9); color: #050505; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.5rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); color: #050505; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 99; }
.lightbox-nav.active { opacity: 1; pointer-events: auto; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-info { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; }

/* Footer */
.event-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; padding: 1rem; text-align: center; border-top: 1px solid var(--border-light, #e4e6eb); background: var(--bg-page, #fafdfb); }
body.has-event-footer .container { padding-bottom: 4rem; }
.event-footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-secondary, #65676b); font-size: 0.9375rem; }
.event-footer-brand:hover { color: var(--theme-primary); }
.event-footer-logo { width: 28px; height: auto; }
.event-footer-slideshow { margin-bottom: 0.5rem; font-size: 1rem; color: var(--text-secondary, #65676b); }
.event-footer-slideshow a { color: var(--theme-primary); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.event-footer-slideshow a:hover { text-decoration: underline; }
.event-footer-note { font-size: 0.8125rem; color: var(--text-muted, #9ca3af); margin-top: 0.35rem; }

/* Demo layout tweaks */
.demo-home-link { color: inherit; text-decoration: none; }
#pageHeader { padding: 0.5rem 1rem; }
.container { padding-top: 0.75rem; }
.header.themed { min-height: 0px !important; }

.games-card-demo-note {
    color: #b91c1c;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}
