@import "tailwindcss"; @plugin "@tailwindcss/forms"; @plugin "@tailwindcss/typography"; @custom-variant dark (&:where(.dark, .dark *)); @theme { --font-sans: var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06); } /* Default theme variables. ThemeVars may override these at runtime. */ :root { --color-primary: #eeb425; --color-primary-hover: #d4a01f; --color-background: #f4f6f9; --color-surface: #ffffff; --color-dropdown: #ffffff; --color-navbar: #ffffff; --color-navbar-text: #1e293b; --color-text: #0f172a; --color-text-muted: #6b7280; --color-accent: #10b981; --color-success: #16a34a; --color-warning: #eab308; --color-error: #ef4444; --color-info: #0ea5e9; --color-danger: #ef4444; --gradient-from: #f59e0b; --gradient-to: #10b981; --button-color: #eeb425; --button-text-color: #1a1a2e; --button-secondary-color: #22c55e; --button-secondary-text-color: #ffffff; --button-secondary-hover-color: var(--color-success); --button-danger-color: #ef4444; --button-danger-text-color: #ffffff; --button-danger-hover-color: #dc2626; --button-outline-color: #eeb425; --button-outline-text-color: #1a1a2e; --button-outline-hover-color: #d4a01f; --border-radius: 12px; --border-color: #eeb425; --font-family: var(--font-nunito), "Nunito", sans-serif; --size-heading-h1: 32px; --size-heading-h2: 24px; --size-heading-h3: 20px; --avatar-border-radius: 10px; --avatar-border-color: #eeb425; --badge-background: #eeb425; --badge-text-color: #000000; --badge-border-radius: 6px; --card-border-radius: 14px; --link-color: #eeb425; --link-hover-color: #d4a01f; --input-border-color: #d1d5db; --input-focus-color: #eeb425; --navbar-height: 56px; --muted: var(--color-text-muted); --border-subtle: color-mix(in srgb, var(--color-text-muted) 18%, transparent); } /* Dark mode (toggled by html.dark; wins over :root + ThemeVars via specificity). */ html.dark { --color-background: #0b0d14; --color-surface: #141820; --color-dropdown: #1d222b; --color-navbar: #141820; --color-navbar-text: #e5e7eb; --color-text: #e5e7eb; --color-text-muted: #94a3b8; } html.dark input, html.dark select, html.dark textarea { background: #11151c; color: var(--color-text); } html.dark .admin-page table, html.dark .admin-card { border-color: rgba(255,255,255,0.06); } html.dark .currency, html.dark .article-img { background: #1f242d; } html { scroll-behavior: smooth; } body { font-family: var(--font-family); color: var(--color-text, #0f172a); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ::-webkit-scrollbar-thumb { border-radius: 100px; border: 4px solid transparent; background-clip: content-box; background-color: #2c3039; } ::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: transparent; } /* ── Atom theme components ────────────────────────────────── */ @layer components { .nav-item { @apply flex h-auto md:h-[54px] items-center text-[13px] font-bold transition-all duration-150 ease-in-out px-3 md:px-4 relative; color: var(--color-navbar-text, #64748b); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; } .nav-item::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 3px; border-radius: 3px 3px 0 0; background-color: var(--color-primary); transition: transform 0.2s ease-in-out; } .nav-item:hover::after { transform: translateX(-50%) scaleX(1); } .nav-item:hover { color: var(--color-primary); } .dropdown-item { @apply block py-2.5 px-4 text-sm font-semibold transition-all duration-100 rounded-lg mx-1; color: var(--color-text); } .dropdown-item:hover { background-color: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); } .dropdown-menu { background-color: var(--color-dropdown); border: 1px solid color-mix(in srgb, var(--color-text-muted) 14%, transparent); box-shadow: 0 8px 32px color-mix(in srgb, rgb(0, 0, 0) 20%, transparent); } } /* ── Site background ── */ .site-bg { background: linear-gradient(to bottom, color-mix(in srgb, var(--color-primary) 12%, rgba(255,255,255,0.6)), rgba(255,255,255,0.75)), url("/assets/images/background-light.jpg") no-repeat fixed center / cover; background-blend-mode: overlay; } .article-body { line-height: 1.7; } .article-body img { max-width: 100%; height: auto; border-radius: 8px; } .article-body p { margin: 0 0 0.85rem; } .article-body a { text-decoration: underline; } .text-muted { color: var(--color-text-muted); } .text-nav { color: var(--color-navbar-text); } .text-shadow { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); } .text-shadow-sm { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; } .hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); } /* ── App component classes (used across the converted pages) ── */ h1 { font-size: var(--size-heading-h1, 30px); font-weight: 800; margin: 0.2em 0 0.5em; } h2 { font-size: var(--size-heading-h2, 22px); font-weight: 700; } h3 { font-size: var(--size-heading-h3, 18px); font-weight: 700; } a { color: var(--link-color); text-decoration: none; } a:hover { text-decoration: underline; } .muted { color: var(--color-text-muted); font-size: 0.875rem; } .hero { background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-from) 14%, var(--color-navbar)), color-mix(in srgb, var(--gradient-to) 8%, var(--color-navbar))); border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); border-radius: var(--radius-lg); padding: 2rem 2.25rem; box-shadow: var(--shadow-card); margin-bottom: 1.5rem; } .card { background: var(--color-navbar); color: var(--color-navbar-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent); border-radius: var(--card-border-radius); box-shadow: var(--shadow-card); padding: 1.1rem 1.25rem; transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { box-shadow: var(--shadow-card-hover); } .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); } .article-img { width: 100%; height: 140px; object-fit: cover; display: block; background: linear-gradient(135deg, #fde68a, #fbbf24); } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: var(--border-radius); border: 2px solid transparent; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.18s ease; background: #eef2f7; color: var(--color-text); text-decoration: none; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-decoration: none; } .btn-primary { background: var(--button-color); color: var(--button-text-color); } .btn-secondary { background: var(--button-secondary-color); color: var(--button-secondary-text-color); } .btn-danger { background: var(--button-danger-color); color: var(--button-danger-text-color); } .btn-outline { background: transparent; border-color: var(--button-outline-color); color: #8a6a05; } input, select, textarea { font-family: inherit; font-size: 14px; padding: 0.55rem 0.8rem; border: 2px solid color-mix(in srgb, var(--color-text-muted) 20%, transparent); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; } input:focus, select:focus, textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent); } table { width: 100%; border-collapse: collapse; } th { text-align: left; color: var(--color-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.5rem 0.6rem; font-weight: 700; } td { padding: 0.6rem 0.6rem; border-top: 1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent); } tbody tr { transition: background 0.15s ease; } tbody tr:hover { background: color-mix(in srgb, var(--color-primary) 5%, transparent); } .avatar { border-radius: var(--avatar-border-radius); background: #f1f5f9; border: 2px solid var(--avatar-border-color); } .currency { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.85rem; padding: 0.2rem 0.6rem 0.2rem 0.2rem; border-radius: 999px; background: #f8fafc; border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent); } .currency .coin { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-size: 0.7rem; } .nav-credit-icon { background: #e9b124 url("/assets/images/icons/currency/credits.png") center no-repeat; background-size: contain; outline: 1px solid #b26d18; } .nav-ducket-icon { background: #c44aac url("/assets/images/icons/currency/duckets.png") center no-repeat; background-size: contain; outline: 1px solid #812378; } .nav-diamond-icon { background: #caf1f3 url("/assets/images/icons/currency/diamonds.png") center no-repeat; background-size: contain; outline: 1px solid #6caff4; } /* ── Admin panel (Housekeeping) ───────────────────────────────── Modern, consistent styling for all admin content pages. */ .admin-page { scroll-margin-top: 1rem; } /* Page heading */ .admin-page main > h1:first-child, .admin-page > h1:first-child { margin-top: 0; } /* Cards used inside admin pages */ .admin-card { background: var(--color-navbar); color: var(--color-navbar-text); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: var(--shadow-card); padding: 1.25rem; transition: box-shadow 0.2s ease; } /* Card with filter/search bar — compact horizontal layout */ .admin-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; } .admin-filter-bar input, .admin-filter-bar select { flex: 1; min-width: 200px; } /* Compact stat row for list pages (counts, summaries) */ .admin-stat-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; } .admin-stat-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; background: color-mix(in srgb, var(--color-primary) 8%, var(--color-navbar)); border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent); border-radius: 999px; font-size: 0.78rem; font-weight: 600; } /* Tables */ .admin-page table { width: 100%; background: var(--color-navbar); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); border-collapse: separate; border-spacing: 0; } .admin-page thead th { background: color-mix(in srgb, var(--color-primary) 8%, var(--color-navbar)); color: var(--color-text-muted); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.75rem 0.9rem; } .admin-page td { padding: 0.7rem 0.9rem; border-top: 1px solid color-mix(in srgb, var(--color-text-muted) 8%, transparent); font-size: 0.88rem; } .admin-page tbody tr { transition: background 0.12s ease; } .admin-page tbody tr:hover { background: color-mix(in srgb, var(--color-primary) 4%, transparent); } .admin-page thead tr:first-child th:first-child { border-radius: 16px 0 0 0; } .admin-page thead tr:first-child th:last-child { border-radius: 0 16px 0 0; } /* Section heading inside admin pages */ .admin-section-title { font-size: 0.9rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: var(--color-text); } .admin-section-title:first-child { margin-top: 0; } .admin-info-item { display: flex; flex-direction: column; gap: 0.15rem; } /* Empty state */ .admin-empty { text-align: center; padding: 2.5rem 1rem; color: var(--color-text-muted); font-size: 0.85rem; } /* ── Public design system (faithful to the atom theme) ────────── content-card = surface card with a primary-tinted header (icon + title + subtitle) and a padded body — the signature atom block. */ .content-card { display: flex; flex-direction: column; width: 100%; background: var(--color-navbar); color: var(--color-navbar-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow 0.2s ease; } .content-card:hover { box-shadow: var(--shadow-card-hover); } .content-card-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-from) 10%, var(--color-navbar)), color-mix(in srgb, var(--gradient-to) 5%, var(--color-navbar))); border-bottom: 1px solid color-mix(in srgb, var(--color-text-muted) 8%, transparent); } .content-card-icon { flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-size: 1.25rem; background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-from) 22%, var(--color-navbar)), color-mix(in srgb, var(--gradient-to) 12%, var(--color-navbar))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 30%, transparent); } .content-card-head-text { min-width: 0; flex: 1; } .content-card-title { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--color-navbar-text); } .content-card-subtitle { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); } .content-card-action { flex: none; } .content-card-body { padding: 1.1rem; } /* Responsive card grids (atom: 1 / sm2 / md3 / lg4). */ .card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; } @media (min-width: 40rem) { .card-grid.sm-2 { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 48rem) { .card-grid.md-2 { grid-template-columns: repeat(2, 1fr); } .card-grid.md-3 { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 64rem) { .card-grid.lg-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.lg-4 { grid-template-columns: repeat(4, 1fr); } } /* Stat tiles (value in the primary colour + muted label). */ .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.85rem; } .stat-block { background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent); border-radius: 12px; padding: 0.85rem 1rem; text-align: center; } .stat-block-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--color-primary); } .stat-block-label { margin-top: 0.2rem; font-size: 0.78rem; color: var(--color-text-muted); } /* Empty states */ .empty-state { text-align: center; padding: 2rem 1rem; } .empty-state-icon { font-size: 2rem; margin-bottom: 0.4rem; } /* Online / offline pill */ .online-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 700; padding: 0.1rem 0.55rem 0.1rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--color-text-muted) 14%, transparent); color: var(--color-text-muted); } .online-badge.online { background: color-mix(in srgb, var(--color-success) 16%, transparent); color: var(--color-success); } .online-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; } .online-badge.online .online-dot { background: var(--color-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 22%, transparent); } /* Leaderboard rank chip */ .rank-badge { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 0.35rem; border-radius: 999px; font-weight: 800; font-size: 0.95rem; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-text-muted) 18%, transparent); } .rank-badge.rank-1 { background: color-mix(in srgb, var(--color-warning) 20%, transparent); border-color: var(--color-warning); } .rank-badge.rank-2 { background: color-mix(in srgb, #94a3b8 22%, transparent); border-color: #94a3b8; } .rank-badge.rank-3 { background: color-mix(in srgb, #f97316 20%, transparent); border-color: #f97316; } /* ── Radio sidebar ──────────────────────────────────────────── */ .radio-layout { display: flex; gap: 1.5rem; align-items: flex-start; } .radio-sidebar { flex: none; width: 200px; position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 0.25rem; } .radio-sidebar-link:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); text-decoration: none; } @media (max-width: 48rem) { .radio-layout { flex-direction: column; } .radio-sidebar { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-text-muted) 14%, transparent); overflow-x: auto; } .radio-sidebar-head { display: none; } .radio-sidebar-link { font-size: 0.82rem; padding: 0.35rem 0.6rem; white-space: nowrap; } } /* ── Skeleton shimmer animation ─────────────────────────────── */ @keyframes shimmer { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }