/* ── Base ── */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

.main-content {
    flex: 1 0 auto;
}

a {
    color: #00d9ff;
    text-decoration: none;
}

label {
    color: #00d9ff;
    text-decoration: none;
}

a:hover {
    color: #ff006e;
    text-decoration: underline;
}




/* ── Typography ── */
.doublebass {
    font-family: "doublebass", sans-serif;
    font-weight: 400;
}

/* ── Navbar ── */
.blog-navbar {
    background-color: #000 !important;
    border-bottom: 2px solid rgba(255, 0, 110, 0.35);
}

.blog-navbar .navbar-brand span {
    background: linear-gradient(90deg, #ff006e, #b300ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ── Hero / Featured Post ── */
.hero-post {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-post-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2rem;
    width: 100%;
}

.hero-post-badge {
    background: linear-gradient(90deg, #ff006e, #b300ff);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
}

/* ── Blog Post Cards ── */
.blog-card {
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 110, 0.45);
    box-shadow: 0 8px 30px rgba(255, 0, 110, 0.18);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #1a1a1a;
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 0, 110, 0.35);
    font-size: 3rem;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff006e;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-summary {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Post Content (rendered TinyMCE HTML) ── */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Embedded players in post bodies (the OnlyMusik playlist player, YouTube, etc.).
   Published markup carries a width attribute - sometimes "100%", which is not a
   conforming value for the iframe dimension attribute (it wants a plain pixel count),
   and sometimes a mangled "100" after an editor round-trip, which renders the player
   100px wide. Size them from CSS so every existing post is fixed, and keep a 280px
   floor (about one song card) so the player can never collapse to a sliver. */
.blog-content iframe {
    display: block;
    width: 100%;
    min-width: min(280px, 100%);
    max-width: 100%;
    margin: 1.5rem 0;
    border: 0;
    border-radius: 12px;
}

.blog-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #ff006e;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content a {
    color: #00d9ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #ff006e;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    display: block;
}

.blog-content blockquote {
    border-left: 4px solid #ff006e;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 0, 110, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.blog-content pre {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 1.5rem 0;
}

.blog-content code {
    background: rgba(0, 217, 255, 0.08);
    color: #00d9ff;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.blog-content pre code {
    background: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
}

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-content li {
    margin-bottom: 0.4rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.blog-content th, .blog-content td {
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.blog-content th {
    background: rgba(255, 0, 110, 0.12);
    color: #ff006e;
    font-weight: 600;
}

.blog-content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Comments ── */
.comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid #ff006e;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: background 0.2s;
}

.comment-card:hover {
    background: rgba(255, 0, 110, 0.05);
}

/* ── Pagination ── */
.pagination .page-link {
    background-color: #111;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #ff006e;
    border-color: #ff006e;
    color: #fff;
    font-weight: 700;
}

.pagination .page-link:hover {
    background-color: rgba(255, 0, 110, 0.12);
    border-color: #ff006e;
    color: #ff006e;
}

/* ── Admin ── */
.admin-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff006e, #b300ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Utility ── */
.text-pink { color: #ff006e !important; }
.text-cyan { color: #00d9ff !important; }
.text-green { color: #2ecc71 !important; }
.bg-brand-pink { background-color: #ff006e !important; }
.bg-brand-green { background-color: #2ecc71 !important; }

.graphical-title {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 12px;
    border-left: 4px solid #ff006e;
}

.badge-tag {
    background: rgba(255, 0, 110, 0.1);
    color: #ff006e;
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.no-focus-outline:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Footer ── */
.blog-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 0, 110, 0.25);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.blog-footer a {
    color: #ff006e;
    font-weight: 700;
    text-decoration: none;
}

.blog-footer a:hover {
    color: #00d9ff;
    text-decoration: none;
}

/* ── Blazor loading ── */
/* Override Bootstrap text-muted in post article for better readability */
article .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

#blazor-error-ui {
    background: #1a1a1a;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.8);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
}

#blazor-error-ui .dismiss { cursor: pointer; }
/* Black (dark) theme */
body.dark-theme ::-webkit-scrollbar {
  width: 12px;
  background: #111;
}
body.dark-theme ::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
}

/* White (light) theme */
body.light-theme ::-webkit-scrollbar {
  width: 12px;
  background: #fff;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
