html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ── Πίνακας ελέγχου ───────────────────────────────────────────── */

.admin-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.admin-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: .6rem;
    padding: 1rem 1.15rem;
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-sub {
    font-size: .8rem;
    color: #9aa1ad;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.admin-card {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: .6rem;
    padding: 1.15rem;
}

.content-thumb {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: .25rem;
}

.cover-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: .35rem;
    border: 1px solid #e3e6ec;
}

.yt-preview {
    max-width: 240px;
    border-radius: .35rem;
}

.scope-picker {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e3e6ec;
    border-radius: .4rem;
    padding: .6rem .8rem;
    background: #fbfcfd;
}

.detail-list dt {
    font-size: .78rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: .5rem;
}

.detail-list dd {
    margin-bottom: 0;
    font-size: .95rem;
}

/* ── Δημόσιο UI ────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}

.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: .5rem; }
.hero-tagline { font-size: 1.15rem; color: #5b6474; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.value-prop { text-align: center; padding: 1.25rem; }
.value-prop-icon { font-size: 2rem; margin-bottom: .5rem; }
.value-prop p { color: #6b7280; font-size: .93rem; margin-bottom: 0; }

.member-welcome { padding: 2rem 0 1rem; }
.member-welcome h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .25rem; }

.home-section { margin-bottom: 2.5rem; }
.home-section > h2, .home-section .h5 { margin-bottom: .9rem; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: .6rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}

.category-tile:hover { border-color: #4f8cff; transform: translateY(-2px); }
.category-tile-name { font-weight: 600; }
.category-tile-count { font-size: .82rem; color: #9aa1ad; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.15rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: .6rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.content-card:hover {
    border-color: #4f8cff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 36, 52, .08);
}

.content-card-cover { position: relative; aspect-ratio: 3 / 2; background: #eef1f6; }
.content-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 2.4rem;
}

.content-card-type {
    position: absolute; top: .5rem; left: .5rem;
    background: rgba(27, 36, 52, .78); color: #fff;
    font-size: .72rem; padding: .15rem .5rem; border-radius: .3rem;
}

.content-card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.content-card-title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.35; }
.content-card-subtitle { font-size: .85rem; color: #6b7280; margin: 0; }
.content-card-meta { margin-top: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-top: .4rem; }
.content-card-category { font-size: .78rem; color: #9aa1ad; }

.content-card.skeleton { height: 300px; background: linear-gradient(90deg,#eef1f6 25%,#f6f8fa 50%,#eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.library { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.library-filters { position: sticky; top: 1rem; background: #fff; border: 1px solid #e3e6ec; border-radius: .6rem; padding: 1.1rem; }

@media (max-width: 860px) {
    .library { grid-template-columns: 1fr; }
    .library-filters { position: static; }
}

.empty-state { text-align: center; padding: 3rem 1rem; color: #6b7280; }
.empty-state-icon { font-size: 2.6rem; margin-bottom: .6rem; }

.content-detail-header { margin-bottom: 1.5rem; }
.content-detail-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: .35rem; }
.breadcrumb-line { font-size: .85rem; color: #9aa1ad; margin-bottom: .6rem; display: flex; gap: .4rem; }
.breadcrumb-line a { color: #6b7280; text-decoration: none; }
.content-detail-meta { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: #6b7280; }

.content-detail-body { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .content-detail-body { grid-template-columns: 1fr; } }

.asset-block { margin-bottom: 1.5rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: .5rem; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pdf-frame { height: 70vh; border: 1px solid #e3e6ec; border-radius: .5rem; overflow: hidden; }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }

.paywall { background: #fff; border: 1px solid #e3e6ec; border-radius: .6rem; padding: 1.5rem; }
.plan-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.plan-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid #e3e6ec; border-radius: .5rem; }
.plan-price { font-weight: 600; margin-bottom: .25rem; }

.content-detail-cover { width: 100%; border-radius: .5rem; border: 1px solid #e3e6ec; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tag { font-size: .78rem; background: #eef1f6; color: #5b6474; padding: .15rem .55rem; border-radius: 1rem; }
.related-list { list-style: none; padding: 0; font-size: .9rem; }
.related-list li { padding: .35rem 0; border-bottom: 1px solid #eef1f6; }
.content-description { margin-top: 2rem; }

.interest-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: .6rem; align-items: center; margin-bottom: .35rem; font-size: .87rem; }
.interest-name { color: #5b6474; }
.interest-bar { background: #eef1f6; border-radius: 1rem; height: 10px; overflow: hidden; }
.interest-bar > span { display: block; height: 100%; background: #4f8cff; border-radius: 1rem; }
.interest-time { text-align: right; color: #6b7280; }
