/* === BSN Theme — Zentrales Stylesheet === */ /* Letzte Änderung: 2026-07-15 */ /* Alle Design-Tokens hier — bei Änderungen nur EINE Datei anpassen */ /* ============================================ CUSTOM PROPERTIES (Design-Tokens) ============================================ */ :root { /* Brand Colors */ --bsn-blue: #20228a; --bsn-blue-dark: #161e6e; --bsn-blue-light: #5e5ce6; /* Semantic Colors */ --heart-red: #EF4444; --heart-red-dark: #DC2626; --success: #22c55e; --success-dark: #28a745; --success-glow: #30d158; --warning: #eab308; --warning-dark: #ffc107; --danger: #dc3545; --danger-glow: #ff453a; --danger-light: #c62828; --ausverkauft-bg: #b02a37; /* Text Colors */ --text-primary: #1F2937; --text-secondary: #6B7280; --text-muted: #9CA3AF; --text-light: #D1D5DB; --text-white: #F9FAFB; --text-dark: #1a1a2e; /* Background Colors */ --bg-page: #F9FAFB; --bg-card: #ffffff; --bg-warm: #f5f3ee; --bg-warm-hover: #f8f6f0; --bg-admin: #0f0f1a; --bg-admin-code: #16213e; --bg-admin-teal: #4ecdc4; --bg-offwhite: #f0ebe0; --bg-light-blue: #f0f4ff; --bg-welcome: #FCE812; --bg-success-toast: #1a3a1a; /* Border Colors */ --border-light: #E5E7EB; --border-lighter: #F3F4F6; --border-warm: #f0ede6; --border-soft: #e0dcd3; /* Typography */ --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace; --font-size-2xs: 0.62rem; --font-size-xs: 0.68rem; --font-size-sm: 0.75rem; --font-size-base: 0.85rem; --font-size-md: 0.95rem; --font-size-lg: 1.1rem; --font-size-xl: 1.25rem; --font-size-2xl: 2rem; /* Spacing */ --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 0.75rem; --space-lg: 1rem; --space-xl: 1.5rem; /* Border Radius */ --radius-xs: 6px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 999px; /* Shadows */ --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03); --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.06); --shadow-overlay: 0 12px 48px rgba(0,0,0,0.12); --shadow-button: 0 4px 16px rgba(32,34,138,0.4); --shadow-button-hover: 0 6px 20px rgba(32,34,138,0.6); --shadow-ausverkauft: 0 2px 8px rgba(220,38,38,0.3); --shadow-toast: 0 4px 32px rgba(0,0,0,0.6); /* Transitions */ --transition-fast: 0.15s ease; --transition-smooth: 0.3s cubic-bezier(0.4,0,0.2,1); /* Admin Dark Theme (overridden by body.light) */ --admin-bg: #000000; --admin-surface: #1c1c1e; --admin-surface2: #2c2c2e; --admin-text: #ffffff; --admin-text2: rgba(255,255,255,0.6); --admin-text3: rgba(255,255,255,0.38); --admin-border: rgba(255,255,255,0.08); --admin-shadow: 0 4px 24px rgba(0,0,0,0.4); } /* ============================================ GLOBAL RESET ============================================ */ * { margin: 0; padding: 0; box-sizing: border-box; } /* ============================================ BASE BODY STYLES (site-specific overrides below) ============================================ */ body { font-family: var(--font-family); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ============================================ ANIMATIONS ============================================ */ @keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInOut { 0% { opacity: 0; transform: scale(0.9); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.95); } } /* ============================================ PUBLIC FRONTEND (Startseite & Beiträge) ============================================ */ /* Public body */ body.public { background: var(--bg-page); color: var(--text-primary); min-height: 100vh; } /* Header */ .site-header { background: var(--text-primary); padding: var(--space-md) 1.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.08); } .site-logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--text-white); min-width: 0; flex-shrink: 1; } .site-logo .logo-icon { width: 36px; height: 36px; background: var(--text-secondary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; } .site-logo .logo-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--text-white); white-space: nowrap; } .site-logo .logo-sub { font-weight: 400; color: var(--text-muted); font-size: var(--font-size-sm); } .site-logo-sub { font-size: var(--font-size-xs); font-weight: 500; color: var(--text-muted); letter-spacing: 0.03em; margin-left: 0.3rem; white-space: normal; word-break: break-word; } .header-right { margin-left: auto; } .header-right a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; } .header-right a:hover { color: var(--text-white); } /* Filter toggle button */ .filter-toggle-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); color: var(--text-light); font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 0.35rem 0.7rem; line-height: 1.3; transition: all var(--transition-fast); margin-left: var(--space-sm); font-family: inherit; } .filter-toggle-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); } .filter-toggle-btn.active { background: rgba(255,255,255,0.2); border-color: var(--text-light); } .filter-collapsed { display: none; } .filter-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,0.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; } .filter-backdrop.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 4rem; } .filter-overlay { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); padding: 1.2rem var(--space-xl); width: 90vw; max-width: 600px; animation: fadeDown 0.2s ease; } /* Offcanvas navigation */ .nav-toggle { background: none; border: none; color: var(--text-light); font-size: 1.3rem; cursor: pointer; padding: 0.3rem 0.4rem; line-height: 1; margin-right: var(--space-sm); transition: opacity 0.2s; } .nav-toggle:hover { opacity: 0.7; } .offcanvas-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } .offcanvas-backdrop.open { opacity: 1; pointer-events: auto; } .offcanvas-nav { position: fixed; top: 0; left: 0; width: 280px; height: 100%; height: 100dvh; background: var(--bg-card); z-index: 201; transform: translateX(-100%); transition: transform var(--transition-smooth); box-shadow: 4px 0 24px rgba(0,0,0,0.1); display: flex; flex-direction: column; } .offcanvas-nav.open { transform: translateX(0); } .offcanvas-nav-header { background: var(--text-primary); color: var(--text-white); padding: 1.2rem var(--space-xl); display: flex; align-items: center; justify-content: space-between; } .offcanvas-nav-header .nav-logo { font-weight: 800; font-size: var(--font-size-lg); } .offcanvas-nav-header .nav-close { background: none; border: none; color: var(--text-light); font-size: 1.4rem; cursor: pointer; line-height: 1; } .offcanvas-nav-links { list-style: none; padding: var(--space-lg) 0; flex: 1; } .offcanvas-nav-links a { display: block; padding: var(--space-md) var(--space-xl); color: var(--text-primary); text-decoration: none; font-size: var(--font-size-md); font-weight: 500; transition: background var(--transition-fast); } .offcanvas-nav-links a:hover { background: var(--border-lighter); } .offcanvas-nav-links .nav-section { padding: var(--space-sm) var(--space-xl) 0.2rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .offcanvas-nav-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--border-light); font-size: var(--font-size-sm); color: var(--text-muted); } /* Main grid */ .main-grid { max-width: 640px; margin: var(--space-lg) auto; padding: 0 0.8rem; display: flex; flex-direction: column; gap: var(--space-lg); } /* Story cards */ .story-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.2s ease; position: relative; } .story-card:hover { box-shadow: var(--shadow-card-hover); } .story-card img { width: 100%; height: 100%; object-fit: cover; display: block; } .story-card video { width: 100%; height: auto; max-height: 600px; object-fit: contain; display: block; background: #000; } .story-card audio { width: 100%; margin-top: var(--space-sm); } /* Hall badge */ .story-halle-badge { position: absolute; top: var(--space-sm); right: var(--space-sm); background: var(--text-primary); color: var(--text-white); padding: 0.2rem 0.55rem; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; z-index: 5; } .story-halle-badge svg { stroke: var(--text-light) !important; } /* Ausverkauft badge */ .story-ausverkauft-badge { position: absolute; top: 0; left: 0; right: 0; z-index: 7; background: linear-gradient(180deg, var(--heart-red) 0%, var(--heart-red-dark) 100%); color: #fff; padding: 0.4rem var(--space-lg); font-size: var(--font-size-sm); font-weight: 700; letter-spacing: 0.08em; text-align: center; box-shadow: var(--shadow-ausverkauft); display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; } .story-ausverkauft-badge .badge-icon { font-size: 0.9rem; } .story-ausverkauft-badge .badge-title { font-weight: 500; letter-spacing: 0.01em; font-size: 0.7rem; opacity: 0.85; } /* Card content */ .card-content { padding: var(--space-md) var(--space-lg) 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; } /* Time */ .story-time { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.01em; } .story-time-rel { color: var(--text-muted); font-weight: 400; } .story-time-overlay { position: absolute; top: 0; left: 0; padding: 0.35rem 0.6rem; z-index: 4; font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.01em; } /* Preview text */ .story-preview { display: none; } .text-only .story-preview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-size: var(--font-size-base); line-height: 1.55; color: #4B5563; margin-bottom: 0; } .text-only .card-content { padding: 0.8rem var(--space-lg) 0.7rem; } .text-only { /* no border */ } /* Card link */ .card-link { text-decoration: none; color: inherit; display: block; } /* Author avatar */ .author-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--border-light); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; } /* Metadata row */ .card-meta { display: flex; align-items: center; gap: var(--space-sm); padding-top: var(--space-sm); margin-top: 0.35rem; border-top: 1px solid var(--border-lighter); flex-wrap: wrap; } .card-meta-item { display: flex; align-items: center; gap: 0.2rem; font-size: 0.72rem; color: var(--text-muted); } .card-meta-item svg { stroke: var(--text-muted); } .meta-author { display: flex; align-items: center; gap: 0.35rem; color: var(--text-secondary); font-size: var(--font-size-sm); font-weight: 500; } .meta-author-name { font-weight: 500; } .meta-date { font-size: var(--font-size-xs); color: var(--text-muted); font-weight: 400; margin-left: var(--space-sm); } .meta-spacer { flex: 1; } /* Like button — unified style */ .stat-like-btn, .detail-like-btn, .comment-like-btn { background: none; border: none; border-radius: var(--radius-pill); padding: 0.25rem 0.6rem; font-size: 0.72rem; cursor: pointer; color: var(--text-muted); font-family: inherit; transition: all var(--transition-fast); display: flex; align-items: center; gap: 0.2rem; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 36px; justify-content: center; } .stat-like-btn svg, .stat-like-btn svg path, .detail-like-btn svg, .detail-like-btn svg path, .comment-like-btn svg, .comment-like-btn svg path { stroke: var(--heart-red) !important; fill: var(--heart-red) !important; } .stat-like-btn:hover, .detail-like-btn:hover, .comment-like-btn:hover { opacity: 0.8; } .stat-like-btn.liked, .detail-like-btn.liked, .comment-like-btn.liked { background: none; } .stat-like-btn.liked svg, .stat-like-btn.liked svg path, .detail-like-btn.liked svg, .detail-like-btn.liked svg path, .comment-like-btn.liked svg, .comment-like-btn.liked svg path { stroke: var(--heart-red) !important; fill: var(--heart-red) !important; } .stat-like-btn:active, .detail-like-btn:active, .comment-like-btn:active { transform: scale(0.96); } /* Filter bar */ .frontend-filter { max-width: 640px; margin: var(--space-sm) auto 0; padding: 0 0.8rem; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .frontend-filter .filter-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .frontend-filter a { display: inline-block; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); text-decoration: none; font-size: 0.78rem; font-weight: 500; transition: all var(--transition-fast); border: 1.5px solid transparent; } .frontend-filter a.filter-pill { background: var(--bg-card); color: var(--text-secondary); border-color: var(--border-light); } .frontend-filter a.filter-pill:hover { border-color: var(--text-muted); color: var(--text-secondary); } .frontend-filter a.filter-pill.active { background: var(--text-primary); color: #fff; border-color: var(--text-primary); font-weight: 700; } .frontend-filter a.filter-reset { color: var(--text-muted); font-size: var(--font-size-sm); } /* Hall select */ .hall-select { appearance: none; -webkit-appearance: none; background: var(--bg-card); color: var(--text-secondary); border: 1.5px solid var(--border-light); border-radius: var(--radius-pill); padding: 0.35rem 2rem 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.55rem center; } /* Footer */ .site-footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border-light); margin-top: 2rem; } .site-footer a { color: var(--bsn-blue); text-decoration: none; font-weight: 600; } /* ============================================ SUBMISSION DETAIL PAGE ============================================ */ .detail-container { max-width: 640px; margin: var(--space-lg) auto; padding: 0 0.8rem; } .detail-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-xl); margin: var(--space-lg) 0; box-shadow: var(--shadow-card); } .back-link { display: inline-block; color: var(--bsn-blue); text-decoration: none; font-weight: 600; margin-bottom: var(--space-lg); } .meta-author-name { font-weight: 500; } .meta-date { font-size: var(--font-size-xs); color: var(--text-muted); } /* Detail media */ .detail-media { margin-top: var(--space-xl); } .detail-media img, .detail-media video { width: 100%; height: auto; border-radius: var(--radius-md); margin: var(--space-sm) 0; } .detail-media video { max-height: 80vh; background: #000; } .detail-media audio { width: 100%; margin: var(--space-sm) 0; } /* Detail like button */ .detail-like-btn { font-size: 0.88rem; padding: 0.4rem 0.8rem; } /* Comment styles */ .comment-section { margin-top: 2rem; } .comment-form textarea { width: 100%; } .comment-item { background: var(--bg-warm-hover); border-radius: var(--radius-sm); padding: var(--space-md); margin-bottom: var(--space-sm); } .comment-submit-btn { background: var(--bsn-blue); color: #fff; border: none; border-radius: var(--radius-pill); padding: 0.5rem 1.2rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition-fast); } .comment-submit-btn:hover { background: var(--bsn-blue-dark); } /* ============================================ CHAT WIDGET (BSN Assistant) ============================================ */ .chat-header { background: var(--text-primary); color: var(--text-white); padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: var(--space-sm); } .chat-header button { background: none; border: none; color: var(--text-light); font-size: 1.3rem; cursor: pointer; } .chat-msg { padding: 0.5rem 0.8rem; font-size: 0.82rem; } .chat-msg.assistant { align-self: flex-start; background: var(--border-light); color: var(--text-primary); } .chat-footer { padding: 0.7rem 0.9rem; border-top: 1px solid var(--border-light); display: flex; gap: var(--space-sm); } .chat-footer input { flex: 1; border: 1.5px solid var(--border-light); border-radius: var(--radius-pill); padding: 0.5rem 0.9rem; font-size: 0.82rem; font-family: inherit; outline: none; } .chat-footer input:focus { border-color: var(--text-secondary); } .chat-footer button { background: var(--text-secondary); color: #fff; border: none; border-radius: var(--radius-pill); padding: 0.5rem 0.9rem; font-weight: 600; cursor: pointer; } .chat-footer button:hover { background: var(--text-primary); } /* ============================================ SUBMIT WIDGET ============================================ */ .submit-header { background: var(--text-primary); color: var(--text-white); padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: var(--space-sm); } .submit-header button { background: none; border: none; color: var(--text-light); font-size: 1.3rem; cursor: pointer; } .submit-body { padding: 0.9rem; } .submit-body .hint { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: var(--space-sm); } .submit-body input, .submit-body textarea { width: 100%; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; font-size: 0.82rem; font-family: inherit; outline: none; margin-bottom: 0.5rem; } .submit-body input:focus, .submit-body textarea:focus { border-color: var(--text-secondary); } .submit-body button { background: var(--bsn-blue); color: #fff; border: none; border-radius: var(--radius-pill); padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; } .submit-body button:hover { background: var(--bsn-blue-dark); } /* Camera/video capture buttons */ .capture-btn, label.capture-btn { display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 2px solid var(--border-light); border-radius: 50%; width: 68px; height: 68px; cursor: pointer; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; touch-action: manipulation; padding: 0; } /* Login */ .login-toggle-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); color: var(--text-light); padding: 0.35rem 0.7rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all var(--transition-fast); white-space: nowrap; line-height: 1.3; } .login-toggle-btn:hover { background: rgba(255,255,255,0.15); } .login-toggle-btn.active { background: rgba(255,255,255,0.2); border-color: var(--text-light); } .login-dropdown-form input { width: 100%; padding: var(--space-sm) 0.7rem; margin: 0.3rem 0; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.82rem; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color var(--transition-fast); background: var(--bg-card); } .login-dropdown-form button { background: var(--bsn-blue); color: #fff; border: none; border-radius: var(--radius-sm); padding: var(--space-sm) 0.7rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; } .login-dropdown-form button:hover { background: var(--bsn-blue-dark); } /* Welcome screen */ .welcome-footer { padding: 0.8rem var(--space-xl) 1.2rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); } /* ============================================ TOAST / NOTIFICATION PAGES ============================================ */ .toast-page { font-family: -apple-system, sans-serif; background: var(--bg-admin); color: #e0e0e0; display: flex; align-items: center; justify-content: center; min-height: 100vh; } .toast-success { background: var(--bg-success-toast); color: var(--success-dark); } .toast-error { background: rgba(220,53,69,0.15); color: var(--danger); } .toast { padding: var(--space-xl) 2.5rem; border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 600; text-align: center; box-shadow: var(--shadow-toast); animation: fadeInOut 1.8s ease forwards; } /* ============================================ EMPTY STATE / WELCOME PAGE ============================================ */ body.welcome { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-welcome); color: var(--text-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; } .empty { text-align: center; padding: 3rem; } .empty h1 { color: var(--bsn-blue); font-size: var(--font-size-2xl); font-weight: 800; margin-bottom: 0.8rem; } .empty p { color: #666; font-size: var(--font-size-lg); max-width: 400px; line-height: 1.6; } .empty .logo { font-size: 3rem; margin-bottom: var(--space-xl); } /* ============================================ LEGACY OVERLAY CARD (detail view old) ============================================ */ .overlay-card { font-family: -apple-system, sans-serif; } .overlay-card h2 { color: var(--bsn-blue); font-size: 1rem; font-weight: 700; margin-bottom: var(--space-lg); } .overlay-card .detail-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: var(--space-lg); } .overlay-card .detail-body { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); } .overlay-card .link a { color: var(--text-primary); font-weight: 500; } .overlay-card .btn { margin-top: var(--space-lg); } .overlay-card hr { border: none; border-top: 1px solid var(--border-light); margin: var(--space-xl) 0; } .overlay-card a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.82rem; } .overlay-card input, .overlay-card textarea { width: 100%; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: var(--space-sm) 0.7rem; font-size: 0.82rem; font-family: inherit; outline: none; margin-bottom: 0.5rem; } .overlay-card input:focus, .overlay-card textarea:focus { border-color: var(--text-secondary); } .overlay-card .btn { background: var(--bsn-blue); color: #fff; border: none; border-radius: var(--radius-pill); padding: var(--space-sm) 1rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; } .overlay-card .btn:hover { background: var(--bsn-blue-dark); } .overlay-card pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.82rem; background: var(--bg-warm-hover); padding: 0.8rem; border-radius: var(--radius-sm); line-height: 1.5; } /* ============================================ ADMIN DASHBOARD (Dark Theme) ============================================ */ body.admin { background: var(--admin-bg); color: var(--admin-text); min-height: 100vh; min-height: 100dvh; } .admin-header { position: sticky; top: 0; z-index: 100; background: rgba(28,28,30,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--admin-border); padding: var(--space-md) 1.25rem; } body.light .admin-header { background: rgba(242,242,247,0.72); } .admin-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); } .admin-logo-wrap { display: flex; align-items: center; gap: var(--space-sm); } .admin-logo-sub { font-size: 0.7rem; font-weight: 500; color: var(--admin-text3); letter-spacing: 0.03em; white-space: nowrap; } .admin-header h1 { font-size: var(--font-size-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--admin-text); } .admin-header .meta { font-size: var(--font-size-sm); color: var(--admin-text2); display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; } .count-badge { background: var(--admin-surface2); color: var(--admin-text2); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 600; white-space: nowrap; } .admin-btn { display: inline-block; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; text-decoration: none; transition: all var(--transition-fast); white-space: nowrap; background: var(--admin-surface2); color: var(--admin-text2); border: 1.5px solid transparent; } .admin-btn:hover { background: var(--admin-surface); color: var(--admin-text); border-color: var(--admin-border); } .admin-btn.active { background: var(--bsn-blue); color: #fff; border-color: var(--bsn-blue); } .admin-btn.secondary { background: transparent; color: var(--admin-text3); } .admin-btn.secondary:hover { color: var(--admin-text); background: var(--admin-surface2); } .admin-header a { color: var(--bsn-blue); text-decoration: none; font-weight: 500; } .admin-header a:hover { opacity: 0.8; } .admin-main { max-width: 1200px; margin: 0 auto; padding: var(--space-lg) 1.25rem 3rem; } .totals { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); flex-wrap: wrap; } .total-box { background: var(--admin-surface); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-lg); font-size: 0.82rem; font-weight: 500; border: 1px solid var(--admin-border); } .total-box strong { color: var(--bsn-blue); font-size: var(--font-size-lg); } .filter-bar { display: flex; gap: 0.4rem; margin-bottom: var(--space-lg); flex-wrap: wrap; align-items: end; } .filter-bar label { font-size: 0.7rem; color: var(--admin-text2); display: flex; flex-direction: column; gap: 0.15rem; font-weight: 500; } .filter-bar select, .filter-bar input { background: var(--admin-surface); color: var(--admin-text); border: 1px solid var(--admin-border); border-radius: var(--radius-pill); padding: 0.45rem 0.9rem; font-size: 0.8rem; font-family: inherit; -webkit-appearance: none; appearance: none; } .filter-bar select { padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; } .filter-bar button { background: var(--bsn-blue); color: #fff; border: none; border-radius: var(--radius-pill); padding: 0.45rem 1.2rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; } .desktop-table { display: none; } @media (min-width: 768px) { .desktop-table { display: block; } .mobile-cards { display: none; } } .desktop-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.82rem; } .desktop-table th { text-align: left; padding: 0.6rem 0.5rem; color: var(--admin-text2); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--admin-border); position: sticky; top: 56px; background: var(--admin-bg); } .desktop-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--admin-border); font-size: 0.8rem; } .desktop-table tr { cursor: pointer; transition: background 0.12s; border-radius: var(--radius-sm); } .desktop-table tbody tr:hover { background: var(--admin-surface); } .desktop-table tbody tr.row-new { border-left: 3px solid var(--admin-text3); } .desktop-table tbody tr.row-published { border-left: 3px solid var(--bsn-blue); } .desktop-table tbody tr.row-flagged { border-left: 3px solid var(--danger); } .mobile-cards { display: flex; flex-direction: column; gap: var(--space-sm); } .mobile-card { display: block; background: var(--admin-surface); border-radius: var(--radius-sm); padding: 0.8rem var(--space-lg); text-decoration: none; color: var(--admin-text); border-left: 4px solid var(--admin-text3); transition: transform 0.12s; } .mobile-card:active { transform: scale(0.985); } .mobile-card.row-published { border-left-color: var(--bsn-blue); } .mobile-card.row-flagged { border-left-color: var(--danger); } .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; } .mc-id { font-weight: 700; font-size: var(--font-size-base); color: var(--bsn-blue); } .mc-body { font-size: 0.82rem; font-weight: 500; } .mc-meta { font-size: 0.72rem; color: var(--admin-text2); margin-top: 0.15rem; } .mc-snippet { font-size: var(--font-size-sm); color: var(--admin-text3); margin-top: var(--space-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mc-time { font-size: 0.65rem; color: var(--admin-text3); margin-top: 0.2rem; } .badge { display: inline-block; padding: 0.18rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .badge-new { background: rgba(255,255,255,0.08); color: var(--admin-text2); } .badge-processing { background: rgba(255,193,7,0.18); color: var(--warning-dark); } .badge-done { background: rgba(48,209,88,0.18); color: var(--success-glow); } .badge-flagged { background: rgba(255,69,58,0.18); color: var(--danger-glow); } .badge-gdpr_deleted { background: rgba(255,0,0,0.18); color: var(--danger-glow); } .badge-published { background: rgba(32,34,138,0.2); color: var(--bsn-blue-light); } .badge-published { background: rgba(32,34,138,0.2); color: var(--bsn-blue-light); } .triage-badge { display: inline-block; font-size: var(--font-size-lg); cursor: help; margin-right: 0.3rem; vertical-align: middle; transition: transform var(--transition-fast); } .triage-badge:hover { transform: scale(1.2); } .theme-toggle { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 999; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; border: 1px solid var(--admin-border); background: var(--admin-surface); color: var(--admin-text); box-shadow: var(--admin-shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; } body.light .theme-toggle { background: rgba(255,255,255,0.85); } /* Admin detail view */ .detail-header { position: sticky; top: 0; z-index: 100; background: rgba(28,28,30,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--admin-border); padding: var(--space-md) 1.25rem; } body.light .detail-header { background: rgba(242,242,247,0.72); } .detail-header-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; } .detail-header h1 { font-size: var(--font-size-lg); font-weight: 700; letter-spacing: -0.02em; } .detail-header .subtitle { font-size: 0.7rem; color: var(--admin-text2); } .detail-main { max-width: 720px; margin: 0 auto; padding: var(--space-lg) 1.25rem 6rem; } .toolbar { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); flex-wrap: wrap; align-items: center; } .toolbar form { margin: 0; display: flex; gap: var(--space-sm); flex-wrap: wrap; } .btn { padding: 0.55rem 1.2rem; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: 0.82rem; border: none; cursor: pointer; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 0.3rem; font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 44px; } .btn:active { transform: scale(0.96); } .btn-back { background: var(--admin-surface); color: var(--admin-text2); border: 1px solid var(--admin-border); } .btn-back:hover { background: var(--admin-surface2); } .btn-done { background: rgba(48,209,88,0.18); color: var(--success-glow); } .btn-done:hover { background: rgba(48,209,88,0.28); } .btn-delete { background: rgba(255,69,58,0.12); color: var(--danger-glow); border: 1px solid rgba(255,69,58,0.2); } .btn-delete:hover { background: rgba(255,69,58,0.2); } .btn-flag { background: rgba(255,69,58,0.1); color: var(--danger-glow); } .btn-flag:hover { background: rgba(255,69,58,0.2); } .btn-publish { background: rgba(32,34,138,0.2); color: var(--bsn-blue-light); border: 1px solid var(--bsn-blue); } .btn-publish:hover { background: var(--bsn-blue); color: #fff; } .btn-publish-big { background: var(--bsn-blue) !important; color: #fff !important; padding: 0.7rem 2rem !important; font-size: var(--font-size-md) !important; font-weight: 700 !important; letter-spacing: -0.01em !important; border: none !important; box-shadow: var(--shadow-button); } .btn-publish-big:hover { background: var(--bsn-blue-light) !important; box-shadow: var(--shadow-button-hover); } .btn:disabled { opacity: 0.35; cursor: not-allowed; } body.light .btn-publish-big { color: #fff !important; } .toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--admin-surface2); border-radius: 22px; transition: all 0.25s ease; border: 1.5px solid var(--admin-border); } .toggle-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: all 0.25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); } .toggle-switch input:checked + .toggle-slider { background: var(--bsn-blue); border-color: var(--bsn-blue); } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); } .card { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: var(--space-md); } .card-header { font-size: 0.78rem; font-weight: 600; color: var(--bsn-blue-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-lg); } .field { margin-bottom: var(--space-lg); } .field:last-child { margin-bottom: 0; } .field-label { font-size: 0.7rem; color: var(--admin-text2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; font-weight: 600; } .field-value { font-size: 0.9rem; line-height: 1.5; word-break: break-word; } .field-value pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.82rem; background: var(--admin-surface2); padding: 0.8rem; border-radius: var(--radius-sm); line-height: 1.5; } input, textarea { width: 100%; background: var(--admin-surface2); color: var(--admin-text); border: 2px solid var(--admin-border); border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; font-family: inherit; font-size: 0.88rem; transition: border-color var(--transition-fast); -webkit-appearance: none; appearance: none; } input:focus, textarea:focus { outline: none; border-color: var(--bsn-blue); } textarea { resize: vertical; min-height: 80px; } .media-item { position: relative; margin: var(--space-sm) 0; } .media-item label { position: absolute; top: 8px; right: 8px; z-index: 10; background: rgba(0,0,0,0.6); padding: 0.3rem 0.6rem; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 0.3rem; cursor: pointer; font-size: 0.72rem; color: var(--bsn-blue-light); backdrop-filter: blur(8px); } .media-item img, .media-item video { max-width: 100%; border-radius: var(--radius-sm); display: block; } .media-item audio { width: 100%; margin: 0.3rem 0; } .halle-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--bsn-blue); color: #fff; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 700; letter-spacing: -0.01em; } .danger-card { border-color: rgba(255,69,58,0.3) !important; } .bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; padding: var(--space-md) var(--space-lg) calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: rgba(28,28,30,0.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--admin-border); } body.light .bottom-bar { background: rgba(242,242,247,0.88); } @media (max-width: 767px) { .bottom-bar { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; } } @media (max-width: 767px) { .theme-toggle { bottom: 5rem; } } img, video { border-radius: var(--radius-sm); } audio { width: 100%; margin: 0.3rem 0; } /* ============================================ LIGHT THEME OVERRIDES (body.light) ============================================ */ body.light { --admin-bg: #f2f2f7; --admin-surface: #ffffff; --admin-surface2: #f2f2f7; --admin-text: #000000; --admin-text2: rgba(0,0,0,0.55); --admin-text3: rgba(0,0,0,0.3); --admin-border: rgba(0,0,0,0.08); --admin-shadow: 0 2px 16px rgba(0,0,0,0.08); } /* ============================================ DESKTOP MASONRY (public frontend) ============================================ */ @media (min-width: 768px) { .main-grid { max-width: 1200px; column-count: 3; column-gap: var(--space-lg); } .story-card { break-inside: avoid; margin-bottom: var(--space-lg); } .card-link { break-inside: avoid; } } /* ============================================ RESPONSIVE — Mobile ============================================ */ @media (max-width: 600px) { .detail-card { padding: 1.2rem; } .site-header { padding: 0.8rem var(--space-lg); } } /* ============================================ LEGACY TABLE PAGE (Simple HTML table) ============================================ */ body.legacy-table { font-family: 'Inter', sans-serif; background: var(--bg-warm); color: var(--text-dark); padding: var(--space-lg); } body.legacy-table h1 { color: var(--bsn-blue); margin-bottom: var(--space-sm); font-size: 1.3rem; } body.legacy-table table { width: 100%; border-collapse: collapse; font-size: var(--font-size-base); } body.legacy-table th { background: var(--bsn-blue); color: #fff; padding: 0.6rem 0.5rem; text-align: left; font-size: var(--font-size-sm); } body.legacy-table td { padding: var(--space-sm); border-bottom: 1px solid #eee; vertical-align: top; } body.legacy-table tr:hover { background: var(--bg-warm-hover); } body.legacy-table .back-link { display: inline-block; color: var(--bsn-blue); text-decoration: none; font-weight: 600; margin-bottom: var(--space-lg); } body.legacy-table .admin-header { display: flex; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-xl); } body.legacy-table .admin-header img { height: 34px; width: auto; } @media (max-width: 700px) { body.legacy-table table, body.legacy-table thead, body.legacy-table tbody, body.legacy-table th, body.legacy-table td, body.legacy-table tr { display: block; } body.legacy-table th { display: none; } body.legacy-table tr { margin-bottom: var(--space-lg); border: 1px solid #eee; border-radius: var(--radius-sm); padding: var(--space-sm); } body.legacy-table td { border: none; padding: 0.2rem 0; } } /* ============================================ DEBUG / TEST PAGE ============================================ */ body.test-page { font-family: -apple-system, sans-serif; background: var(--bg-admin); color: #e0e0e0; padding: 2rem; } body.test-page h1 { color: var(--bg-admin-teal); } body.test-page pre { background: var(--bg-admin-code); padding: var(--space-lg); border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.8rem; line-height: 1.5; } body.test-page a { color: var(--bg-admin-teal); }