
/* ========== Admin.html ========== */

.admin-container {
    max-width: 1000px;
    color: #f9fafb;
}

.admin-card {
    background: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(56, 189, 248, 0.25);
    padding: 24px 26px 18px;
}

.admin-header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-header-sub {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.85);
}

.admin-search-input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    color: #e5e7eb;
}

.admin-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129, 140, 248, 0.6);
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #f9fafb;
}

.admin-table {
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    color: rgba(209, 213, 219, 0.9);
    padding-bottom: 0.35rem;
}

.admin-row {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.admin-row:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.95),
        0 0 20px rgba(129, 140, 248, 0.55);
}

.admin-table td {
    border-top: none;
    border-bottom: none;
    padding: 0.65rem 0.85rem;
    vertical-align: middle;
    color: #e5e7eb;
}

.admin-cell-id {
    width: 60px;
    font-size: 0.85rem;
    color: rgba(148, 163, 253, 0.9);
}

.admin-cell-username {
    font-weight: 500;
    font-size: 1rem;
}

.admin-cell-date {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    white-space: nowrap;
}

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.admin-details-btn {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    border-width: 1px;
}

.admin-no-roles {
    font-size: 0.8rem;
}



/* ========== blog.html ========== */

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 14px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.blog-thumb-large {
    width: 210px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px;
    margin-right: 18px;
}

.blog-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-thumb-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.blog-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-main {
    flex: 1;
    min-width: 0;
}

.blog-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.blog-main {
    flex: 1 1 auto;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 280px;
    margin-left: auto;
    margin-top: 4px;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;

    background: linear-gradient(135deg, #fb923c, #ec4899);
    border: 1px solid rgba(251, 146, 60, 0.8);

    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    margin-bottom: 12px;
    transition: 0.12s ease;
}

.blog-new-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.blog-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-divider {
        display: none;
    }
    .blog-main,
    .blog-sidebar {
        flex: 1 1 auto;
    }
}



/* ========== contact.html ========== */

.contact-page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-card {
    border-radius: 1.3rem;
    padding: 1.4rem 1.5rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.contact-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-details-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.contact-label {
    font-weight: 600;
    display: inline-block;
    min-width: 110px;
}

.text-xs {
    font-size: 0.75rem;
}

.contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 253, 0.5);
    color: #f9fafb;
}

.contact-form .form-control:focus {
    background-color: #020617;
    color: #f9fafb;
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.45);
}

.contact-form textarea {
    min-height: 150px;
}

.btn-contact-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-contact-main:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== dialoog_thread.html ========== */

.thread-media {
    max-width: 700px;
    width: 100%;
    margin: 16px auto 12px;
}

.thread-media img,
.thread-media video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.thread-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.thread-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 8px;
}

.comment-tree {
    margin-top: 10px;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.comment-vote form {
    margin: 0;
}

.comment-vote button {
    border: none;
    background: transparent;
    color: rgba(148,163,253,0.9);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comment-vote button:hover {
    color: #a855f7;
}

.comment-score {
    margin: 2px 0;
}

.comment-body-card {
    flex: 1;
    background: rgba(15,23,42,1);
    border-radius: 10px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 2px;
}

.comment-actions {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-actions a,
.comment-actions button.btn-link-like {
    color: rgba(148,163,253,0.9);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
}

.comment-actions a:hover,
.comment-actions button.btn-link-like:hover {
    text-decoration: underline;
}

.comment-children {
    margin-left: 26px;
    border-left: 1px solid rgba(55,65,81,0.8);
    padding-left: 10px;
    margin-top: 4px;
}

.reply-form {
    margin-top: 6px;
    margin-bottom: 10px;
}

.new-comment-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .comment-children {
        margin-left: 16px;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 2px minmax(0, 0.6fr);
    column-gap: 28px;
    align-items: flex-start;
    margin-top: 10px;
}

.thread-main {
    flex: 1 1 auto;
}

.thread-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
    position: relative;
    left: 5px;
}

.thread-sidebar {
    flex: 0 0 340px;
    max-width: 260px;
    margin-left: auto;
}

.thread-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.thread-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.thread-sidebar-item:last-child {
    border-bottom: none;
}

.thread-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.thread-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thread-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.thread-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.thread-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.thread-share-btn:hover {
    filter: brightness(1.08);
}


@media (max-width: 992px) {
    .thread-layout {
        grid-template-columns: 1fr;
    }
    .thread-divider {
        display: none;
    }
    .thread-sidebar {
        max-width: 100%;
    }
}

.blog-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-action-buttons form {
    margin: 0;
}

.blog-action-buttons .btn {
    min-width: 110px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}



/* ========== dialoog.html ========== */

.dialogue-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.dialogue-main {
    flex: 1 1 auto;
}

.dialogue-sidebar {
    flex: 0 0 340px;
    max-width: 340px;
    margin-left: auto;
    margin-top: 4px;
}

.dialogue-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 10px 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.dialogue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.dialogue-thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dialogue-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-body-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dialogue-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.dialogue-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.dialogue-thread-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dialogue-empty {
    font-size: 0.9rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.8);
    background: linear-gradient(135deg, #fb923c, #ec4899);
    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    text-decoration: none;
    margin-bottom: 10px;
}

.dialogue-new-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.dialogue-new-form-card {
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,253,0.6);
    box-shadow: 0 22px 60px rgba(15,23,42,0.9);
    border-radius: 18px;
    padding: 14px 18px;
    margin-top: 6px;
}

.dialogue-thumb {
    width: 125px;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.dialogue-thumb img,
.dialogue-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .dialogue-layout {
        flex-direction: column;
    }
    .dialogue-divider {
        display: none;
    }
    .dialogue-sidebar {
        max-width: 100%;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.dialogue-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.dialogue-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,253,0.7);
}

.dialogue-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialogue-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
}

.dialogue-author-meta {
    font-size: 0.78rem;
    color: rgba(156,163,175,0.9);
}


.dialogue-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.dialogue-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.dialogue-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.dialogue-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialogue-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.dialogue-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.dialogue-score-btn {
    border: none;
    background: transparent;
    padding: 0 4px;
    color: inherit;
    cursor: pointer;
}

.dialogue-score-btn:focus {
    outline: none;
}

.dialogue-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.dialogue-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.dialogue-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.dialogue-share-btn:hover {
    filter: brightness(1.08);
}



/* ========== index.html ========== */

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148,163,253,0.7);
}

.disabled-input {
    background-color: #1f2937 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}



/* ========== layout.html ========== */

:root {
    --az-bg-deep: #050315;
    --az-bg-panel: rgba(15, 23, 42, 0.94);
    --az-accent-purple: #a855f7;
    --az-accent-pink: #ec4899;
    --az-accent-blue: #38bdf8;
    --az-text-main: #f9fafb;
    --az-text-muted: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--az-text-main);

    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
        linear-gradient(135deg, #020617, #0b1024 40%, #020617 100%);
    background-attachment: scroll;
    background-size: cover;
}

.page-frame {
    max-width: 1400px;
    margin: 20px auto 40px auto;
    padding: 24px 40px 40px;
    border-radius: 32px;
    background: var(--az-bg-panel);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(56, 189, 248, 0.12);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
}

.top-nav-left {
    display: flex;
    gap: 18px;
    flex-grow: 1;
}

.nav-tab {
    min-width: 110px;
    text-align: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--az-text-muted);

    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(148, 163, 253, 0.35), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 253, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(165, 180, 252, 0.55), rgba(15, 23, 42, 0.98));
}

.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--az-accent-purple), var(--az-accent-blue));
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(129, 140, 248, 0.6);
}

.top-nav-divider {
    width: 2px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 253, 0.7), transparent);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-nav-user {
    margin-top: -20px;
    font-size: 0.8rem;
    color: var(--az-text-muted);
    text-align: right;
    line-height: 1.2;
    margin-right: 8px;
}

.top-nav-user strong {
    color: #ffffff;
    font-weight: 600;
}

.nav-secondary {
    min-width: 130px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--az-text-muted);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.nav-secondary.primary {
    color: #f9fafb;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.35),
        0 16px 42px rgba(248, 113, 113, 0.55);
}

.nav-underline {
    margin-top: 10px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 253, 0.7), transparent);
}

main.content-area {
    margin-top: 26px;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.8);
}

.content-area h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--az-text-main);
}

.content-area p {
    color: var(--az-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.photo-quote {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ffffff;
    max-width: 360px;
    text-align: right;
    font-style: italic;
    line-height: 1.5;
}

.nav-logo {
    height: 150px;
    margin-left: 16px;
    opacity: 0.92;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
    transition: 0.2s ease;
}

.nav-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}



/* ========== opinie.html ========== */

.opinion-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .opinion-page-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.opinion-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.opinion-card {
    position: relative;
    flex: 0 0 300px;
    max-width: 300px;
    padding: 1.05rem 1.1rem 1.2rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle at top left, #1e293b, #020617);
    border: 1px solid rgba(148, 163, 253, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    overflow: hidden;
}

.opinion-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.opinion-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.opinion-author-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.opinion-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 253, 0.75);
}

.opinion-author-text {
    font-size: 0.78rem;
}

.poll-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0b1120;
    font-weight: 600;
    white-space: nowrap;
}

.opinion-card.poll-closed .poll-status-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #0b1120;
}

.poll-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 253, 0.65);
    margin-bottom: 0.65rem;
}

.poll-timer-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    color: #e5e7eb;
}

.poll-timer-value {
    font-weight: 700;
}

.opinion-description {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    max-height: 3.5rem;
    overflow: hidden;
}

.poll-vote-area {
    margin-bottom: 0.65rem;
}

.poll-vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.poll-vote-button {
    position: relative;
    border-radius: 1rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    animation: pulseGlow 2.4s infinite;
}

.poll-vote-button-yes {
    background: radial-gradient(circle at top left, #3b82f6, #6366f1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.poll-vote-button-no {
    background: radial-gradient(circle at top left, #ef4444, #b91c1c);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.55);
}

.poll-vote-button.voted {
    box-shadow: 0 0 26px rgba(250, 250, 250, 0.85);
    outline: 2px solid rgba(248, 250, 252, 0.85);
    outline-offset: 2px;
}

.poll-vote-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.6);
}

.poll-vote-button:active {
    transform: scale(0.97);
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
    50%  { box-shadow: 0 0 28px rgba(129,140,248,0.8); }
    100% { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
}

.poll-results-area {
    margin-bottom: 0.7rem;
}

.poll-results-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    height: 110px;
    padding: 0.45rem 0.55rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.poll-bar {
    position: relative;
    flex: 1;
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    height: 100%;
}

.poll-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(to top,  #3b82f6, #6366f1);
    transition: height 0.85s ease-out;
}

.poll-bar-no::after {
    background: linear-gradient(to top,  #ef4444, #b91c1c);
}

.poll-results-area.show-results .poll-bar::after {
    height: var(--fill, 0%);
}

.poll-results-text {
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

.poll-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.btn-outline-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border-width: 1px;
}

.btn-make-dialogue {
    margin-top: 0.55rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.opinion-side-panel {
    position: relative;
    max-width: 265px;
    border-radius: 1.3rem;
    padding: 1.2rem 1.3rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    justify-self: end;
}

.opinion-side-panel::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0),
        rgba(129, 140, 248, 0.9),
        rgba(236, 72, 153, 0)
    );
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.8);
}

.opinion-side-panel h5 {
    font-weight: 600;
}

.opinion-side-panel ul {
    padding-left: 1.1rem;
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.7rem;
}

.btn-poll-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-poll-main:hover{
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== view_blog.html ========== */

.blog-card h2,
.blog-sidebar-title,
.thread-sidebar-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-preview,
.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.blog-view-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 20px 24px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: rgba(156,163,175,0.9);
}

.blog-layout {
display: grid;
grid-template-columns: minmax(0, 0.95fr) 2px minmax(0, 0.6fr);
column-gap: 28px;
}

.blog-main {
    flex: 0 0 calc(100% - 360px - 8px - 2px);
    margin-right: -200px;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 260px;
    margin-left: auto;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );

    position: relative;
    left: 220px;
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-search-result {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-search-result:last-child { border-bottom: none; }

.blog-search-result-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-search-result-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.blog-thumb-sm {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 1.05rem;
}

.blog-thumb-sm .blog-thumb-img {
    width: 100%;
    height: 100%;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.blog-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.blog-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-divider {
        display: none;
    }
    .tts-controls {
        flex-wrap: wrap;
    }
    .tts-speed-wrapper {
        margin-left: 0;
    }
}



/* ===========================
   MOBILE/TABLET ONLY FIXES
   (Laptop/desktop verandert NIET)
   =========================== */

/* Tablet + mobiel (onder 992px) */
@media (max-width: 991.98px) {

  /* voorkom horizontale overflow op mobiel/tablet */
  html, body { overflow-x: hidden; }

  /* Maak de grote "container" (page-frame) compacter op mobiel/tablet */
  .page-frame {
    max-width: 100%;
    margin: 12px auto 24px auto;
    padding: 14px 16px 22px;
    border-radius: 22px;
  }

  /* Logo en top-nav compacter */
  .nav-logo {
    height: 92px;
    margin-left: 6px;
  }

  .top-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Tabs moeten op mobiel niet zo groot zijn */
  .nav-tab {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  /* Rechter knoppen (login/logout) compacter */
  .nav-secondary {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  /* Content iets minder "lucht" */
  main.content-area {
    margin-top: 18px;
  }

  .content-area h1 {
    font-size: 1rem;
  }

  /* ===== BLOG pagina ===== */
  .blog-layout {
    flex-direction: column;
  }

  .blog-divider {
    display: none;
  }

  .blog-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
  }

  /* Blog cards compacter (alleen container/padding) */
  .blog-card {
    padding: 12px 14px;
  }

  /* Thumbnail compacter op mobiel/tablet */
  .blog-thumb-large {
    width: 150px;
    height: 100px;
    margin-right: 12px;
    border-radius: 16px;
  }

  /* ===== DIALOOG pagina ===== */
  .dialogue-layout {
    flex-direction: column;
  }

  .dialogue-divider {
    display: none;
  }

  .dialogue-sidebar {
    max-width: 100%;
  }

  /* Dialoog cards compacter */
  .dialogue-card {
    padding: 10px 12px;
  }

  .dialogue-thumb {
    width: 100px;
    height: 100px;
  }

  /* ===== Thread pagina (dialoog_thread) ===== */
  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-divider {
    display: none;
  }

  .thread-sidebar {
    max-width: 100%;
    margin-left: 0;
  }

  .thread-card {
    padding: 14px 16px;
  }
}

/* Telefoon (onder 576px) */
@media (max-width: 575.98px) {

  .page-frame {
    margin: 10px auto 18px auto;
    padding: 12px 12px 18px;
    border-radius: 20px;
  }

  .nav-logo {
    height: 78px;
  }

  /* Tabs nog compacter */
  .nav-tab {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  /* Blog thumbnail nog compacter */
  .blog-thumb-large {
    width: 120px;
    height: 86px;
    margin-right: 10px;
    border-radius: 14px;
  }

  /* Dialoog thumbnail nog compacter */
  .dialogue-thumb {
    width: 92px;
    height: 92px;
  }

  /* Card paddings nog compacter */
  .blog-card {
    padding: 10px 12px;
  }

  .thread-card {
    padding: 12px 14px;
  }
}

/* =========================================================
   FIX: Blog + Dialoog alles binnen card, geen overlap, uitlijnen
   (wijzigt alleen layout-gedrag, niet je kleuren/looks)
   ========================================================= */

/* Zorg dat flex/grid children echt mogen krimpen (kritisch) */
.blog-card-main,
.blog-author-row,
.blog-layout,
.dialogue-layout,
.dialogue-thread-link,
.thread-layout,
.thread-main,
.dialogue-main {
  min-width: 0;
}

/* -------- BLOG -------- */

/* De blog card zelf mag nooit overflowen */
.blog-card {
  max-width: 100%;
  overflow: hidden;
}

/* Author row: avatar/meta links, knoppen rechts, en bij krapte netjes wrappen */
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
}

/* Knoppen-container: altijd binnen de card, naar rechts, mag wrappen */
.blog-action-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  justify-content: flex-end;
  max-width: 100%;
}

/* Knoppen: haal de “te brede” vaste sizing weg zodat het nooit buiten valt */
.blog-action-buttons .btn {
  min-width: 0 !important;  /* overschrijft jouw min-width:110px */
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 100%;
}

/* Thumbnail + tekst: nooit duwen buiten container */
.blog-card-main {
  flex: 1 1 auto;
  max-width: 100%;
}

.blog-snippet,
.blog-meta {
  min-width: 0;
  max-width: 100%;
}

/* -------- DIALOOG -------- */

/* Dialoog cards mogen niet overlappen/overflowen */
.dialogue-card {
  max-width: 100%;
  overflow: hidden;
}

/* De klikbare thread-link: laat tekst krimpen en houd alles binnen */
.dialogue-thread-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Thumb mag niet groeien; tekst mag wel krimpen */
.dialogue-thumb {
  flex-shrink: 0;
}

.dialogue-thread-title,
.dialogue-body-snippet,
.dialogue-author-line {
  min-width: 0;
  max-width: 100%;
}

/* Acties onderaan: netjes uitlijnen, geen overlap */
.dialogue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  max-width: 100%;
}

.dialogue-share-btn {
  margin-left: auto;        /* rechts */
  flex: 0 0 auto;
  max-width: 100%;
}

/* -------- Kleine schermen: thumbnails/knoppen iets compacter (alleen mobiel) -------- */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 140px;
    height: 92px;
    margin-right: 12px;
  }

  .blog-action-buttons .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .dialogue-thumb {
    width: 96px;
    height: 96px;
  }
}


/* =========================================================
   BLOG = EXACT ALS DIALOOG (Dialoog is leidend)
   Plak onderaan main.css zodat dit alles overschrijft.
   ========================================================= */

/* 1) Card stijl: blog-card exact gelijk aan dialogue-card */
.blog-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,253,0.5);
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
  border-radius: 16px;
  padding: 10px 14px;              /* EXACT dialoog-card */
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 20px 40px rgba(15,23,42,0.95),
              0 0 20px rgba(129,140,248,0.55);
}

/* 2) Thumbnail: blog-thumb-large exact gelijk aan dialogue-thumb */
.blog-thumb-large {
  width: 125px;                    /* EXACT dialoog-thumb */
  height: 125px;                   /* EXACT dialoog-thumb */
  border-radius: 12px;             /* EXACT dialoog-thumb */
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 12px;              /* dialoog spacing */
  padding: 0;                      /* dialoog-thumb heeft geen extra padding */
}

.blog-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) Avatar + author/meta regel: blog exact dialoog-author */
.blog-thumb-avatar {
  width: 38px;                     /* EXACT dialoog-author-avatar */
  height: 38px;                    /* EXACT dialoog-author-avatar */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;               /* dialoog avatar font */
  color: #e5e7eb;
  border: 1px solid rgba(148,163,253,0.7);
  margin-right: 10px;
}

.blog-thumb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog-meta exact dialoog-meta */
.blog-meta {
  font-size: 0.8rem;               /* EXACT dialoog-meta */
  color: rgba(156,163,175,0.9);
}

/* 4) Titel + snippet: gelijk trekken naar dialoog instellingen */
.blog-card h2,
.blog-card h3 {
  font-size: 1.05rem;              /* EXACT dialoog-thread-title */
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}

.blog-snippet {
  font-size: 0.9rem;               /* EXACT dialoog-body-snippet */
  color: rgba(209,213,219,0.9);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) Actions (onderaan): blog exact dialoog-actions */
.blog-actions {
  margin-top: 8px;                 /* EXACT dialoog-actions */
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(156,163,175,0.95);
  flex-wrap: wrap;
}

.blog-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* pills exact gelijk aan dialoog */
.blog-score-pill,
.blog-comments-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  text-decoration: none;
  color: inherit;
}

.blog-score-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #e5e7eb;
}

/* Share button exact dialoog-share-btn */
.blog-share-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.7);
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.blog-share-btn:hover {
  filter: brightness(1.08);
}

/* 6) Bewerken/verwijderen knoppen: zelfde “compacte” gedrag (geen overlap) */
.blog-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.blog-action-buttons .btn {
  min-width: 0 !important;
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* 7) Mobiel: blog-thumb-large exact mee met dialoog-thumb scaling */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    margin-right: 10px;
  }
}

.blog-author-name { font-weight: 600; }
.blog-author-meta { font-size: 0.78rem; color: rgba(156,163,175,0.9); }

/* =========================================================
   BLOG author FIX – naam vet + links uitgelijnd
   ========================================================= */

/* Hele author row netjes links uitlijnen */
.blog-author-row {
  display: flex;
  align-items: flex-start;   /* NIET center */
  gap: 10px;
}

/* Container van naam + datum */
.blog-author-row .blog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* <-- DIT miste */
  text-align: left;          /* <-- forceer links */
  gap: 2px;
  line-height: 1.2;
}

/* Naam: echt vet, niet overschrijfbaar */
.blog-author-row .blog-author-name {
  font-weight: 700 !important;   /* forceer vet */
  color: #e5e7eb;
}

/* Datum: kleinere subtiele regel */
.blog-author-row .blog-author-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(156,163,175,0.9);
}



@media (max-width: 991.98px) {

  /* BLOG container (card) exact als dialoog: zelfde padding */
  .blog-card {
    padding: 10px 14px !important;     /* dialoog-card */
  }

  /* BLOG thumbnail exact als dialoog-thumb */
  .blog-thumb-large {
    width: 125px !important;
    height: 125px !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
    padding: 0 !important;
  }

  /* voorkom dat elementen elkaar duwen op smal scherm */
  .blog-card .d-flex {
    min-width: 0;
  }
  .blog-card-main {
    min-width: 0;
  }
}





/* =========================================================
   MOBIEL: BLOG CARD = ZELFDE VOLLE BREEDTE ALS DIALOOG
   (Dialoog vult 100% -> blog moet hetzelfde)
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) De blog-card zelf moet 100% breed zijn */
  .blog-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) De buitenste rij in jouw blog-card (justify-content-between) moet ook 100% */
  .blog-card > .d-flex.justify-content-between {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 3) De link die de hele card clickable maakt moet 100% krijgen */
  .blog-card-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    display: block;
  }

  /* 4) De interne d-flex in de link moet kunnen krimpen */
  .blog-card-link > .d-flex {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 5) Tekstkolom mag krimpen (anders duwt thumb alles op) */
  .blog-card-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* 6) Knoppen (bewerken/verwijderen) niet rechts naast de link op mobiel
        -> zet ze onder de card zodat er NOOIT shrink-to-fit ontstaat */
  .blog-card > .d-flex.justify-content-between > .ms-3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}


/* =========================================================
   BLOG MOBILE FIX — maak blog exact zoals dialoog op mobiel/tablet
   (desktop blijft onaangeraakt)
   ========================================================= */

/* Tablet + mobiel */
@media (max-width: 991.98px) {

  /* Kritisch: voorkom dat grid/offset regels (uit view_blog blok) mobiel beïnvloeden */
  .blog-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .blog-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin-right: 0 !important;     /* <-- kill -200px */
  }

  .blog-divider {
    display: none !important;       /* net als dialoog */
    position: static !important;
    left: auto !important;
  }

  .blog-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin-left: 0 !important;
  }

  /* Zorg dat card nooit breder wordt dan scherm */
  .blog-card,
  .blog-card-link {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Heel belangrijk voor flex children: anders duwen lange tekst/knoppen alsnog buiten */
  .blog-card-main,
  .blog-author-row,
  .blog-meta,
  .blog-snippet {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Telefoon extra (optioneel, maar veilig) */
@media (max-width: 575.98px) {
  .blog-layout,
  .blog-main,
  .blog-sidebar,
  .blog-card,
  .blog-card-link {
    max-width: 100% !important;
  }
}


@media (max-width: 991.98px) {

  /* top bar: 1 rij, links logo, rechts menu */
  .top-nav{
    display: flex;
    flex-wrap: nowrap !important;     /* niet wrappen */
    align-items: center;
    justify-content: space-between;   /* duw links/rechts uit elkaar */
    gap: 0 !important;
  }

  /* zorg dat links echt links blijft en niet groeit */
  .top-nav-left{
    flex: 0 0 auto !important;
    gap: 10px;
    align-items: center;
  }

  /* het “menu” (tabs) naar rechts: jij gebruikt .top-nav-left voor tabs,
     dus we duwen de tabs naar rechts binnen die container */
  .top-nav-left{
    justify-content: flex-end;
  }

  /* logo blijft links, tabs rechts binnen dezelfde rij */
  .nav-logo{
    margin-right: auto !important;    /* <-- dit is je opvulling */
    margin-left: 0 !important;
  }

  /* divider weg op mobiel, anders breekt het vaak */
  .top-nav-divider{
    display: none !important;
  }

  /* rechter knoppen blijven rechts */
  .top-nav-right{
    flex: 0 0 auto !important;
    margin-left: 12px;
  }

  /* tabs compacter zodat ze op 1 rij passen */
  .nav-tab{
    padding: 10px 14px;
    font-size: 0.95rem;
    min-width: auto;
  }
}

/* ========== Admin.html ========== */

.admin-container {
    max-width: 1000px;
    color: #f9fafb;
}

.admin-card {
    background: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(56, 189, 248, 0.25);
    padding: 24px 26px 18px;
}

.admin-header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-header-sub {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.85);
}

.admin-search-input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    color: #e5e7eb;
}

.admin-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129, 140, 248, 0.6);
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #f9fafb;
}

.admin-table {
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    color: rgba(209, 213, 219, 0.9);
    padding-bottom: 0.35rem;
}

.admin-row {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.admin-row:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.95),
        0 0 20px rgba(129, 140, 248, 0.55);
}

.admin-table td {
    border-top: none;
    border-bottom: none;
    padding: 0.65rem 0.85rem;
    vertical-align: middle;
    color: #e5e7eb;
}

.admin-cell-id {
    width: 60px;
    font-size: 0.85rem;
    color: rgba(148, 163, 253, 0.9);
}

.admin-cell-username {
    font-weight: 500;
    font-size: 1rem;
}

.admin-cell-date {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    white-space: nowrap;
}

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.admin-details-btn {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    border-width: 1px;
}

.admin-no-roles {
    font-size: 0.8rem;
}



/* ========== blog.html ========== */

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 14px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.blog-thumb-large {
    width: 210px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px;
    margin-right: 18px;
}

.blog-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-thumb-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.blog-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-main {
    flex: 1;
    min-width: 0;
}

.blog-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.blog-main {
    flex: 1 1 auto;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 280px;
    margin-left: auto;
    margin-top: 4px;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;

    background: linear-gradient(135deg, #fb923c, #ec4899);
    border: 1px solid rgba(251, 146, 60, 0.8);

    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    margin-bottom: 12px;
    transition: 0.12s ease;
}

.blog-new-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.blog-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-divider {
        display: none;
    }
    .blog-main,
    .blog-sidebar {
        flex: 1 1 auto;
    }
}



/* ========== contact.html ========== */

.contact-page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-card {
    border-radius: 1.3rem;
    padding: 1.4rem 1.5rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.contact-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-details-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.contact-label {
    font-weight: 600;
    display: inline-block;
    min-width: 110px;
}

.text-xs {
    font-size: 0.75rem;
}

.contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 253, 0.5);
    color: #f9fafb;
}

.contact-form .form-control:focus {
    background-color: #020617;
    color: #f9fafb;
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.45);
}

.contact-form textarea {
    min-height: 150px;
}

.btn-contact-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-contact-main:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== dialoog_thread.html ========== */

.thread-media {
    max-width: 700px;
    width: 100%;
    margin: 16px auto 12px;
}

.thread-media img,
.thread-media video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.thread-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.thread-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 8px;
}

.comment-tree {
    margin-top: 10px;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.comment-vote form {
    margin: 0;
}

.comment-vote button {
    border: none;
    background: transparent;
    color: rgba(148,163,253,0.9);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comment-vote button:hover {
    color: #a855f7;
}

.comment-score {
    margin: 2px 0;
}

.comment-body-card {
    flex: 1;
    background: rgba(15,23,42,1);
    border-radius: 10px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 2px;
}

.comment-actions {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-actions a,
.comment-actions button.btn-link-like {
    color: rgba(148,163,253,0.9);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
}

.comment-actions a:hover,
.comment-actions button.btn-link-like:hover {
    text-decoration: underline;
}

.comment-children {
    margin-left: 26px;
    border-left: 1px solid rgba(55,65,81,0.8);
    padding-left: 10px;
    margin-top: 4px;
}

.reply-form {
    margin-top: 6px;
    margin-bottom: 10px;
}

.new-comment-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .comment-children {
        margin-left: 16px;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 2px minmax(0, 0.6fr);
    column-gap: 28px;
    align-items: flex-start;
    margin-top: 10px;
}

.thread-main {
    flex: 1 1 auto;
}

.thread-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
    position: relative;
    left: 5px;
}

.thread-sidebar {
    flex: 0 0 340px;
    max-width: 260px;
    margin-left: auto;
}

.thread-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.thread-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.thread-sidebar-item:last-child {
    border-bottom: none;
}

.thread-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.thread-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thread-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.thread-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.thread-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.thread-share-btn:hover {
    filter: brightness(1.08);
}


@media (max-width: 992px) {
    .thread-layout {
        grid-template-columns: 1fr;
    }
    .thread-divider {
        display: none;
    }
    .thread-sidebar {
        max-width: 100%;
    }
}

.blog-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-action-buttons form {
    margin: 0;
}

.blog-action-buttons .btn {
    min-width: 110px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}



/* ========== dialoog.html ========== */

.dialogue-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.dialogue-main {
    flex: 1 1 auto;
}

.dialogue-sidebar {
    flex: 0 0 340px;
    max-width: 340px;
    margin-left: auto;
    margin-top: 4px;
}

.dialogue-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 10px 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.dialogue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.dialogue-thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dialogue-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-body-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dialogue-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.dialogue-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.dialogue-thread-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dialogue-empty {
    font-size: 0.9rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.8);
    background: linear-gradient(135deg, #fb923c, #ec4899);
    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    text-decoration: none;
    margin-bottom: 10px;
}

.dialogue-new-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.dialogue-new-form-card {
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,253,0.6);
    box-shadow: 0 22px 60px rgba(15,23,42,0.9);
    border-radius: 18px;
    padding: 14px 18px;
    margin-top: 6px;
}

.dialogue-thumb {
    width: 125px;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.dialogue-thumb img,
.dialogue-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .dialogue-layout {
        flex-direction: column;
    }
    .dialogue-divider {
        display: none;
    }
    .dialogue-sidebar {
        max-width: 100%;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.dialogue-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.dialogue-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,253,0.7);
}

.dialogue-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialogue-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
}

.dialogue-author-meta {
    font-size: 0.78rem;
    color: rgba(156,163,175,0.9);
}


.dialogue-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.dialogue-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.dialogue-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.dialogue-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialogue-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.dialogue-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.dialogue-score-btn {
    border: none;
    background: transparent;
    padding: 0 4px;
    color: inherit;
    cursor: pointer;
}

.dialogue-score-btn:focus {
    outline: none;
}

.dialogue-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.dialogue-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.dialogue-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.dialogue-share-btn:hover {
    filter: brightness(1.08);
}



/* ========== index.html ========== */

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148,163,253,0.7);
}

.disabled-input {
    background-color: #1f2937 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}



/* ========== layout.html ========== */

:root {
    --az-bg-deep: #050315;
    --az-bg-panel: rgba(15, 23, 42, 0.94);
    --az-accent-purple: #a855f7;
    --az-accent-pink: #ec4899;
    --az-accent-blue: #38bdf8;
    --az-text-main: #f9fafb;
    --az-text-muted: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--az-text-main);

    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
        linear-gradient(135deg, #020617, #0b1024 40%, #020617 100%);
    background-attachment: scroll;
    background-size: cover;
}

.page-frame {
    max-width: 1400px;
    margin: 20px auto 40px auto;
    padding: 24px 40px 40px;
    border-radius: 32px;
    background: var(--az-bg-panel);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(56, 189, 248, 0.12);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
}

.top-nav-left {
    display: flex;
    gap: 18px;
    flex-grow: 1;
}

.nav-tab {
    min-width: 110px;
    text-align: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--az-text-muted);

    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(148, 163, 253, 0.35), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 253, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(165, 180, 252, 0.55), rgba(15, 23, 42, 0.98));
}

.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--az-accent-purple), var(--az-accent-blue));
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(129, 140, 248, 0.6);
}

.top-nav-divider {
    width: 2px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 253, 0.7), transparent);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-nav-user {
    margin-top: -20px;
    font-size: 0.8rem;
    color: var(--az-text-muted);
    text-align: right;
    line-height: 1.2;
    margin-right: 8px;
}

.top-nav-user strong {
    color: #ffffff;
    font-weight: 600;
}

.nav-secondary {
    min-width: 130px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--az-text-muted);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.nav-secondary.primary {
    color: #f9fafb;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.35),
        0 16px 42px rgba(248, 113, 113, 0.55);
}

.nav-underline {
    margin-top: 10px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 253, 0.7), transparent);
}

main.content-area {
    margin-top: 26px;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.8);
}

.content-area h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--az-text-main);
}

.content-area p {
    color: var(--az-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.photo-quote {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ffffff;
    max-width: 360px;
    text-align: right;
    font-style: italic;
    line-height: 1.5;
}

.nav-logo {
    height: 150px;
    margin-left: 16px;
    opacity: 0.92;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
    transition: 0.2s ease;
}

.nav-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}



/* ========== opinie.html ========== */

.opinion-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .opinion-page-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.opinion-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.opinion-card {
    position: relative;
    flex: 0 0 300px;
    max-width: 300px;
    padding: 1.05rem 1.1rem 1.2rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle at top left, #1e293b, #020617);
    border: 1px solid rgba(148, 163, 253, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    overflow: hidden;
}

.opinion-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.opinion-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.opinion-author-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.opinion-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 253, 0.75);
}

.opinion-author-text {
    font-size: 0.78rem;
}

.poll-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0b1120;
    font-weight: 600;
    white-space: nowrap;
}

.opinion-card.poll-closed .poll-status-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #0b1120;
}

.poll-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 253, 0.65);
    margin-bottom: 0.65rem;
}

.poll-timer-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    color: #e5e7eb;
}

.poll-timer-value {
    font-weight: 700;
}

.opinion-description {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    max-height: 3.5rem;
    overflow: hidden;
}

.poll-vote-area {
    margin-bottom: 0.65rem;
}

.poll-vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.poll-vote-button {
    position: relative;
    border-radius: 1rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    animation: pulseGlow 2.4s infinite;
}

.poll-vote-button-yes {
    background: radial-gradient(circle at top left, #3b82f6, #6366f1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.poll-vote-button-no {
    background: radial-gradient(circle at top left, #ef4444, #b91c1c);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.55);
}

.poll-vote-button.voted {
    box-shadow: 0 0 26px rgba(250, 250, 250, 0.85);
    outline: 2px solid rgba(248, 250, 252, 0.85);
    outline-offset: 2px;
}

.poll-vote-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.6);
}

.poll-vote-button:active {
    transform: scale(0.97);
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
    50%  { box-shadow: 0 0 28px rgba(129,140,248,0.8); }
    100% { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
}

.poll-results-area {
    margin-bottom: 0.7rem;
}

.poll-results-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    height: 110px;
    padding: 0.45rem 0.55rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.poll-bar {
    position: relative;
    flex: 1;
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    height: 100%;
}

.poll-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(to top,  #3b82f6, #6366f1);
    transition: height 0.85s ease-out;
}

.poll-bar-no::after {
    background: linear-gradient(to top,  #ef4444, #b91c1c);
}

.poll-results-area.show-results .poll-bar::after {
    height: var(--fill, 0%);
}

.poll-results-text {
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

.poll-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.btn-outline-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border-width: 1px;
}

.btn-make-dialogue {
    margin-top: 0.55rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.opinion-side-panel {
    position: relative;
    max-width: 265px;
    border-radius: 1.3rem;
    padding: 1.2rem 1.3rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    justify-self: end;
}

.opinion-side-panel::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0),
        rgba(129, 140, 248, 0.9),
        rgba(236, 72, 153, 0)
    );
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.8);
}

.opinion-side-panel h5 {
    font-weight: 600;
}

.opinion-side-panel ul {
    padding-left: 1.1rem;
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.7rem;
}

.btn-poll-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-poll-main:hover{
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== view_blog.html ========== */

.blog-card h2,
.blog-sidebar-title,
.thread-sidebar-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-preview,
.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.blog-view-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 20px 24px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: rgba(156,163,175,0.9);
}

.blog-layout {
display: grid;
grid-template-columns: minmax(0, 0.95fr) 2px minmax(0, 0.6fr);
column-gap: 28px;
}

.blog-main {
    flex: 0 0 calc(100% - 360px - 8px - 2px);
    margin-right: -200px;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 260px;
    margin-left: auto;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );

    position: relative;
    left: 220px;
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-search-result {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-search-result:last-child { border-bottom: none; }

.blog-search-result-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-search-result-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.blog-thumb-sm {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 1.05rem;
}

.blog-thumb-sm .blog-thumb-img {
    width: 100%;
    height: 100%;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.blog-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.blog-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-divider {
        display: none;
    }
    .tts-controls {
        flex-wrap: wrap;
    }
    .tts-speed-wrapper {
        margin-left: 0;
    }
}



/* ===========================
   MOBILE/TABLET ONLY FIXES
   (Laptop/desktop verandert NIET)
   =========================== */

/* Tablet + mobiel (onder 992px) */
@media (max-width: 991.98px) {

  /* voorkom horizontale overflow op mobiel/tablet */
  html, body { overflow-x: hidden; }

  /* Maak de grote "container" (page-frame) compacter op mobiel/tablet */
  .page-frame {
    max-width: 100%;
    margin: 12px auto 24px auto;
    padding: 14px 16px 22px;
    border-radius: 22px;
  }

  /* Logo en top-nav compacter */
  .nav-logo {
    height: 92px;
    margin-left: 6px;
  }

  .top-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Tabs moeten op mobiel niet zo groot zijn */
  .nav-tab {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  /* Rechter knoppen (login/logout) compacter */
  .nav-secondary {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  /* Content iets minder "lucht" */
  main.content-area {
    margin-top: 18px;
  }

  .content-area h1 {
    font-size: 1rem;
  }

  /* ===== BLOG pagina ===== */
  .blog-layout {
    flex-direction: column;
  }

  .blog-divider {
    display: none;
  }

  .blog-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
  }

  /* Blog cards compacter (alleen container/padding) */
  .blog-card {
    padding: 12px 14px;
  }

  /* Thumbnail compacter op mobiel/tablet */
  .blog-thumb-large {
    width: 150px;
    height: 100px;
    margin-right: 12px;
    border-radius: 16px;
  }

  /* ===== DIALOOG pagina ===== */
  .dialogue-layout {
    flex-direction: column;
  }

  .dialogue-divider {
    display: none;
  }

  .dialogue-sidebar {
    max-width: 100%;
  }

  /* Dialoog cards compacter */
  .dialogue-card {
    padding: 10px 12px;
  }

  .dialogue-thumb {
    width: 100px;
    height: 100px;
  }

  /* ===== Thread pagina (dialoog_thread) ===== */
  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-divider {
    display: none;
  }

  .thread-sidebar {
    max-width: 100%;
    margin-left: 0;
  }

  .thread-card {
    padding: 14px 16px;
  }
}

/* Telefoon (onder 576px) */
@media (max-width: 575.98px) {

  .page-frame {
    margin: 10px auto 18px auto;
    padding: 12px 12px 18px;
    border-radius: 20px;
  }

  .nav-logo {
    height: 78px;
  }

  /* Tabs nog compacter */
  .nav-tab {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  /* Blog thumbnail nog compacter */
  .blog-thumb-large {
    width: 120px;
    height: 86px;
    margin-right: 10px;
    border-radius: 14px;
  }

  /* Dialoog thumbnail nog compacter */
  .dialogue-thumb {
    width: 92px;
    height: 92px;
  }

  /* Card paddings nog compacter */
  .blog-card {
    padding: 10px 12px;
  }

  .thread-card {
    padding: 12px 14px;
  }
}

/* =========================================================
   FIX: Blog + Dialoog alles binnen card, geen overlap, uitlijnen
   (wijzigt alleen layout-gedrag, niet je kleuren/looks)
   ========================================================= */

/* Zorg dat flex/grid children echt mogen krimpen (kritisch) */
.blog-card-main,
.blog-author-row,
.blog-layout,
.dialogue-layout,
.dialogue-thread-link,
.thread-layout,
.thread-main,
.dialogue-main {
  min-width: 0;
}

/* -------- BLOG -------- */

/* De blog card zelf mag nooit overflowen */
.blog-card {
  max-width: 100%;
  overflow: hidden;
}

/* Author row: avatar/meta links, knoppen rechts, en bij krapte netjes wrappen */
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
}

/* Knoppen-container: altijd binnen de card, naar rechts, mag wrappen */
.blog-action-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  justify-content: flex-end;
  max-width: 100%;
}

/* Knoppen: haal de “te brede” vaste sizing weg zodat het nooit buiten valt */
.blog-action-buttons .btn {
  min-width: 0 !important;  /* overschrijft jouw min-width:110px */
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 100%;
}

/* Thumbnail + tekst: nooit duwen buiten container */
.blog-card-main {
  flex: 1 1 auto;
  max-width: 100%;
}

.blog-snippet,
.blog-meta {
  min-width: 0;
  max-width: 100%;
}

/* -------- DIALOOG -------- */

/* Dialoog cards mogen niet overlappen/overflowen */
.dialogue-card {
  max-width: 100%;
  overflow: hidden;
}

/* De klikbare thread-link: laat tekst krimpen en houd alles binnen */
.dialogue-thread-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Thumb mag niet groeien; tekst mag wel krimpen */
.dialogue-thumb {
  flex-shrink: 0;
}

.dialogue-thread-title,
.dialogue-body-snippet,
.dialogue-author-line {
  min-width: 0;
  max-width: 100%;
}

/* Acties onderaan: netjes uitlijnen, geen overlap */
.dialogue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  max-width: 100%;
}

.dialogue-share-btn {
  margin-left: auto;        /* rechts */
  flex: 0 0 auto;
  max-width: 100%;
}

/* -------- Kleine schermen: thumbnails/knoppen iets compacter (alleen mobiel) -------- */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 140px;
    height: 92px;
    margin-right: 12px;
  }

  .blog-action-buttons .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .dialogue-thumb {
    width: 96px;
    height: 96px;
  }
}


/* =========================================================
   BLOG = EXACT ALS DIALOOG (Dialoog is leidend)
   Plak onderaan main.css zodat dit alles overschrijft.
   ========================================================= */

/* 1) Card stijl: blog-card exact gelijk aan dialogue-card */
.blog-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,253,0.5);
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
  border-radius: 16px;
  padding: 10px 14px;              /* EXACT dialoog-card */
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 20px 40px rgba(15,23,42,0.95),
              0 0 20px rgba(129,140,248,0.55);
}

/* 2) Thumbnail: blog-thumb-large exact gelijk aan dialogue-thumb */
.blog-thumb-large {
  width: 125px;                    /* EXACT dialoog-thumb */
  height: 125px;                   /* EXACT dialoog-thumb */
  border-radius: 12px;             /* EXACT dialoog-thumb */
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 12px;              /* dialoog spacing */
  padding: 0;                      /* dialoog-thumb heeft geen extra padding */
}

.blog-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) Avatar + author/meta regel: blog exact dialoog-author */
.blog-thumb-avatar {
  width: 38px;                     /* EXACT dialoog-author-avatar */
  height: 38px;                    /* EXACT dialoog-author-avatar */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;               /* dialoog avatar font */
  color: #e5e7eb;
  border: 1px solid rgba(148,163,253,0.7);
  margin-right: 10px;
}

.blog-thumb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog-meta exact dialoog-meta */
.blog-meta {
  font-size: 0.8rem;               /* EXACT dialoog-meta */
  color: rgba(156,163,175,0.9);
}

/* 4) Titel + snippet: gelijk trekken naar dialoog instellingen */
.blog-card h2,
.blog-card h3 {
  font-size: 1.05rem;              /* EXACT dialoog-thread-title */
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}

.blog-snippet {
  font-size: 0.9rem;               /* EXACT dialoog-body-snippet */
  color: rgba(209,213,219,0.9);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) Actions (onderaan): blog exact dialoog-actions */
.blog-actions {
  margin-top: 8px;                 /* EXACT dialoog-actions */
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(156,163,175,0.95);
  flex-wrap: wrap;
}

.blog-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* pills exact gelijk aan dialoog */
.blog-score-pill,
.blog-comments-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  text-decoration: none;
  color: inherit;
}

.blog-score-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #e5e7eb;
}

/* Share button exact dialoog-share-btn */
.blog-share-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.7);
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.blog-share-btn:hover {
  filter: brightness(1.08);
}

/* 6) Bewerken/verwijderen knoppen: zelfde “compacte” gedrag (geen overlap) */
.blog-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.blog-action-buttons .btn {
  min-width: 0 !important;
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* 7) Mobiel: blog-thumb-large exact mee met dialoog-thumb scaling */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    margin-right: 10px;
  }
}

.blog-author-name { font-weight: 600; }
.blog-author-meta { font-size: 0.78rem; color: rgba(156,163,175,0.9); }

/* =========================================================
   BLOG author FIX – naam vet + links uitgelijnd
   ========================================================= */

/* Hele author row netjes links uitlijnen */
.blog-author-row {
  display: flex;
  align-items: flex-start;   /* NIET center */
  gap: 10px;
}

/* Container van naam + datum */
.blog-author-row .blog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* <-- DIT miste */
  text-align: left;          /* <-- forceer links */
  gap: 2px;
  line-height: 1.2;
}

/* Naam: echt vet, niet overschrijfbaar */
.blog-author-row .blog-author-name {
  font-weight: 700 !important;   /* forceer vet */
  color: #e5e7eb;
}

/* Datum: kleinere subtiele regel */
.blog-author-row .blog-author-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(156,163,175,0.9);
}



@media (max-width: 991.98px) {

  /* BLOG container (card) exact als dialoog: zelfde padding */
  .blog-card {
    padding: 10px 14px !important;     /* dialoog-card */
  }

  /* BLOG thumbnail exact als dialoog-thumb */
  .blog-thumb-large {
    width: 125px !important;
    height: 125px !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
    padding: 0 !important;
  }

  /* voorkom dat elementen elkaar duwen op smal scherm */
  .blog-card .d-flex {
    min-width: 0;
  }
  .blog-card-main {
    min-width: 0;
  }
}





/* =========================================================
   MOBIEL: BLOG CARD = ZELFDE VOLLE BREEDTE ALS DIALOOG
   (Dialoog vult 100% -> blog moet hetzelfde)
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) De blog-card zelf moet 100% breed zijn */
  .blog-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) De buitenste rij in jouw blog-card (justify-content-between) moet ook 100% */
  .blog-card > .d-flex.justify-content-between {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 3) De link die de hele card clickable maakt moet 100% krijgen */
  .blog-card-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    display: block;
  }

  /* 4) De interne d-flex in de link moet kunnen krimpen */
  .blog-card-link > .d-flex {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 5) Tekstkolom mag krimpen (anders duwt thumb alles op) */
  .blog-card-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* 6) Knoppen (bewerken/verwijderen) niet rechts naast de link op mobiel
        -> zet ze onder de card zodat er NOOIT shrink-to-fit ontstaat */
  .blog-card > .d-flex.justify-content-between > .ms-3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}


/* =====================================================
   MOBIEL/TABLET: hamburger/dropdown ALTIJD rechts
   (werkt ook als hij in Bootstrap navbar zit)
   ===================================================== */
@media (max-width: 991.98px) {

  /* top-nav blijft 1 rij */
  .top-nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    width:100% !important;
  }

  /* logo links, mag niet duwen */
  .nav-logo{
    flex:0 0 auto !important;
    max-width:60vw !important;
  }

  /* als je een rechter container hebt: die naar rechts */
  .top-nav-right{
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex:0 0 auto !important;
    width:auto !important;
  }

  /* BOOTSTRAP FIX: navbar wrappers moeten ook flex zijn */
  .top-nav .navbar,
  .top-nav .container,
  .top-nav .container-fluid{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
  }

  /* DE ECHTE FORCE: alle toggles/collapse/dropdown buttons naar rechts */
  .top-nav .navbar-toggler,
  .top-nav .dropdown-toggle,
  .top-nav [data-bs-toggle="collapse"],
  .top-nav [data-bs-toggle="dropdown"]{
    margin-left:auto !important;
    display:inline-flex !important;
  }

  /* ALS HIJ NOG STEEDS LINKS PLAAKT: absolute “no mercy” */
  .top-nav{
    position:relative !important;
  }
  .top-nav .navbar-toggler,
  .top-nav .dropdown-toggle,
  .top-nav [data-bs-toggle="collapse"],
  .top-nav [data-bs-toggle="dropdown"]{
    position:absolute !important;
    right:12px !important;
    top:12px !important;
  }
}



/* =====================================================
   MOBIEL/TABLET: verberg desktop login / register
   ===================================================== */
@media (max-width: 991.98px) {

  /* Registreren + Inloggen knoppen */
  .top-nav-right .nav-secondary {
    display: none !important;
  }

  /* Ingelogd-als blok (username + knoppen) */
  .top-nav-right .top-nav-user {
    display: none !important;
  }
}




/* =====================================================
   MOBIEL/TABLET: filler EXACT tussen logo en menu
   (geen duwen, geen gokken)
   ===================================================== */
@media (max-width: 991.98px) {

  .top-nav{
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100%;
  }

  /* logo links */
  .nav-logo{
    flex: 0 0 auto;
  }

  /* menu rechts */
  .top-nav-right{
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  /* exacte filler */
  .top-nav::after{
    content: "";
    position: absolute;

    /* start NA logo */
    left: calc(
      var(--mobile-logo-offset, 92px) + 18px
    );

    /* stop VOOR menu */
    right: calc(
      var(--mobile-menu-offset, 44px) + 18px
    );

    top: 50%;
    transform: translateY(-50%);

    height: 2px;
    border-radius: 999px;

    background: linear-gradient(
      to right,
      rgba(168,85,247,0.0),
      rgba(129,140,248,0.9),
      rgba(56,189,248,0.7),
      rgba(236,72,153,0.6),
      rgba(168,85,247,0.0)
    );

    box-shadow:
      0 0 10px rgba(129,140,248,0.45),
      0 0 18px rgba(236,72,153,0.25);

    opacity: 0.9;
    pointer-events: none;
  }
}


@media (max-width: 991.98px) {
  .top-nav::after {
    transform: translateX(-20px);
  }
}



/* ===========================
   FIX: Blog card header (avatar/naam/datum + knoppen)
   Voorkomt letter-per-letter tekst door te smalle kolom
   (alleen < 992px, alleen blog)
   =========================== */
@media (max-width: 991.98px) {

  /* De hele card mag wrappen maar behoudt structuur */
  .blog-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Thumbnail blijft links, maar iets kleiner */
  .blog-thumb-large {
    width: 140px;
    height: 96px;
    margin-right: 0; /* gap regelt spacing */
    flex: 0 0 auto;
  }

  /* Tekstkolom krijgt altijd echte ruimte */
  .blog-card-main {
    flex: 1 1 260px;
    min-width: 240px; /* <— dit voorkomt de “verticale letters” */
  }

  /* BELANGRIJK: author-row niet meer flex met knoppen naast tekst,
     maar grid met knoppen op eigen regel */
  .blog-author-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
  }

  /* Avatar linksboven */
  .blog-thumb-avatar {
    grid-column: 1;
    grid-row: 1;
  }

  /* Naam/datum krijgt breedte en mag netjes wrappen/ellipsen */
  .blog-meta {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Knoppen altijd op nieuwe regel over volle breedte */
  .blog-action-buttons {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Knoppen iets compacter */
  .blog-action-buttons .btn {
    min-width: 96px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.75rem;
    border-radius: 999px;
  }
}

/* Telefoon: nog net iets compacter */
@media (max-width: 575.98px) {
  .blog-card-main { min-width: 200px; }
  .blog-thumb-large { width: 120px; height: 86px; }
  .blog-action-buttons .btn { min-width: 90px; height: 30px; font-size: 0.72rem; }
}

/* ========== Admin.html ========== */

.admin-container {
    max-width: 1000px;
    color: #f9fafb;
}

.admin-card {
    background: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(56, 189, 248, 0.25);
    padding: 24px 26px 18px;
}

.admin-header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-header-sub {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.85);
}

.admin-search-input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    color: #e5e7eb;
}

.admin-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129, 140, 248, 0.6);
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #f9fafb;
}

.admin-table {
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    color: rgba(209, 213, 219, 0.9);
    padding-bottom: 0.35rem;
}

.admin-row {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.admin-row:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.95),
        0 0 20px rgba(129, 140, 248, 0.55);
}

.admin-table td {
    border-top: none;
    border-bottom: none;
    padding: 0.65rem 0.85rem;
    vertical-align: middle;
    color: #e5e7eb;
}

.admin-cell-id {
    width: 60px;
    font-size: 0.85rem;
    color: rgba(148, 163, 253, 0.9);
}

.admin-cell-username {
    font-weight: 500;
    font-size: 1rem;
}

.admin-cell-date {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    white-space: nowrap;
}

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.admin-details-btn {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    border-width: 1px;
}

.admin-no-roles {
    font-size: 0.8rem;
}



/* ========== blog.html ========== */

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 14px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.blog-thumb-large {
    width: 210px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px;
    margin-right: 18px;
}

.blog-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-thumb-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.blog-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-main {
    flex: 1;
    min-width: 0;
}

.blog-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.blog-main {
    flex: 1 1 auto;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 280px;
    margin-left: auto;
    margin-top: 4px;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;

    background: linear-gradient(135deg, #fb923c, #ec4899);
    border: 1px solid rgba(251, 146, 60, 0.8);

    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    margin-bottom: 12px;
    transition: 0.12s ease;
}

.blog-new-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.blog-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-divider {
        display: none;
    }
    .blog-main,
    .blog-sidebar {
        flex: 1 1 auto;
    }
}



/* ========== contact.html ========== */

.contact-page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-card {
    border-radius: 1.3rem;
    padding: 1.4rem 1.5rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.contact-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-details-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.contact-label {
    font-weight: 600;
    display: inline-block;
    min-width: 110px;
}

.text-xs {
    font-size: 0.75rem;
}

.contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 253, 0.5);
    color: #f9fafb;
}

.contact-form .form-control:focus {
    background-color: #020617;
    color: #f9fafb;
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.45);
}

.contact-form textarea {
    min-height: 150px;
}

.btn-contact-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-contact-main:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== dialoog_thread.html ========== */

.thread-media {
    max-width: 700px;
    width: 100%;
    margin: 16px auto 12px;
}

.thread-media img,
.thread-media video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.thread-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.thread-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 8px;
}

.comment-tree {
    margin-top: 10px;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.comment-vote form {
    margin: 0;
}

.comment-vote button {
    border: none;
    background: transparent;
    color: rgba(148,163,253,0.9);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comment-vote button:hover {
    color: #a855f7;
}

.comment-score {
    margin: 2px 0;
}

.comment-body-card {
    flex: 1;
    background: rgba(15,23,42,1);
    border-radius: 10px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 2px;
}

.comment-actions {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-actions a,
.comment-actions button.btn-link-like {
    color: rgba(148,163,253,0.9);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
}

.comment-actions a:hover,
.comment-actions button.btn-link-like:hover {
    text-decoration: underline;
}

.comment-children {
    margin-left: 26px;
    border-left: 1px solid rgba(55,65,81,0.8);
    padding-left: 10px;
    margin-top: 4px;
}

.reply-form {
    margin-top: 6px;
    margin-bottom: 10px;
}

.new-comment-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .comment-children {
        margin-left: 16px;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 2px minmax(0, 0.6fr);
    column-gap: 28px;
    align-items: flex-start;
    margin-top: 10px;
}

.thread-main {
    flex: 1 1 auto;
}

.thread-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
    position: relative;
    left: 5px;
}

.thread-sidebar {
    flex: 0 0 340px;
    max-width: 260px;
    margin-left: auto;
}

.thread-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.thread-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.thread-sidebar-item:last-child {
    border-bottom: none;
}

.thread-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.thread-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thread-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.thread-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.thread-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.thread-share-btn:hover {
    filter: brightness(1.08);
}


@media (max-width: 992px) {
    .thread-layout {
        grid-template-columns: 1fr;
    }
    .thread-divider {
        display: none;
    }
    .thread-sidebar {
        max-width: 100%;
    }
}

.blog-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-action-buttons form {
    margin: 0;
}

.blog-action-buttons .btn {
    min-width: 110px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}



/* ========== dialoog.html ========== */

.dialogue-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.dialogue-main {
    flex: 1 1 auto;
}

.dialogue-sidebar {
    flex: 0 0 340px;
    max-width: 340px;
    margin-left: auto;
    margin-top: 4px;
}

.dialogue-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 10px 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.dialogue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.dialogue-thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dialogue-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-body-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dialogue-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.dialogue-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.dialogue-thread-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dialogue-empty {
    font-size: 0.9rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.8);
    background: linear-gradient(135deg, #fb923c, #ec4899);
    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    text-decoration: none;
    margin-bottom: 10px;
}

.dialogue-new-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.dialogue-new-form-card {
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,253,0.6);
    box-shadow: 0 22px 60px rgba(15,23,42,0.9);
    border-radius: 18px;
    padding: 14px 18px;
    margin-top: 6px;
}

.dialogue-thumb {
    width: 125px;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.dialogue-thumb img,
.dialogue-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .dialogue-layout {
        flex-direction: column;
    }
    .dialogue-divider {
        display: none;
    }
    .dialogue-sidebar {
        max-width: 100%;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.dialogue-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.dialogue-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,253,0.7);
}

.dialogue-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialogue-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
}

.dialogue-author-meta {
    font-size: 0.78rem;
    color: rgba(156,163,175,0.9);
}


.dialogue-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.dialogue-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.dialogue-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.dialogue-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialogue-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.dialogue-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.dialogue-score-btn {
    border: none;
    background: transparent;
    padding: 0 4px;
    color: inherit;
    cursor: pointer;
}

.dialogue-score-btn:focus {
    outline: none;
}

.dialogue-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.dialogue-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.dialogue-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.dialogue-share-btn:hover {
    filter: brightness(1.08);
}



/* ========== index.html ========== */

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148,163,253,0.7);
}

.disabled-input {
    background-color: #1f2937 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}



/* ========== layout.html ========== */

:root {
    --az-bg-deep: #050315;
    --az-bg-panel: rgba(15, 23, 42, 0.94);
    --az-accent-purple: #a855f7;
    --az-accent-pink: #ec4899;
    --az-accent-blue: #38bdf8;
    --az-text-main: #f9fafb;
    --az-text-muted: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--az-text-main);

    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
        linear-gradient(135deg, #020617, #0b1024 40%, #020617 100%);
    background-attachment: scroll;
    background-size: cover;
}

.page-frame {
    max-width: 1400px;
    margin: 20px auto 40px auto;
    padding: 24px 40px 40px;
    border-radius: 32px;
    background: var(--az-bg-panel);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(56, 189, 248, 0.12);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
}

.top-nav-left {
    display: flex;
    gap: 18px;
    flex-grow: 1;
}

.nav-tab {
    min-width: 110px;
    text-align: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--az-text-muted);

    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(148, 163, 253, 0.35), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 253, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(165, 180, 252, 0.55), rgba(15, 23, 42, 0.98));
}

.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--az-accent-purple), var(--az-accent-blue));
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(129, 140, 248, 0.6);
}

.top-nav-divider {
    width: 2px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 253, 0.7), transparent);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-nav-user {
    margin-top: -20px;
    font-size: 0.8rem;
    color: var(--az-text-muted);
    text-align: right;
    line-height: 1.2;
    margin-right: 8px;
}

.top-nav-user strong {
    color: #ffffff;
    font-weight: 600;
}

.nav-secondary {
    min-width: 130px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--az-text-muted);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.nav-secondary.primary {
    color: #f9fafb;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.35),
        0 16px 42px rgba(248, 113, 113, 0.55);
}

.nav-underline {
    margin-top: 10px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 253, 0.7), transparent);
}

main.content-area {
    margin-top: 26px;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.8);
}

.content-area h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--az-text-main);
}

.content-area p {
    color: var(--az-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.photo-quote {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ffffff;
    max-width: 360px;
    text-align: right;
    font-style: italic;
    line-height: 1.5;
}

.nav-logo {
    height: 150px;
    margin-left: 16px;
    opacity: 0.92;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
    transition: 0.2s ease;
}

.nav-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}



/* ========== opinie.html ========== */

.opinion-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .opinion-page-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.opinion-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.opinion-card {
    position: relative;
    flex: 0 0 300px;
    max-width: 300px;
    padding: 1.05rem 1.1rem 1.2rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle at top left, #1e293b, #020617);
    border: 1px solid rgba(148, 163, 253, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    overflow: hidden;
}

.opinion-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.opinion-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.opinion-author-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.opinion-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 253, 0.75);
}

.opinion-author-text {
    font-size: 0.78rem;
}

.poll-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0b1120;
    font-weight: 600;
    white-space: nowrap;
}

.opinion-card.poll-closed .poll-status-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #0b1120;
}

.poll-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 253, 0.65);
    margin-bottom: 0.65rem;
}

.poll-timer-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    color: #e5e7eb;
}

.poll-timer-value {
    font-weight: 700;
}

.opinion-description {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    max-height: 3.5rem;
    overflow: hidden;
}

.poll-vote-area {
    margin-bottom: 0.65rem;
}

.poll-vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.poll-vote-button {
    position: relative;
    border-radius: 1rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    animation: pulseGlow 2.4s infinite;
}

.poll-vote-button-yes {
    background: radial-gradient(circle at top left, #3b82f6, #6366f1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.poll-vote-button-no {
    background: radial-gradient(circle at top left, #ef4444, #b91c1c);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.55);
}

.poll-vote-button.voted {
    box-shadow: 0 0 26px rgba(250, 250, 250, 0.85);
    outline: 2px solid rgba(248, 250, 252, 0.85);
    outline-offset: 2px;
}

.poll-vote-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.6);
}

.poll-vote-button:active {
    transform: scale(0.97);
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
    50%  { box-shadow: 0 0 28px rgba(129,140,248,0.8); }
    100% { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
}

.poll-results-area {
    margin-bottom: 0.7rem;
}

.poll-results-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    height: 110px;
    padding: 0.45rem 0.55rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.poll-bar {
    position: relative;
    flex: 1;
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    height: 100%;
}

.poll-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(to top,  #3b82f6, #6366f1);
    transition: height 0.85s ease-out;
}

.poll-bar-no::after {
    background: linear-gradient(to top,  #ef4444, #b91c1c);
}

.poll-results-area.show-results .poll-bar::after {
    height: var(--fill, 0%);
}

.poll-results-text {
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

.poll-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.btn-outline-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border-width: 1px;
}

.btn-make-dialogue {
    margin-top: 0.55rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.opinion-side-panel {
    position: relative;
    max-width: 265px;
    border-radius: 1.3rem;
    padding: 1.2rem 1.3rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    justify-self: end;
}

.opinion-side-panel::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0),
        rgba(129, 140, 248, 0.9),
        rgba(236, 72, 153, 0)
    );
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.8);
}

.opinion-side-panel h5 {
    font-weight: 600;
}

.opinion-side-panel ul {
    padding-left: 1.1rem;
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.7rem;
}

.btn-poll-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-poll-main:hover{
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== view_blog.html ========== */

.blog-card h2,
.blog-sidebar-title,
.thread-sidebar-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-preview,
.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.blog-view-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 20px 24px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: rgba(156,163,175,0.9);
}

.blog-layout {
display: grid;
grid-template-columns: minmax(0, 0.95fr) 2px minmax(0, 0.6fr);
column-gap: 28px;
}

.blog-main {
    flex: 0 0 calc(100% - 360px - 8px - 2px);
    margin-right: -200px;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 260px;
    margin-left: auto;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );

    position: relative;
    left: 220px;
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-search-result {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-search-result:last-child { border-bottom: none; }

.blog-search-result-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-search-result-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.blog-thumb-sm {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 1.05rem;
}

.blog-thumb-sm .blog-thumb-img {
    width: 100%;
    height: 100%;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.blog-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.blog-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-divider {
        display: none;
    }
    .tts-controls {
        flex-wrap: wrap;
    }
    .tts-speed-wrapper {
        margin-left: 0;
    }
}



/* ===========================
   MOBILE/TABLET ONLY FIXES
   (Laptop/desktop verandert NIET)
   =========================== */

/* Tablet + mobiel (onder 992px) */
@media (max-width: 991.98px) {

  /* voorkom horizontale overflow op mobiel/tablet */
  html, body { overflow-x: hidden; }

  /* Maak de grote "container" (page-frame) compacter op mobiel/tablet */
  .page-frame {
    max-width: 100%;
    margin: 12px auto 24px auto;
    padding: 14px 16px 22px;
    border-radius: 22px;
  }

  /* Logo en top-nav compacter */
  .nav-logo {
    height: 92px;
    margin-left: 6px;
  }

  .top-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Tabs moeten op mobiel niet zo groot zijn */
  .nav-tab {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  /* Rechter knoppen (login/logout) compacter */
  .nav-secondary {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  /* Content iets minder "lucht" */
  main.content-area {
    margin-top: 18px;
  }

  .content-area h1 {
    font-size: 1rem;
  }

  /* ===== BLOG pagina ===== */
  .blog-layout {
    flex-direction: column;
  }

  .blog-divider {
    display: none;
  }

  .blog-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
  }

  /* Blog cards compacter (alleen container/padding) */
  .blog-card {
    padding: 12px 14px;
  }

  /* Thumbnail compacter op mobiel/tablet */
  .blog-thumb-large {
    width: 150px;
    height: 100px;
    margin-right: 12px;
    border-radius: 16px;
  }

  /* ===== DIALOOG pagina ===== */
  .dialogue-layout {
    flex-direction: column;
  }

  .dialogue-divider {
    display: none;
  }

  .dialogue-sidebar {
    max-width: 100%;
  }

  /* Dialoog cards compacter */
  .dialogue-card {
    padding: 10px 12px;
  }

  .dialogue-thumb {
    width: 100px;
    height: 100px;
  }

  /* ===== Thread pagina (dialoog_thread) ===== */
  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-divider {
    display: none;
  }

  .thread-sidebar {
    max-width: 100%;
    margin-left: 0;
  }

  .thread-card {
    padding: 14px 16px;
  }
}

/* Telefoon (onder 576px) */
@media (max-width: 575.98px) {

  .page-frame {
    margin: 10px auto 18px auto;
    padding: 12px 12px 18px;
    border-radius: 20px;
  }

  .nav-logo {
    height: 78px;
  }

  /* Tabs nog compacter */
  .nav-tab {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  /* Blog thumbnail nog compacter */
  .blog-thumb-large {
    width: 120px;
    height: 86px;
    margin-right: 10px;
    border-radius: 14px;
  }

  /* Dialoog thumbnail nog compacter */
  .dialogue-thumb {
    width: 92px;
    height: 92px;
  }

  /* Card paddings nog compacter */
  .blog-card {
    padding: 10px 12px;
  }

  .thread-card {
    padding: 12px 14px;
  }
}

/* =========================================================
   FIX: Blog + Dialoog alles binnen card, geen overlap, uitlijnen
   (wijzigt alleen layout-gedrag, niet je kleuren/looks)
   ========================================================= */

/* Zorg dat flex/grid children echt mogen krimpen (kritisch) */
.blog-card-main,
.blog-author-row,
.blog-layout,
.dialogue-layout,
.dialogue-thread-link,
.thread-layout,
.thread-main,
.dialogue-main {
  min-width: 0;
}

/* -------- BLOG -------- */

/* De blog card zelf mag nooit overflowen */
.blog-card {
  max-width: 100%;
  overflow: hidden;
}

/* Author row: avatar/meta links, knoppen rechts, en bij krapte netjes wrappen */
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
}

/* Knoppen-container: altijd binnen de card, naar rechts, mag wrappen */
.blog-action-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  justify-content: flex-end;
  max-width: 100%;
}

/* Knoppen: haal de “te brede” vaste sizing weg zodat het nooit buiten valt */
.blog-action-buttons .btn {
  min-width: 0 !important;  /* overschrijft jouw min-width:110px */
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 100%;
}

/* Thumbnail + tekst: nooit duwen buiten container */
.blog-card-main {
  flex: 1 1 auto;
  max-width: 100%;
}

.blog-snippet,
.blog-meta {
  min-width: 0;
  max-width: 100%;
}

/* -------- DIALOOG -------- */

/* Dialoog cards mogen niet overlappen/overflowen */
.dialogue-card {
  max-width: 100%;
  overflow: hidden;
}

/* De klikbare thread-link: laat tekst krimpen en houd alles binnen */
.dialogue-thread-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Thumb mag niet groeien; tekst mag wel krimpen */
.dialogue-thumb {
  flex-shrink: 0;
}

.dialogue-thread-title,
.dialogue-body-snippet,
.dialogue-author-line {
  min-width: 0;
  max-width: 100%;
}

/* Acties onderaan: netjes uitlijnen, geen overlap */
.dialogue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  max-width: 100%;
}

.dialogue-share-btn {
  margin-left: auto;        /* rechts */
  flex: 0 0 auto;
  max-width: 100%;
}

/* -------- Kleine schermen: thumbnails/knoppen iets compacter (alleen mobiel) -------- */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 140px;
    height: 92px;
    margin-right: 12px;
  }

  .blog-action-buttons .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .dialogue-thumb {
    width: 96px;
    height: 96px;
  }
}


/* =========================================================
   BLOG = EXACT ALS DIALOOG (Dialoog is leidend)
   Plak onderaan main.css zodat dit alles overschrijft.
   ========================================================= */

/* 1) Card stijl: blog-card exact gelijk aan dialogue-card */
.blog-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,253,0.5);
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
  border-radius: 16px;
  padding: 10px 14px;              /* EXACT dialoog-card */
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 20px 40px rgba(15,23,42,0.95),
              0 0 20px rgba(129,140,248,0.55);
}

/* 2) Thumbnail: blog-thumb-large exact gelijk aan dialogue-thumb */
.blog-thumb-large {
  width: 125px;                    /* EXACT dialoog-thumb */
  height: 125px;                   /* EXACT dialoog-thumb */
  border-radius: 12px;             /* EXACT dialoog-thumb */
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 12px;              /* dialoog spacing */
  padding: 0;                      /* dialoog-thumb heeft geen extra padding */
}

.blog-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) Avatar + author/meta regel: blog exact dialoog-author */
.blog-thumb-avatar {
  width: 38px;                     /* EXACT dialoog-author-avatar */
  height: 38px;                    /* EXACT dialoog-author-avatar */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;               /* dialoog avatar font */
  color: #e5e7eb;
  border: 1px solid rgba(148,163,253,0.7);
  margin-right: 10px;
}

.blog-thumb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog-meta exact dialoog-meta */
.blog-meta {
  font-size: 0.8rem;               /* EXACT dialoog-meta */
  color: rgba(156,163,175,0.9);
}

/* 4) Titel + snippet: gelijk trekken naar dialoog instellingen */
.blog-card h2,
.blog-card h3 {
  font-size: 1.05rem;              /* EXACT dialoog-thread-title */
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}

.blog-snippet {
  font-size: 0.9rem;               /* EXACT dialoog-body-snippet */
  color: rgba(209,213,219,0.9);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) Actions (onderaan): blog exact dialoog-actions */
.blog-actions {
  margin-top: 8px;                 /* EXACT dialoog-actions */
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(156,163,175,0.95);
  flex-wrap: wrap;
}

.blog-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* pills exact gelijk aan dialoog */
.blog-score-pill,
.blog-comments-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  text-decoration: none;
  color: inherit;
}

.blog-score-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #e5e7eb;
}

/* Share button exact dialoog-share-btn */
.blog-share-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.7);
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.blog-share-btn:hover {
  filter: brightness(1.08);
}

/* 6) Bewerken/verwijderen knoppen: zelfde “compacte” gedrag (geen overlap) */
.blog-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.blog-action-buttons .btn {
  min-width: 0 !important;
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* 7) Mobiel: blog-thumb-large exact mee met dialoog-thumb scaling */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    margin-right: 10px;
  }
}

.blog-author-name { font-weight: 600; }
.blog-author-meta { font-size: 0.78rem; color: rgba(156,163,175,0.9); }

/* =========================================================
   BLOG author FIX – naam vet + links uitgelijnd
   ========================================================= */

/* Hele author row netjes links uitlijnen */
.blog-author-row {
  display: flex;
  align-items: flex-start;   /* NIET center */
  gap: 10px;
}

/* Container van naam + datum */
.blog-author-row .blog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* <-- DIT miste */
  text-align: left;          /* <-- forceer links */
  gap: 2px;
  line-height: 1.2;
}

/* Naam: echt vet, niet overschrijfbaar */
.blog-author-row .blog-author-name {
  font-weight: 700 !important;   /* forceer vet */
  color: #e5e7eb;
}

/* Datum: kleinere subtiele regel */
.blog-author-row .blog-author-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(156,163,175,0.9);
}



@media (max-width: 991.98px) {

  /* BLOG container (card) exact als dialoog: zelfde padding */
  .blog-card {
    padding: 10px 14px !important;     /* dialoog-card */
  }

  /* BLOG thumbnail exact als dialoog-thumb */
  .blog-thumb-large {
    width: 125px !important;
    height: 125px !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
    padding: 0 !important;
  }

  /* voorkom dat elementen elkaar duwen op smal scherm */
  .blog-card .d-flex {
    min-width: 0;
  }
  .blog-card-main {
    min-width: 0;
  }
}





/* =========================================================
   MOBIEL: BLOG CARD = ZELFDE VOLLE BREEDTE ALS DIALOOG
   (Dialoog vult 100% -> blog moet hetzelfde)
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) De blog-card zelf moet 100% breed zijn */
  .blog-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) De buitenste rij in jouw blog-card (justify-content-between) moet ook 100% */
  .blog-card > .d-flex.justify-content-between {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 3) De link die de hele card clickable maakt moet 100% krijgen */
  .blog-card-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    display: block;
  }

  /* 4) De interne d-flex in de link moet kunnen krimpen */
  .blog-card-link > .d-flex {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 5) Tekstkolom mag krimpen (anders duwt thumb alles op) */
  .blog-card-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* 6) Knoppen (bewerken/verwijderen) niet rechts naast de link op mobiel
        -> zet ze onder de card zodat er NOOIT shrink-to-fit ontstaat */
  .blog-card > .d-flex.justify-content-between > .ms-3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}





/* ========== Admin.html ========== */

.admin-container {
    max-width: 1000px;
    color: #f9fafb;
}

.admin-card {
    background: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(56, 189, 248, 0.25);
    padding: 24px 26px 18px;
}

.admin-header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-header-sub {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.85);
}

.admin-search-input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    color: #e5e7eb;
}

.admin-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129, 140, 248, 0.6);
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #f9fafb;
}

.admin-table {
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    color: rgba(209, 213, 219, 0.9);
    padding-bottom: 0.35rem;
}

.admin-row {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.admin-row:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.95),
        0 0 20px rgba(129, 140, 248, 0.55);
}

.admin-table td {
    border-top: none;
    border-bottom: none;
    padding: 0.65rem 0.85rem;
    vertical-align: middle;
    color: #e5e7eb;
}

.admin-cell-id {
    width: 60px;
    font-size: 0.85rem;
    color: rgba(148, 163, 253, 0.9);
}

.admin-cell-username {
    font-weight: 500;
    font-size: 1rem;
}

.admin-cell-date {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    white-space: nowrap;
}

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.admin-details-btn {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    border-width: 1px;
}

.admin-no-roles {
    font-size: 0.8rem;
}



/* ========== blog.html ========== */

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 14px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.blog-thumb-large {
    width: 210px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px;
    margin-right: 18px;
}

.blog-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-thumb-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.blog-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-main {
    flex: 1;
    min-width: 0;
}

.blog-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.blog-main {
    flex: 1 1 auto;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 280px;
    margin-left: auto;
    margin-top: 4px;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;

    background: linear-gradient(135deg, #fb923c, #ec4899);
    border: 1px solid rgba(251, 146, 60, 0.8);

    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    margin-bottom: 12px;
    transition: 0.12s ease;
}

.blog-new-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.blog-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-divider {
        display: none;
    }
    .blog-main,
    .blog-sidebar {
        flex: 1 1 auto;
    }
}



/* ========== contact.html ========== */

.contact-page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-card {
    border-radius: 1.3rem;
    padding: 1.4rem 1.5rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.contact-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-details-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.contact-label {
    font-weight: 600;
    display: inline-block;
    min-width: 110px;
}

.text-xs {
    font-size: 0.75rem;
}

.contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 253, 0.5);
    color: #f9fafb;
}

.contact-form .form-control:focus {
    background-color: #020617;
    color: #f9fafb;
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.45);
}

.contact-form textarea {
    min-height: 150px;
}

.btn-contact-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-contact-main:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== dialoog_thread.html ========== */

.thread-media {
    max-width: 700px;
    width: 100%;
    margin: 16px auto 12px;
}

.thread-media img,
.thread-media video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.thread-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.thread-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 8px;
}

.comment-tree {
    margin-top: 10px;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.comment-vote form {
    margin: 0;
}

.comment-vote button {
    border: none;
    background: transparent;
    color: rgba(148,163,253,0.9);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comment-vote button:hover {
    color: #a855f7;
}

.comment-score {
    margin: 2px 0;
}

.comment-body-card {
    flex: 1;
    background: rgba(15,23,42,1);
    border-radius: 10px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-bottom: 2px;
}

.comment-actions {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-actions a,
.comment-actions button.btn-link-like {
    color: rgba(148,163,253,0.9);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
}

.comment-actions a:hover,
.comment-actions button.btn-link-like:hover {
    text-decoration: underline;
}

.comment-children {
    margin-left: 26px;
    border-left: 1px solid rgba(55,65,81,0.8);
    padding-left: 10px;
    margin-top: 4px;
}

.reply-form {
    margin-top: 6px;
    margin-bottom: 10px;
}

.new-comment-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .comment-children {
        margin-left: 16px;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 2px minmax(0, 0.6fr);
    column-gap: 28px;
    align-items: flex-start;
    margin-top: 10px;
}

.thread-main {
    flex: 1 1 auto;
}

.thread-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
    position: relative;
    left: 5px;
}

.thread-sidebar {
    flex: 0 0 340px;
    max-width: 260px;
    margin-left: auto;
}

.thread-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.thread-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.thread-sidebar-item:last-child {
    border-bottom: none;
}

.thread-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.thread-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thread-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.thread-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.thread-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.thread-share-btn:hover {
    filter: brightness(1.08);
}


@media (max-width: 992px) {
    .thread-layout {
        grid-template-columns: 1fr;
    }
    .thread-divider {
        display: none;
    }
    .thread-sidebar {
        max-width: 100%;
    }
}

.blog-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-action-buttons form {
    margin: 0;
}

.blog-action-buttons .btn {
    min-width: 110px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}



/* ========== dialoog.html ========== */

.dialogue-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
}

.dialogue-main {
    flex: 1 1 auto;
}

.dialogue-sidebar {
    flex: 0 0 340px;
    max-width: 340px;
    margin-left: auto;
    margin-top: 4px;
}

.dialogue-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 10px 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.dialogue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 20px 40px rgba(15,23,42,0.95),
                0 0 20px rgba(129,140,248,0.55);
}

.dialogue-thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dialogue-meta {
    font-size: 0.8rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-body-snippet {
    font-size: 0.9rem;
    color: rgba(209,213,219,0.9);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dialogue-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );
}

.dialogue-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.dialogue-thread-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dialogue-empty {
    font-size: 0.9rem;
    color: rgba(156,163,175,0.9);
}

.dialogue-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.8);
    background: linear-gradient(135deg, #fb923c, #ec4899);
    color: #f9fafb;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(248, 113, 113, 0.55);
    text-decoration: none;
    margin-bottom: 10px;
}

.dialogue-new-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.dialogue-new-form-card {
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,253,0.6);
    box-shadow: 0 22px 60px rgba(15,23,42,0.9);
    border-radius: 18px;
    padding: 14px 18px;
    margin-top: 6px;
}

.dialogue-thumb {
    width: 125px;
    height: 125px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.dialogue-thumb img,
.dialogue-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .dialogue-layout {
        flex-direction: column;
    }
    .dialogue-divider {
        display: none;
    }
    .dialogue-sidebar {
        max-width: 100%;
    }
}

.thread-card,
.comment-body-card {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.dialogue-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.dialogue-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,253,0.7);
}

.dialogue-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialogue-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
}

.dialogue-author-meta {
    font-size: 0.78rem;
    color: rgba(156,163,175,0.9);
}


.dialogue-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.dialogue-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.dialogue-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.dialogue-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialogue-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.dialogue-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.dialogue-score-btn {
    border: none;
    background: transparent;
    padding: 0 4px;
    color: inherit;
    cursor: pointer;
}

.dialogue-score-btn:focus {
    outline: none;
}

.dialogue-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.dialogue-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.dialogue-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.dialogue-share-btn:hover {
    filter: brightness(1.08);
}



/* ========== index.html ========== */

.role-pill {
    display: inline-block;
    padding: 0.17rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(59, 130, 246, 0.9));
    color: #f9fafb;
}

.role-pill.role-user {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(75, 85, 99, 0.95));
}

.role-pill.role-author {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(129, 140, 248, 0.95));
}

.role-pill.role-admin {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.95));
}

.role-pill.role-superadmin {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148,163,253,0.7);
}

.disabled-input {
    background-color: #1f2937 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}



/* ========== layout.html ========== */

:root {
    --az-bg-deep: #050315;
    --az-bg-panel: rgba(15, 23, 42, 0.94);
    --az-accent-purple: #a855f7;
    --az-accent-pink: #ec4899;
    --az-accent-blue: #38bdf8;
    --az-text-main: #f9fafb;
    --az-text-muted: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--az-text-main);

    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
        linear-gradient(135deg, #020617, #0b1024 40%, #020617 100%);
    background-attachment: scroll;
    background-size: cover;
}

.page-frame {
    max-width: 1400px;
    margin: 20px auto 40px auto;
    padding: 24px 40px 40px;
    border-radius: 32px;
    background: var(--az-bg-panel);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(56, 189, 248, 0.12);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
}

.top-nav-left {
    display: flex;
    gap: 18px;
    flex-grow: 1;
}

.nav-tab {
    min-width: 110px;
    text-align: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--az-text-muted);

    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(148, 163, 253, 0.35), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 253, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(165, 180, 252, 0.55), rgba(15, 23, 42, 0.98));
}

.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--az-accent-purple), var(--az-accent-blue));
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.25),
        0 18px 45px rgba(129, 140, 248, 0.6);
}

.top-nav-divider {
    width: 2px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 253, 0.7), transparent);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-nav-user {
    margin-top: -20px;
    font-size: 0.8rem;
    color: var(--az-text-muted);
    text-align: right;
    line-height: 1.2;
    margin-right: 8px;
}

.top-nav-user strong {
    color: #ffffff;
    font-weight: 600;
}

.nav-secondary {
    min-width: 130px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--az-text-muted);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.nav-secondary.primary {
    color: #f9fafb;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.35),
        0 16px 42px rgba(248, 113, 113, 0.55);
}

.nav-underline {
    margin-top: 10px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 253, 0.7), transparent);
}

main.content-area {
    margin-top: 26px;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.8);
}

.content-area h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--az-text-main);
}

.content-area p {
    color: var(--az-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.photo-quote {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ffffff;
    max-width: 360px;
    text-align: right;
    font-style: italic;
    line-height: 1.5;
}

.nav-logo {
    height: 150px;
    margin-left: 16px;
    opacity: 0.92;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
    transition: 0.2s ease;
}

.nav-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}



/* ========== opinie.html ========== */

.opinion-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .opinion-page-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.opinion-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.opinion-card {
    position: relative;
    flex: 0 0 300px;
    max-width: 300px;
    padding: 1.05rem 1.1rem 1.2rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle at top left, #1e293b, #020617);
    border: 1px solid rgba(148, 163, 253, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    overflow: hidden;
}

.opinion-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.opinion-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.opinion-author-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.opinion-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 253, 0.75);
}

.opinion-author-text {
    font-size: 0.78rem;
}

.poll-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #0b1120;
    font-weight: 600;
    white-space: nowrap;
}

.opinion-card.poll-closed .poll-status-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #0b1120;
}

.poll-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 253, 0.65);
    margin-bottom: 0.65rem;
}

.poll-timer-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    color: #e5e7eb;
}

.poll-timer-value {
    font-weight: 700;
}

.opinion-description {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    max-height: 3.5rem;
    overflow: hidden;
}

.poll-vote-area {
    margin-bottom: 0.65rem;
}

.poll-vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.poll-vote-button {
    position: relative;
    border-radius: 1rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    animation: pulseGlow 2.4s infinite;
}

.poll-vote-button-yes {
    background: radial-gradient(circle at top left, #3b82f6, #6366f1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.poll-vote-button-no {
    background: radial-gradient(circle at top left, #ef4444, #b91c1c);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.55);
}

.poll-vote-button.voted {
    box-shadow: 0 0 26px rgba(250, 250, 250, 0.85);
    outline: 2px solid rgba(248, 250, 252, 0.85);
    outline-offset: 2px;
}

.poll-vote-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.6);
}

.poll-vote-button:active {
    transform: scale(0.97);
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
    50%  { box-shadow: 0 0 28px rgba(129,140,248,0.8); }
    100% { box-shadow: 0 0 16px rgba(129,140,248,0.4); }
}

.poll-results-area {
    margin-bottom: 0.7rem;
}

.poll-results-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    height: 110px;
    padding: 0.45rem 0.55rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.poll-bar {
    position: relative;
    flex: 1;
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    height: 100%;
}

.poll-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(to top,  #3b82f6, #6366f1);
    transition: height 0.85s ease-out;
}

.poll-bar-no::after {
    background: linear-gradient(to top,  #ef4444, #b91c1c);
}

.poll-results-area.show-results .poll-bar::after {
    height: var(--fill, 0%);
}

.poll-results-text {
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

.poll-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.btn-outline-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border-width: 1px;
}

.btn-make-dialogue {
    margin-top: 0.55rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.opinion-side-panel {
    position: relative;
    max-width: 265px;
    border-radius: 1.3rem;
    padding: 1.2rem 1.3rem;
    background: radial-gradient(circle at top left, #020617, #020617);
    border: 1px solid rgba(148, 163, 253, 0.5);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    justify-self: end;
}

.opinion-side-panel::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0),
        rgba(129, 140, 248, 0.9),
        rgba(236, 72, 153, 0)
    );
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.8);
}

.opinion-side-panel h5 {
    font-weight: 600;
}

.opinion-side-panel ul {
    padding-left: 1.1rem;
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.7rem;
}

.btn-poll-main {
    background: linear-gradient(135deg,#f97316,#ec4899,#6366f1);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 0 18px rgba(236,72,153,0.45);
    transition: 0.2s ease;
}

.btn-poll-main:hover{
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(236,72,153,0.75);
}



/* ========== view_blog.html ========== */

.blog-card h2,
.blog-sidebar-title,
.thread-sidebar-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-preview,
.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.blog-view-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    border-radius: 16px;
    padding: 20px 24px;
}

.blog-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #0f172a;
    margin-right: 14px;
    overflow: hidden;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: rgba(156,163,175,0.9);
}

.blog-layout {
display: grid;
grid-template-columns: minmax(0, 0.95fr) 2px minmax(0, 0.6fr);
column-gap: 28px;
}

.blog-main {
    flex: 0 0 calc(100% - 360px - 8px - 2px);
    margin-right: -200px;
}

.blog-sidebar {
    flex: 0 0 360px;
    max-width: 260px;
    margin-left: auto;
}

.blog-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 253, 0.7),
        transparent
    );

    position: relative;
    left: 220px;
}

.blog-sidebar-card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    border: 1px solid rgba(148,163,253,0.5);
    box-shadow: 0 0 12px rgba(0,0,0,0.45);
    padding: 16px 18px;
    width: 100%;
}

.blog-search-input {
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.6);
    color: #e5e7eb;
    padding-left: 16px;
    padding-right: 16px;
}

.blog-search-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(129,140,248,0.6);
    border-color: rgba(129,140,248,0.9);
    background: rgba(15,23,42,0.98);
    color: #f9fafb;
}

.blog-search-result {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-search-result:last-child { border-bottom: none; }

.blog-search-result-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-search-result-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.blog-thumb-sm {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 1.05rem;
}

.blog-thumb-sm .blog-thumb-img {
    width: 100%;
    height: 100%;
}

.blog-sidebar button.nav-secondary.primary {
    min-width: auto !important;
    padding: 8px 16px;
}

.blog-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31,41,55,0.8);
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    padding: 4px;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.blog-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(156,163,175,0.9);
}

.tts-controls {
    margin: 12px 0 4px 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,253,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(209,213,219,0.9);
}

.tts-controls button {
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.tts-controls button:hover {
    filter: brightness(1.1);
}

.tts-speed-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tts-speed-wrapper input[type="range"] {
    width: 80px;
}

.blog-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(156,163,175,0.95);
}

.blog-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
}

.blog-score-arrow {
    font-size: 0.95rem;
    opacity: 0.8;
}

.blog-score-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #e5e7eb;
}

.blog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    text-decoration: none;
    color: inherit;
}

.blog-share-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.7);
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-divider {
        display: none;
    }
    .tts-controls {
        flex-wrap: wrap;
    }
    .tts-speed-wrapper {
        margin-left: 0;
    }
}



/* ===========================
   MOBILE/TABLET ONLY FIXES
   (Laptop/desktop verandert NIET)
   =========================== */

/* Tablet + mobiel (onder 992px) */
@media (max-width: 991.98px) {

  /* voorkom horizontale overflow op mobiel/tablet */
  html, body { overflow-x: hidden; }

  /* Maak de grote "container" (page-frame) compacter op mobiel/tablet */
  .page-frame {
    max-width: 100%;
    margin: 12px auto 24px auto;
    padding: 14px 16px 22px;
    border-radius: 22px;
  }

  /* Logo en top-nav compacter */
  .nav-logo {
    height: 92px;
    margin-left: 6px;
  }

  .top-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Tabs moeten op mobiel niet zo groot zijn */
  .nav-tab {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  /* Rechter knoppen (login/logout) compacter */
  .nav-secondary {
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  /* Content iets minder "lucht" */
  main.content-area {
    margin-top: 18px;
  }

  .content-area h1 {
    font-size: 1rem;
  }

  /* ===== BLOG pagina ===== */
  .blog-layout {
    flex-direction: column;
  }

  .blog-divider {
    display: none;
  }

  .blog-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
  }

  /* Blog cards compacter (alleen container/padding) */
  .blog-card {
    padding: 12px 14px;
  }

  /* Thumbnail compacter op mobiel/tablet */
  .blog-thumb-large {
    width: 150px;
    height: 100px;
    margin-right: 12px;
    border-radius: 16px;
  }

  /* ===== DIALOOG pagina ===== */
  .dialogue-layout {
    flex-direction: column;
  }

  .dialogue-divider {
    display: none;
  }

  .dialogue-sidebar {
    max-width: 100%;
  }

  /* Dialoog cards compacter */
  .dialogue-card {
    padding: 10px 12px;
  }

  .dialogue-thumb {
    width: 100px;
    height: 100px;
  }

  /* ===== Thread pagina (dialoog_thread) ===== */
  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-divider {
    display: none;
  }

  .thread-sidebar {
    max-width: 100%;
    margin-left: 0;
  }

  .thread-card {
    padding: 14px 16px;
  }
}

/* Telefoon (onder 576px) */
@media (max-width: 575.98px) {

  .page-frame {
    margin: 10px auto 18px auto;
    padding: 12px 12px 18px;
    border-radius: 20px;
  }

  .nav-logo {
    height: 78px;
  }

  /* Tabs nog compacter */
  .nav-tab {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  /* Blog thumbnail nog compacter */
  .blog-thumb-large {
    width: 120px;
    height: 86px;
    margin-right: 10px;
    border-radius: 14px;
  }

  /* Dialoog thumbnail nog compacter */
  .dialogue-thumb {
    width: 92px;
    height: 92px;
  }

  /* Card paddings nog compacter */
  .blog-card {
    padding: 10px 12px;
  }

  .thread-card {
    padding: 12px 14px;
  }
}

/* =========================================================
   FIX: Blog + Dialoog alles binnen card, geen overlap, uitlijnen
   (wijzigt alleen layout-gedrag, niet je kleuren/looks)
   ========================================================= */

/* Zorg dat flex/grid children echt mogen krimpen (kritisch) */
.blog-card-main,
.blog-author-row,
.blog-layout,
.dialogue-layout,
.dialogue-thread-link,
.thread-layout,
.thread-main,
.dialogue-main {
  min-width: 0;
}

/* -------- BLOG -------- */

/* De blog card zelf mag nooit overflowen */
.blog-card {
  max-width: 100%;
  overflow: hidden;
}

/* Author row: avatar/meta links, knoppen rechts, en bij krapte netjes wrappen */
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
}

/* Knoppen-container: altijd binnen de card, naar rechts, mag wrappen */
.blog-action-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  justify-content: flex-end;
  max-width: 100%;
}

/* Knoppen: haal de “te brede” vaste sizing weg zodat het nooit buiten valt */
.blog-action-buttons .btn {
  min-width: 0 !important;  /* overschrijft jouw min-width:110px */
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  max-width: 100%;
}

/* Thumbnail + tekst: nooit duwen buiten container */
.blog-card-main {
  flex: 1 1 auto;
  max-width: 100%;
}

.blog-snippet,
.blog-meta {
  min-width: 0;
  max-width: 100%;
}

/* -------- DIALOOG -------- */

/* Dialoog cards mogen niet overlappen/overflowen */
.dialogue-card {
  max-width: 100%;
  overflow: hidden;
}

/* De klikbare thread-link: laat tekst krimpen en houd alles binnen */
.dialogue-thread-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Thumb mag niet groeien; tekst mag wel krimpen */
.dialogue-thumb {
  flex-shrink: 0;
}

.dialogue-thread-title,
.dialogue-body-snippet,
.dialogue-author-line {
  min-width: 0;
  max-width: 100%;
}

/* Acties onderaan: netjes uitlijnen, geen overlap */
.dialogue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* voorkomt overlap */
  max-width: 100%;
}

.dialogue-share-btn {
  margin-left: auto;        /* rechts */
  flex: 0 0 auto;
  max-width: 100%;
}

/* -------- Kleine schermen: thumbnails/knoppen iets compacter (alleen mobiel) -------- */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 140px;
    height: 92px;
    margin-right: 12px;
  }

  .blog-action-buttons .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .dialogue-thumb {
    width: 96px;
    height: 96px;
  }
}


/* =========================================================
   BLOG = EXACT ALS DIALOOG (Dialoog is leidend)
   Plak onderaan main.css zodat dit alles overschrijft.
   ========================================================= */

/* 1) Card stijl: blog-card exact gelijk aan dialogue-card */
.blog-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,253,0.5);
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
  border-radius: 16px;
  padding: 10px 14px;              /* EXACT dialoog-card */
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 20px 40px rgba(15,23,42,0.95),
              0 0 20px rgba(129,140,248,0.55);
}

/* 2) Thumbnail: blog-thumb-large exact gelijk aan dialogue-thumb */
.blog-thumb-large {
  width: 125px;                    /* EXACT dialoog-thumb */
  height: 125px;                   /* EXACT dialoog-thumb */
  border-radius: 12px;             /* EXACT dialoog-thumb */
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 12px;              /* dialoog spacing */
  padding: 0;                      /* dialoog-thumb heeft geen extra padding */
}

.blog-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) Avatar + author/meta regel: blog exact dialoog-author */
.blog-thumb-avatar {
  width: 38px;                     /* EXACT dialoog-author-avatar */
  height: 38px;                    /* EXACT dialoog-author-avatar */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;               /* dialoog avatar font */
  color: #e5e7eb;
  border: 1px solid rgba(148,163,253,0.7);
  margin-right: 10px;
}

.blog-thumb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog-meta exact dialoog-meta */
.blog-meta {
  font-size: 0.8rem;               /* EXACT dialoog-meta */
  color: rgba(156,163,175,0.9);
}

/* 4) Titel + snippet: gelijk trekken naar dialoog instellingen */
.blog-card h2,
.blog-card h3 {
  font-size: 1.05rem;              /* EXACT dialoog-thread-title */
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}

.blog-snippet {
  font-size: 0.9rem;               /* EXACT dialoog-body-snippet */
  color: rgba(209,213,219,0.9);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) Actions (onderaan): blog exact dialoog-actions */
.blog-actions {
  margin-top: 8px;                 /* EXACT dialoog-actions */
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(156,163,175,0.95);
  flex-wrap: wrap;
}

.blog-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* pills exact gelijk aan dialoog */
.blog-score-pill,
.blog-comments-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  text-decoration: none;
  color: inherit;
}

.blog-score-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #e5e7eb;
}

/* Share button exact dialoog-share-btn */
.blog-share-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.7);
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,64,175,0.9));
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.blog-share-btn:hover {
  filter: brightness(1.08);
}

/* 6) Bewerken/verwijderen knoppen: zelfde “compacte” gedrag (geen overlap) */
.blog-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.blog-action-buttons .btn {
  min-width: 0 !important;
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* 7) Mobiel: blog-thumb-large exact mee met dialoog-thumb scaling */
@media (max-width: 575.98px) {
  .blog-thumb-large {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    margin-right: 10px;
  }
}

.blog-author-name { font-weight: 600; }
.blog-author-meta { font-size: 0.78rem; color: rgba(156,163,175,0.9); }

/* =========================================================
   BLOG author FIX – naam vet + links uitgelijnd
   ========================================================= */

/* Hele author row netjes links uitlijnen */
.blog-author-row {
  display: flex;
  align-items: flex-start;   /* NIET center */
  gap: 10px;
}

/* Container van naam + datum */
.blog-author-row .blog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* <-- DIT miste */
  text-align: left;          /* <-- forceer links */
  gap: 2px;
  line-height: 1.2;
}

/* Naam: echt vet, niet overschrijfbaar */
.blog-author-row .blog-author-name {
  font-weight: 700 !important;   /* forceer vet */
  color: #e5e7eb;
}

/* Datum: kleinere subtiele regel */
.blog-author-row .blog-author-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(156,163,175,0.9);
}



@media (max-width: 991.98px) {

  /* BLOG container (card) exact als dialoog: zelfde padding */
  .blog-card {
    padding: 10px 14px !important;     /* dialoog-card */
  }

  /* BLOG thumbnail exact als dialoog-thumb */
  .blog-thumb-large {
    width: 125px !important;
    height: 125px !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
    padding: 0 !important;
  }

  /* voorkom dat elementen elkaar duwen op smal scherm */
  .blog-card .d-flex {
    min-width: 0;
  }
  .blog-card-main {
    min-width: 0;
  }
}





/* =========================================================
   MOBIEL: BLOG CARD = ZELFDE VOLLE BREEDTE ALS DIALOOG
   (Dialoog vult 100% -> blog moet hetzelfde)
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) De blog-card zelf moet 100% breed zijn */
  .blog-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) De buitenste rij in jouw blog-card (justify-content-between) moet ook 100% */
  .blog-card > .d-flex.justify-content-between {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 3) De link die de hele card clickable maakt moet 100% krijgen */
  .blog-card-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    display: block;
  }

  /* 4) De interne d-flex in de link moet kunnen krimpen */
  .blog-card-link > .d-flex {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  /* 5) Tekstkolom mag krimpen (anders duwt thumb alles op) */
  .blog-card-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* 6) Knoppen (bewerken/verwijderen) niet rechts naast de link op mobiel
        -> zet ze onder de card zodat er NOOIT shrink-to-fit ontstaat */
  .blog-card > .d-flex.justify-content-between > .ms-3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}


/* ===========================
   Mobiel/tablet: verberg bewerken/verwijderen knoppen
   Laptop/desktop: blijft exact hetzelfde
   =========================== */
@media (max-width: 991.98px) {
  .blog-action-buttons {
    display: none !important;
  }
}



/* =====================================================
   Mobiel/tablet: verberg Bewerk/Verwijder (CSS-only)
   Laptop/desktop: blijft exact hetzelfde
   ===================================================== */
@media (max-width: 992px) {

  /* 1) Als wrapper wél bestaat: hard verbergen */
  .blog-action-buttons,
  .dialogue-action-buttons,
  .thread-action-buttons {
    display: none !important;
  }

  /* 2) Verberg edit-links binnen blog cards (match op href) */
  .blog-card a[href*="edit"],
  .blog-card a[href*="bewer"],
  .blog-card a[href*="update"] {
    display: none !important;
  }

  /* 3) Verberg delete-forms/knoppen binnen blog cards (match op form action / button) */
  .blog-card form[action*="delete"],
  .blog-card form[action*="verwijder"],
  .blog-card form[action*="remove"] {
    display: none !important;
  }

  .blog-card button[name*="delete"],
  .blog-card button[name*="verwijder"],
  .blog-card button[value*="delete"],
  .blog-card button[value*="verwijder"],
  .blog-card .btn-danger,
  .blog-card .btn-outline-danger {
    display: none !important;
  }

  /* 4) Zelfde idee voor dialoog cards */
  .dialogue-card a[href*="edit"],
  .dialogue-card a[href*="bewer"],
  .dialogue-card a[href*="update"] {
    display: none !important;
  }

  .dialogue-card form[action*="delete"],
  .dialogue-card form[action*="verwijder"],
  .dialogue-card form[action*="remove"] {
    display: none !important;
  }

  .dialogue-card .btn-danger,
  .dialogue-card .btn-outline-danger {
    display: none !important;
  }
}


/* Mobiel: haal de hele edit/delete actions-container uit de layout */
@media (max-width: 768px){

  /* verberg NIET alleen de buttons, maar ook hun wrapper/container */
  .blog .actions,
  .blog .blog-actions,
  .blog .post-actions,
  .blog .card-actions,
  .blog [class*="action"],
  .blog [class*="edit"],
  .blog [class*="delete"]{
    display: none !important;
  }

  /* zorg dat de content weer 100% pakt */
  .blog .card,
  .blog .blog-card,
  .blog .blog-post,
  .blog .post-card{
    grid-template-columns: 1fr !important;
  }
}




/* FIX: blog-card content mag niet shrink-to-fit op mobiel */
@media (max-width: 991.98px) {
  .blog-card > .d-flex.justify-content-between {
    display: block !important;   /* weg met flex op mobiel */
  }

  .blog-card-link {
    width: 100% !important;
    display: block !important;
  }
}


/* =========================================
   MOBIEL ONLY – CONTENT MEDIA FIX
   (IMG + VIDEO + IFRAME/EMBED)
   !!! PROFIOLFOTO/AVATARS WORDEN NIET AANGERAaKT !!!
   Plak ONDERAAN main.css
   ========================================= */
@media (max-width: 991.98px) {

  /* -------- IMAGES (alleen content containers, GEEN avatars) -------- */
  .blog-view-card .blog-content img,
  .blog-view-card .blog-preview img,
  .thread-media img,
  .thread-card .blog-content img,
  .thread-card .blog-preview img,
  .content-area .blog-content img,
  .content-area .blog-preview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* -------- VIDEO FIX (mobiel, scoped) -------- */
  .blog-view-card video,
  .thread-card video,
  .thread-media video,
  .content-area video,
  .blog-preview video,
  .blog-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ook als je <video width="..." height="..."> gebruikt */
  .blog-view-card video[width],
  .blog-view-card video[height],
  .thread-card video[width],
  .thread-card video[height],
  .thread-media video[width],
  .thread-media video[height],
  .content-area video[width],
  .content-area video[height],
  .blog-preview video[width],
  .blog-preview video[height],
  .blog-content video[width],
  .blog-content video[height] {
    width: 100% !important;
    height: auto !important;
  }

  /* Wrapper die vaak problemen geeft bij mobiel */
  .blog-preview,
  .blog-content,
  .thread-media {
    max-width: 100% !important;
  }

  /* -------- IFRAME/EMBED VIDEO FIX (YouTube etc.) -------- */
  .embed-responsive,
  .video-embed,
  .rich-embed,
  .blog-view-card iframe,
  .thread-card iframe,
  .content-area iframe {
    max-width: 100% !important;
  }

  .blog-view-card iframe,
  .thread-card iframe,
  .content-area iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block !important;
  }

  /* Extra safety: voorkom dat content containers horizontaal uitlopen */
  .blog-view-card,
  .thread-card,
  .thread-media,
  .content-area {
    overflow: hidden;
  }
}



/* =========================================
   MOBIEL ONLY – IMAGE FIX (content images)
   (laat avatars/profielfoto’s met rust)
   Plak ONDERAAN main.css
   ========================================= */
@media (max-width: 991.98px) {

  /* Content-afbeeldingen in blog/view/thread/main */
  .blog-view-card img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar),
  .thread-card img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar),
  .content-area img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Extra: als een afbeelding in een link zit (TinyMCE doet dit vaak) */
  .blog-view-card a img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar),
  .thread-card a img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar),
  .content-area a img:not(.blog-thumb-avatar-img):not(.blog-thumb-img):not(.profile-avatar) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Veiligheid: containers mogen niet horizontaal overflowen */
  .blog-view-card,
  .thread-card,
  .content-area {
    overflow: hidden;
  }
}


/* ===========================
   HOME MEDIA FIX (ALLEEN MOBIEL)
   Houdt home images/videos binnen
   Verandert NIETS aan profile-avatar
   =========================== */
@media (max-width: 991.98px) {

  .home-media-frame {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-media-frame img,
  .home-media-frame video,
  .home-media-frame iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }


  .home-media-frame iframe {
    aspect-ratio: 16 / 9;
  }
}


/* ===========================
   HOME images – mobiel FIX
   Behoudt PNG/JPG gedrag
   Fix voor grote JPEG
   =========================== */
@media (max-width: 991.98px) {

  .home-media-frame {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-media-frame img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 240px;          /* ← dit is de sleutel */
    width: auto !important;
    display: block !important;
    margin: 0 auto;
    object-fit: contain;        /* GEEN crop */
  }
}



/* ===========================
   HOME: alles HELEMAAL rechts op mobiel
   (alleen < 992px)
   =========================== */
@media (max-width: 991.98px) {

  /* Rechter kolom op home: echt rechts */
  .col-md-5.d-flex.flex-column.align-items-end {
    align-items: flex-end !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-left: 0 !important;     /* kill jouw inline -30px effect op mobiel */
    padding-right: 0 !important;
  }

  /* Alle home images: duw naar rechts */
  .col-md-5.d-flex.flex-column.align-items-end img.home-image {
    display: block !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  /* Quotes ook rechts houden */
  .col-md-5.d-flex.flex-column.align-items-end .photo-quote {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
  }
}


/* ===========================
   HOME: tekst onder afbeelding
   GECENTREERD (alleen mobiel)
   =========================== */
@media (max-width: 991.98px) {

  .col-md-5.d-flex.flex-column.align-items-end .photo-quote {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;

    /* voorkomt rare verschuivingen */
    align-self: center !important;

    /* behoud huidige grootte */
    max-width: 240px;
  }

}



/* ===========================
   BLOG LATEN VOORLEZEN
   FIX: alles binnen container
   (alleen mobiel)
   =========================== */
@media (max-width: 991.98px) {

  /* Hoofdcontainer van voorlezen */
  .tts-container,
  .read-aloud,
  .blog-tts,
  .blog-read-aloud {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* De "ovaal/kaart" waar knoppen in zitten */
  .tts-controls,
  .read-aloud-controls {
    max-width: 100% !important;
    width: 100% !important;
    padding: 22px !important;
    box-sizing: border-box;
  }

  /* Knoppen wrappen netjes */
  .tts-controls button,
  .read-aloud-controls button {
    max-width: 80%;
    white-space: normal;
  }

  /* Slider + snelheid */
  .tts-controls input[type="range"],
  .read-aloud-controls input[type="range"] {
    width: 58% !important;
  }

  /* Zorg dat niets buiten de blog-card kan steken */
  .blog-view-card,
  .blog-view-card * {
    box-sizing: border-box;
  }
}


/* ===========================
   BLOG DOORKLIK
   Bewerk / Verwijder verbergen
   (ALLEEN MOBIEL)
   =========================== */
@media (max-width: 991.98px) {

  .blog-view-card .btn-danger,
  .blog-view-card .btn-warning,
  .blog-view-card .btn-outline-danger,
  .blog-view-card .btn-outline-primary,
  .blog-view-card .edit-btn,
  .blog-view-card .delete-btn {
    display: none !important;
  }

}


/* =========================================================
   MOBIEL/TABLET: verberg Bewerk/Verwijder op BLOG DOORKLIK
   (CSS-only) — agressiever, maar scoped zodat TTS blijft
   ========================================================= */
@media (max-width: 992px) {

  /* 1) Verberg edit links (waar dan ook in de content area) */
  main.content-area a[href*="/edit"],
  main.content-area a[href*="edit"],
  main.content-area a[href*="/update"],
  main.content-area a[href*="update"],
  main.content-area a[href*="bewer"],
  main.content-area a[href*="wijzig"] {
    display: none !important;
  }

  /* 2) Verberg delete forms/knoppen (action / formaction) */
  main.content-area form[action*="/delete"],
  main.content-area form[action*="delete"],
  main.content-area form[action*="verwijder"],
  main.content-area form[action*="remove"],
  main.content-area button[formaction*="/delete"],
  main.content-area button[formaction*="delete"],
  main.content-area button[formaction*="verwijder"],
  main.content-area button[formaction*="remove"] {
    display: none !important;
  }

  /* 3) Vaak is "Bewerken" een bootstrap button (niet per se een edit-url)
        -> we verbergen ALLEEN binnen blog-view content, maar NIET in TTS-controls */
  .blog-view-card a.btn:not(.tts-controls a):not(.tts-controls button),
  .blog-view-card button.btn:not(.tts-controls a):not(.tts-controls button),
  .blog-view-card .blog-action-buttons,
  .blog-view-card .blog-action-buttons * {
    display: none !important;
  }

  /* 4) Als jouw view_blog knoppen buiten .blog-view-card staan:
        verberg specifieke button-stijlen, maar NIET de tts-controls */
  main.content-area a.btn-warning:not(.tts-controls a),
  main.content-area a.btn-outline-primary:not(.tts-controls a),
  main.content-area a.btn-primary:not(.tts-controls a),
  main.content-area button.btn-warning:not(.tts-controls button),
  main.content-area button.btn-outline-primary:not(.tts-controls button),
  main.content-area button.btn-primary:not(.tts-controls button),
  main.content-area .btn-danger:not(.tts-controls button),
  main.content-area .btn-outline-danger:not(.tts-controls button) {
    display: none !important;
  }
}


/* =========================================
   MOBIEL: "Ingelogd als …" uitlijnen & ruimte
   ========================================= */
@media (max-width: 991.98px) {

  .top-nav-user,
  .nav-user,
  .logged-in-user,
  .top-nav-right .top-nav-user {
    display: block;
    width: 100%;
    text-align: center;

    margin-top: 18px;   /* naar beneden */
    margin-bottom: 12px;

    font-size: 0.95rem;
    opacity: 0.85;
  }

}


/* =========================================================
   MOBIEL FIX: Login/Register submit-knoppen NOOIT verbergen
   (maar edit/delete/update blijft verborgen)
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) Toon submit buttons in forms, behalve delete/edit/update */
  main.content-area form:not([action*="delete"]):not([action*="remove"]):not([action*="verwijder"])
                        :not([action*="edit"]):not([action*="bewer"]):not([action*="update"])
                        :not([action*="admin"]) button,
  main.content-area form:not([action*="delete"]):not([action*="remove"]):not([action*="verwijder"])
                        :not([action*="edit"]):not([action*="bewer"]):not([action*="update"])
                        :not([action*="admin"]) .btn,
  main.content-area form:not([action*="delete"]):not([action*="remove"]):not([action*="verwijder"])
                        :not([action*="edit"]):not([action*="bewer"]):not([action*="update"])
                        :not([action*="admin"]) input[type="submit"],
  main.content-area form:not([action*="delete"]):not([action*="remove"]):not([action*="verwijder"])
                        :not([action*="edit"]):not([action*="bewer"]):not([action*="update"])
                        :not([action*="admin"]) input[type="button"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 2) Als een parent container per ongeluk hidden is, forceer zichtbaar */
  main.content-area form:not([action*="delete"]):not([action*="remove"]):not([action*="verwijder"])
                        :not([action*="edit"]):not([action*="bewer"]):not([action*="update"])
                        :not([action*="admin"]) {
    display: block !important;
    visibility: visible !important;
  }
}



/* ===========================
   LOGIN KNOP CENTREREN (alleen mobiel)
   Alleen het form met een password-field (dus login)
   =========================== */
@media (max-width: 991.98px) {

  /* Moderne browsers: centreer submit in form dat een password input heeft */
  form:has(input[type="password"]) button[type="submit"],
  form:has(input[type="password"]) input[type="submit"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 18px !important;
    float: none !important;
    align-self: center !important;
  }

  /* Als de knop inline-flex is: houd hem netjes “fit” */
  form:has(input[type="password"]) button[type="submit"] {
    width: fit-content !important;
  }
}


@media (max-width: 991.98px) {
  .admin-crm-row{
    display:flex;
    justify-content:center;
  }
  .admin-crm-btn{
    width:100%;
    max-width: 360px;
    justify-content:center;
  }
}


/* =========================================================
   ADMIN: forceer CRM knop zichtbaar op mobiel
   (override tegen te brede hide-regels)
   ========================================================= */
@media (max-width: 992px) {
  .admin-container a.btn.btn-primary[href*="crm"],
  .admin-container a[href*="crm"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


/* =========================================================
   CRM DASHBOARD (crm_dashboard.html)
   MOBIEL/TABLET: CRM knoppen NOOIT verbergen + netjes centreren
   Plak ONDERAAN main.css
   ========================================================= */
@media (max-width: 991.98px) {

  /* 1) AI bulk knop altijd zichtbaar (ook als je .btn of button ergens verstopt) */
  #btn-ai-bulk {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    margin: 10px auto 0 auto !important;
  }

  /* 2) Knoppen-rij onder AI knop: op mobiel als 1 kolom, gecentreerd */
  .content-area .mb-3.d-flex.gap-2.flex-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* 3) De 3 dashboard knoppen (+Nieuw, Contacten, CSV Import) altijd zichtbaar */
  .content-area .mb-3.d-flex.gap-2.flex-wrap a.btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    width: 100% !important;
    max-width: 360px !important;
    justify-content: center !important;
  }

  /* 4) Extra safety: als je ergens 'main.content-area a.btn-* { display:none }' hebt gezet,
        forceer CRM links weer aan (alleen CRM) */
  main.content-area a.btn[href^="/crm"],
  main.content-area a.btn[href*="/crm/"],
  main.content-area a.btn[href*="/crm"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 5) En CRM forms/buttons (als je later POST knoppen toevoegt) */
  main.content-area form[action^="/crm"] button,
  main.content-area form[action*="/crm/"] button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


/* =========================================
   CRM DASHBOARD
   Mobiel: "Classificeer 'nog onbekend'" 
   zelfde grootte als andere CRM-knoppen
   ========================================= */
@media (max-width: 991.98px) {

  /* AI bulk knop exact hetzelfde gedrag als de andere */
  #btn-ai-bulk {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 360px !important;

    padding: 14px 20px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;

    margin: 12px auto 0 auto !important;
  }
}


/* =========================================
   ADMIN
   Mobiel: "Naar CRM" even groot als "Zoeken"
   ========================================= */
@media (max-width: 991.98px) {

  /* Target alleen de CRM-knop op admin */
  .admin-container a.btn.btn-primary[href*="crm"] {
    /* zelfde feel als Zoeken */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;        /* zelfde rij-gedrag als Zoeken */
    max-width: 360px !important;   /* match met andere mobile knoppen */
    padding: 14px 20px !important; /* zelfde hoogte */
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 0.375rem !important; /* Bootstrap btn radius (Zoeken) */

    margin: 8px auto 0 auto !important; /* netjes gecentreerd */
  }
}

/* ============================
   ADMIN (mobiel): Rollen pills uitlijnen met andere waarden
   CSS-only (geen HTML wijziging)
   ============================ */
@media (max-width: 991.98px) {

  /* Target: 3e kolom = Rollen */
  .admin-table tr.admin-row td:nth-child(3) {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;                 /* mag teruglopen */
    gap: 6px;                        /* nette spacing */
    text-align: left !important;     /* voorkom rare inherited right-align */
  }

  /* Maak pillen strak en zonder "extra" margins */
  .admin-table tr.admin-row td:nth-child(3) .role-pill {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
  }

  /* DE SLEUTEL:
     eerste pill duwt de hele groep naar rechts -> uitlijning gelijk aan andere values */
  .admin-table tr.admin-row td:nth-child(3) .role-pill:first-of-type {
    margin-left: auto !important;
  }

  /* Als je "geen rollen" hebt: ook rechts uitlijnen */
  .admin-table tr.admin-row td:nth-child(3) .admin-no-roles {
    margin-left: auto !important;
    white-space: nowrap;
  }
}


/* Alleen desktop/laptop */
@media (min-width: 992px) {

  /* Zet CRM knop rechts */
  .admin-container .mb-3 > a.btn {
    float: right;
    width: 220px; /* zelfde breedte als Zoeken */
  }

}


/* =========================================
   CRM DASHBOARD
   Mobiel: stats + leads compacter
   ========================================= */
@media (max-width: 991.98px) {

  /* Bovenste grote stats (Totaal contacten / omzet) */
  .content-area .card.p-3.mb-4 > div {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
  }

  /* Leads-sectie (titel + waarden + percentages) */
  .content-area .card.p-3.mb-4 > div + div {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
  }

  /* Kleine tekst onder Leads (percentages-regel) */
  .content-area .card.p-3.mb-4 .small,
  .content-area .card.p-3.mb-4 .text-muted {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
}

/* =========================================================
   ADMIN – MOBIEL: labels links, waarden rechts (strak)
   ========================================================= */
@media (max-width: 991.98px) {

  .admin-table thead { display: none; }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr.admin-row {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
  }

  /* Elke cel = 2 kolommen: label links, value rechts */
  .admin-table tr.admin-row td {
    padding: 8px 0 !important;
    border: none !important;

    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;

    /* belangrijk: value mag krimpen/wrappen binnen container */
    min-width: 0;
  }

  /* Labels links */
  .admin-table tr.admin-row td::before {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(209, 213, 219, 0.75);
    justify-self: start;
    align-self: start;
  }

  /* Waarde rechts: alles wat je in de td hebt behalve ::before */
  .admin-table tr.admin-row td > * {
    justify-self: end;
    text-align: right;

    /* zodat lange tekst niet buiten de card duwt */
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Labels per kolom (1 ID, 2 Username, 3 Rollen, 4 Aangemaakt, 5 Details) */
  .admin-table tr.admin-row td:nth-child(1)::before { content: "ID"; }
  .admin-table tr.admin-row td:nth-child(2)::before { content: "Username"; }
  .admin-table tr.admin-row td:nth-child(3)::before { content: "Rollen"; }
  .admin-table tr.admin-row td:nth-child(4)::before { content: "Aangemaakt"; }
  .admin-table tr.admin-row td:nth-child(5)::before { content: ""; }

  /* Username waarde extra duidelijk (maar blijft rechts) */
  .admin-table tr.admin-row td:nth-child(2) {
    font-weight: 600;
  }

  /* Rollen: rechts uitlijnen maar netjes wrappen binnen card */
  .admin-table tr.admin-row td:nth-child(3) {
    align-items: start;
  }

  .admin-table tr.admin-row td:nth-child(3) > * {
    justify-self: end;
    text-align: right;
  }

  .admin-table tr.admin-row td:nth-child(3) .role-pill {
    white-space: normal;
    margin: 3px 0 0 6px;   /* rechts uitlijnen: ruimte links */
  }

  /* Details knop: volle breedte onderaan, gecentreerd */
  .admin-table tr.admin-row td:nth-child(5) {
    padding-top: 10px !important;
    grid-template-columns: 1fr; /* geen label/value layout */
  }

  .admin-table tr.admin-row td:nth-child(5)::before {
    content: "";
    display: none;
  }

  .admin-table tr.admin-row td:nth-child(5) .admin-details-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  /* kill bootstrap paddings die op mobiel rare inspringing geven */
  .admin-table tr.admin-row td.ps-3,
  .admin-table tr.admin-row td.pe-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* ===========================
   OPINIE: avatar kleiner (ALLEEN MOBIEL)
   =========================== */
@media (max-width: 991.98px) {

  /* 1) Zowel img als div fallback dezelfde vaste maat */
  .opinion-card .opinion-author-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex: 0 0 28px !important;     /* voorkomt dat flex hem groter maakt */
  }

  /* 2) Als het een <img> is: netjes croppen */
  .opinion-card img.opinion-author-avatar {
    object-fit: cover !important;
    display: block !important;
  }

  /* 3) Als het de fallback <div> is: tekst kleiner en perfect gecentreerd */
  .opinion-card div.opinion-author-avatar {
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }
}


/* =========================================
   CRM DASHBOARD
   Laptop/desktop: stats-tekst iets kleiner
   (vetgedrukt behouden)
   ========================================= */
@media (min-width: 992px) {

  .content-area .card.p-3.mb-4 > div {
    font-size: 1.6rem !important;   /* kleiner dan 2rem */
    line-height: 1.25 !important;
    font-weight: 700 !important;   /* 🔒 blijft vetgedrukt */
  }
}

/* =========================================
   CRM DASHBOARD – dark panels + witte tekst
   ========================================= */

.content-area .card {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 253, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(56, 189, 248, 0.12);
}

/* Alle tekst in CRM cards wit */
.content-area .card,
.content-area .card * {
  color: #f9fafb !important;
}

/* Secondary / muted tekst subtiel */
.content-area .card .text-muted {
  color: rgba(209, 213, 219, 0.75) !important;
}


/* =========================================
   CRM DASHBOARD – Recent lijst (zelfde stijl)
   ========================================= */

.content-area .list-group-item {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 253, 0.25);
  color: #f9fafb;
}

/* Hover netjes, niet schreeuwerig */
.content-area .list-group-item:hover {
  background: rgba(15, 23, 42, 0.98);
}

/* Tekstkleuren consistent */
.content-area .list-group-item,
.content-area .list-group-item * {
  color: #f9fafb !important;
}

/* Subtiele secundaire tekst */
.content-area .list-group-item .text-muted {
  color: rgba(209, 213, 219, 0.75) !important;
}





/* =====================================================
   ADELIJK BLAUW PALETTE – STRAK, RUSTIG, GEZAGHEBBEND
   ===================================================== */

/* 1. Het binnenvak: wit, maar met blauw karakter */
.page-frame{
  background: #ffffff !important;
  border: 1px solid rgba(30,58,138,0.18) !important;
  box-shadow:
    0 20px 60px rgba(30,58,138,0.12),
    0 1px 0 rgba(30,58,138,0.08) inset !important;
}

/* 2. Tekst */
.page-frame,
.page-frame *{
  color: #0f172a !important;
}

/* 3. Dunne lijnen (horizontaal & verticaal) → adelijk blauw */
.nav-underline{
  background: linear-gradient(
    to right,
    transparent,
    rgba(30,58,138,0.35),
    transparent
  ) !important;
}

.top-nav-divider{
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(30,58,138,0.30),
    transparent
  ) !important;
}

/* 4. Navigatie tabs: rustig blauwgrijs */
.nav-tab{
  color: rgba(15,23,42,0.72) !important;
  background: linear-gradient(180deg, #f8fafc, #eaf0fb) !important;
  border: 1px solid rgba(30,58,138,0.18) !important;
  box-shadow: 0 10px 22px rgba(30,58,138,0.12) !important;
}

.nav-tab:hover{
  box-shadow: 0 14px 28px rgba(30,58,138,0.18) !important;
  transform: translateY(-1px);
}

/* 5. Actieve tab: echt adelijk blauw */
.nav-tab.active{
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #1e3a8a,
    #2563eb
  ) !important;
  border-color: rgba(30,58,138,0.55) !important;
  box-shadow: 0 16px 34px rgba(30,58,138,0.35) !important;
}

/* 6. Rechter knoppen (Mijn gegevens / Uitloggen) */
.nav-secondary{
  color: rgba(15,23,42,0.75) !important;
  background: linear-gradient(180deg, #f8fafc, #eaf0fb) !important;
  border: 1px solid rgba(30,58,138,0.18) !important;
  box-shadow: 0 10px 22px rgba(30,58,138,0.12) !important;
}

/* Primaire actie (uitloggen) iets warmer maar ingetogen */
.nav-secondary.primary{
  color: #ffffff !important;
  background: linear-gradient(135deg, #1e3a8a, #0f172a) !important;
  border: none !important;
  box-shadow: 0 16px 34px rgba(15,23,42,0.45) !important;
}


/* =====================================================
   ADELIJK BLAUW – BUITEN + BINNEN IN BALANS
   ===================================================== */

/* 1. Hele pagina achtergrond (buiten het witte vak) */
html, body{
  background: radial-gradient(
    circle at top,
    #1e3a8a 0%,
    #0b1f44 55%,
    #050e23 100%
  ) !important;
  color: #e5e7eb;
}

/* 2. Groot buitenframe (als je die gebruikt) */
.outer-frame,
.site-bg,
.page-bg{
  background: transparent !important;
}

/* 3. Het binnenvak: wit met adelijk-blauwe rand */
.page-frame{
  background: #ffffff !important;
  border: 1px solid rgba(30,58,138,0.22) !important;
  box-shadow:
    0 30px 80px rgba(11,31,68,0.45),
    0 1px 0 rgba(30,58,138,0.12) inset !important;
}

/* 4. Tekst binnen wit vak */
.page-frame,
.page-frame *{
  color: #0f172a !important;
}

/* 5. Dunne lijnen (die jij expliciet wilt houden) */
.nav-underline{
  background: linear-gradient(
    to right,
    transparent,
    rgba(59,130,246,0.45),
    transparent
  ) !important;
}

.top-nav-divider{
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(59,130,246,0.35),
    transparent
  ) !important;
}

/* 6. Navigatie tabs */
.nav-tab{
  color: rgba(15,23,42,0.75) !important;
  background: linear-gradient(180deg, #f8fafc, #eaf0fb) !important;
  border: 1px solid rgba(30,58,138,0.22) !important;
  box-shadow: 0 12px 26px rgba(30,58,138,0.20) !important;
}

.nav-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(30,58,138,0.28) !important;
}

/* 7. Actieve tab: koninklijk */
.nav-tab.active{
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #1e3a8a,
    #2563eb
  ) !important;
  border-color: rgba(30,58,138,0.55) !important;
  box-shadow: 0 18px 40px rgba(30,58,138,0.45) !important;
}

/* 8. Rechter knoppen */
.nav-secondary{
  color: rgba(15,23,42,0.80) !important;
  background: linear-gradient(180deg, #f8fafc, #eaf0fb) !important;
  border: 1px solid rgba(30,58,138,0.22) !important;
  box-shadow: 0 12px 26px rgba(30,58,138,0.20) !important;
}

/* Primaire actie (uitloggen) */
.nav-secondary.primary{
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #1e3a8a,
    #0b1f44
  ) !important;
  border: none !important;
  box-shadow: 0 20px 44px rgba(11,31,68,0.60) !important;
}


/* =====================================================
   FADE ALLEEN IN HET BUITENSTE VAK
   ===================================================== */

/* Buitenste achtergrond met fade */
html, body {
  background:
    radial-gradient(
      ellipse at center,
      #3b5fc9 0%,
      #1e3a8a 35%,
      #0b1f44 65%,
      #050e23 100%
    ) !important;
}

/* Binnenvak blijft strak wit */
.page-frame {
  background: #ffffff !important;
  box-shadow:
    0 35px 90px rgba(11,31,68,0.55);
}


/* =====================================================
   BUITENVAK: WIT → ADELIJK BLAUW FADE
   ===================================================== */

html, body {
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    #f4f7fd 35%,
    #dbe6fb 55%,
    #9fb4e5 75%,
    #1e3a8a 100%
  ) !important;
}

/* Binnenvak blijft strak wit */
.page-frame {
  background: #ffffff !important;
  box-shadow:
    0 30px 80px rgba(30,58,138,0.35);
}


/* =========================================================
   CONTENT ONLY — LICHT
   Navigatie wordt NIET geraakt
   ========================================================= */

/* 1. Witte content containers */
.page-frame main.content-area
  .blog-card,
.page-frame main.content-area
  .blog-view-card,
.page-frame main.content-area
  .thread-card,
.page-frame main.content-area
  .dialogue-card,
.page-frame main.content-area
  .opinion-card,
.page-frame main.content-area
  .contact-card,
.page-frame main.content-area
  .blog-sidebar-card,
.page-frame main.content-area
  .thread-sidebar-card,
.page-frame main.content-area
  .dialogue-sidebar-card,
.page-frame main.content-area
  .opinion-side-panel,
.page-frame main.content-area
  .card,
.page-frame main.content-area
  .list-group-item {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* 2. Content-tekst zwart (maar alleen binnen content-area) */
.page-frame main.content-area,
.page-frame main.content-area * {
  color: #0f172a !important;
}

/* 3. Formvelden wit */
.page-frame main.content-area input,
.page-frame main.content-area textarea,
.page-frame main.content-area select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(30,58,138,0.22) !important;
}

/* 4. Neutrale content-knoppen wit
      (NAV / CRM / BLOG / DIALOOG expliciet uitgesloten) */
.page-frame main.content-area
  button:not(.nav-tab)
        :not(.nav-secondary)
        :not(.blog-new-btn)
        :not(.blog-share-btn)
        :not(.dialogue-new-button)
        :not(.btn-make-dialogue)
        :not(.btn-poll-main)
        :not(.btn-contact-main)
        :not(.admin-details-btn)
        :not(#btn-ai-bulk),
.page-frame main.content-area
  .btn:not(.nav-tab)
      :not(.nav-secondary)
      :not(.blog-new-btn)
      :not(.blog-share-btn)
      :not(.dialogue-new-button)
      :not(.btn-make-dialogue)
      :not(.btn-poll-main)
      :not(.btn-contact-main)
      :not(.admin-details-btn)
      :not(#btn-ai-bulk) {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(30,58,138,0.22) !important;
}


/* HOME tekst-card – wit + zwart, super specifiek zodat het altijd wint */
main.content-area .home-text-card.card{
  background: #ffffff !important;
  border: 1px solid rgba(30,58,138,0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(30,58,138,0.12) !important;
}

main.content-area .home-text-card.card .card-body,
main.content-area .home-text-card.card .card-body *{
  color: #0f172a !important;
}

/* mobiel: alleen padding compacter, layout blijft hetzelfde */
@media (max-width: 991.98px){
  main.content-area .home-text-card.card .card-body{
    padding: 14px 14px !important;
  }
}


main.content-area .home-text-card.card{
  background:#ffffff !important;
  border:1px solid rgba(30,58,138,0.18) !important;
  border-radius:16px !important;
  box-shadow:0 20px 60px rgba(30,58,138,0.12) !important;
}

main.content-area .home-text-card.card,
main.content-area .home-text-card.card *{
  color:#0f172a !important;
}


.home-page-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 20px 60px rgba(30,58,138,0.12),
    0 1px 0 rgba(30,58,138,0.08) inset;
}



/* Home / blog-card titel consistent houden op mobiel */
@media (max-width: 768px) {
  .blog-card h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }
}


/* HOME – captions onder foto's fixen op mobiel */
@media (max-width: 991.98px) {

  /* rechterkolom op mobiel netjes centreren */
  .col-md-5.d-flex.flex-column.align-items-end {
    align-items: center !important;
    margin-left: 0 !important;
  }

  /* wrapper + image gecentreerd */
  .home-media-frame {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .home-media-frame img,
  .home-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* BELANGRIJK: ellipsis uit + wrapping aan */
  .photo-quote {
    margin-left: 0 !important;      /* kill jouw inline 150px op mobiel */
    max-width: 100% !important;     /* niet afkappen */
    width: 100% !important;
    text-align: center !important;

    white-space: normal !important; /* wrap */
    overflow: visible !important;   /* geen afkappen */
    text-overflow: clip !important; /* geen ... */
    display: block !important;
  }

  /* als ergens text-truncate meedoet */
  .photo-quote.text-truncate {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}


/* =====================================================
   BLOG + DIALOOG: alleen achtergrond wit (niets anders)
   ===================================================== */

/* BLOG: score pill + reacties + delen */
.blog-score-pill,
.blog-comments-link,
.blog-share-btn{
  background: #ffffff !important;
  background-image: none !important;
}

/* DIALOOG (lijst): score pill + reacties + delen */
.dialogue-score-pill,
.dialogue-comments-link,
.dialogue-share-btn{
  background: #ffffff !important;
  background-image: none !important;
}

/* DIALOOG (thread): delen-knop */
.thread-share-btn{
  background: #ffffff !important;
  background-image: none !important;
}

/* (BELANGRIJK) Als jouw knoppen eigenlijk <button> zijn met default border/background,
   dan wil je alleen background overschrijven: geen border/padding/font hier. */


/* LOGO: geen card/achtergrond/shadow rondom */
.nav-logo{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* Als de "card" eigenlijk op de <a> (wrapper) zit */
.top-nav a:has(.nav-logo),
.top-nav .d-inline-flex:has(.nav-logo){
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


/* Altijd-werkend: pak de bekende wrapper in jouw layout */
.top-nav a.d-inline-flex.align-items-center.text-decoration-none{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* === LOGO: ALLES TRANSPARANT, GEEN CARD, GEEN SHADOW === */

/* het <a> om het logo heen */
.top-nav a:has(img.nav-logo),
.top-nav a:has(.nav-logo),
.top-nav a.d-inline-flex:has(.nav-logo),
.top-nav a.d-inline-flex.align-items-center.text-decoration-none {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* het IMG zelf */
.top-nav img.nav-logo,
.top-nav .nav-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: 0 !important;

  /* soms lijkt het een card door filter/drop-shadow */
  filter: none !important;
}

/* als jouw CSS de "card" op de container DIV zet waar logo + hamburger in zitten */
.top-nav > .d-flex.align-items-center.gap-2 {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* === NAV LOGO: IETS KLEINER, VERDER NIKS AANRAKEN === */

.nav-logo {
  height: 104px;        /* was visueel ±48–50 */
  width: auto;
}

/* Mobiel: nog iets compacter */
@media (max-width: 768px) {
  .nav-logo {
    height: 82px;
  }
}


/* === TTS CONTROLS: WITTE ACHTERGROND (BLOG + DIALOOG) === */

.tts-controls {
  background: #ffffff !important;
  color: #000000;
  border-radius: 16px;
}

/* Tekst en labels zwart */
.tts-controls span,
.tts-controls label {
  color: #000000;
}

/* Knoppen behouden vorm, alleen contrast fix */
.tts-controls button {
  background: transparent;
  color: #000000;
  border-color: rgba(0,0,0,0.25);
}

/* Slider beter zichtbaar op wit */
.tts-controls input[type="range"] {
  accent-color: #1e3a8a; /* zelfde adelijk blauw */
}

/* === ZOEKKNOPPEN BLOG + DIALOOG: TEKST WIT === */
.blog-sidebar button.nav-secondary.primary,
.dialogue-sidebar button.nav-secondary.primary {
  color: #ffffff !important;
}

/* === REACTIES: WITTE ACHTERGROND === */
.comment-body-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(30,58,138,0.15);
}


/* === FORCE: DIKKERE RAND OM REACTIES (comments) === */
.comment-box .comment-body-card,
.comment-body-card {
  border-style: solid !important;
  border-width: 3px !important;                 /* dikker: 2px/3px/4px */
  border-color: rgba(15, 23, 42, 0.95) !important;
}



/* ============================= */
/* WITTE ACTIE-ACHTERGRONDEN     */
/* Blog & Dialoog               */
/* ============================= */

.blog-score-pill,
.blog-comments-link,
.blog-share-btn,
.dialogue-score-pill,
.dialogue-comments-link,
.dialogue-share-btn {
    background: #ffffff !important;
    color: #020617 !important;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

/* pijltjes en iconen ook zwart */
.blog-score-arrow,
.dialogue-score-arrow {
    color: #020617 !important;
}

/* ============================= */
/* Opinie pagina                */
/* ============================= */

.poll-timer-pill,
.poll-results-bars {
    background: #ffffff !important;
    color: #020617 !important;
    border: 1px solid rgba(15, 23, 42, 0.15);
}


/* ============================= */
/* OPINIE – RESULTAATBALKEN WIT  */
/* ============================= */

/* Buitenste container (rond beide balken) */
.poll-results-bars {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 10px;
    border-radius: 16px;
}

/* De individuele balk (LEEG) */
.poll-bar {
    background: #ffffff !important;   /* ← dit was donker */
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* De VULLING (verticale fill via ::before of ::after) */
.poll-bar::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--fill, 0%);
    border-radius: 10px;
}

/* EENS = BLAUW */
.poll-bar-yes::before {
    background: linear-gradient(
        180deg,
        #6b75f0 0%,
        #5562e8 100%
    );
}

/* ONEENS = ROOD */
.poll-bar-no::before {
    background: linear-gradient(
        180deg,
        #d14a3c 0%,
        #b9382d 100%
    );
}



/* ============================= */
/* ADMIN – WITTE ACHTERGROND     */
/* ============================= */

.admin-container .admin-card {
  background: #ffffff !important;
  color: #020617 !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.18) !important;
}

/* Titel ook donker */
.admin-header-title {
  color: #020617 !important;
}

/* Zoekveld wit */
.admin-search-input {
  background: #ffffff !important;
  color: #020617 !important;
  border: 1px solid rgba(15, 23, 42, 0.25) !important;
}

/* Table zelf + cellen wit (Bootstrap zet soms transparant) */
.admin-table,
.admin-table thead,
.admin-table tbody,
.admin-table tr,
.admin-table th,
.admin-table td {
  background: transparent !important; /* card is wit */
  color: #020617 !important;
}

/* Rij-achtergrond expliciet (voor het geval je CSS rijen donker maakt) */
.admin-row {
  background: transparent !important;
}

/* Subtiele zebra (optioneel; als je dit niet wilt, verwijder dit blok) */
.admin-row:nth-child(even) {
  background: rgba(15, 23, 42, 0.03) !important;
}

/* Details-knop: zorg dat tekst zichtbaar blijft op wit */
.admin-details-btn.btn-outline-light {
  color: #020617 !important;
  border-color: rgba(15, 23, 42, 0.25) !important;
}
.admin-details-btn.btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.06) !important;
}


/* ============================= */
/* ADMIN DETAIL – FORCE WIT      */
/* ============================= */

.container > .mb-4.p-3.rounded {
    background: #ffffff !important;
    color: #020617 !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18) !important;
}

/* tekst binnen de card */
.container > .mb-4.p-3.rounded p,
.container > .mb-4.p-3.rounded strong {
    color: #020617 !important;
}

/* checkbox labels */
.container > .mb-4.p-3.rounded .form-check-label {
    color: #020617 !important;
}

/* checkbox zelf */
.container > .mb-4.p-3.rounded .form-check-input {
    border-color: rgba(15, 23, 42, 0.35);
}


/* ========================================= */
/* NIEUWE BLOG – LABELS WIT (FORCED)         */
/* ========================================= */

/* Alleen binnen de card van "Nieuwe blog" */
main.content-area .container.mt-4 > .mt-2.p-3.rounded .form-label,
main.content-area .container.mt-4 > .mt-2.p-3.rounded label {
  color: #fff !important;
}

/* Ook de helptekst onder thumbnail */
main.content-area .container.mt-4 > .mt-2.p-3.rounded .form-text,
main.content-area .container.mt-4 > .mt-2.p-3.rounded .text-muted {
  color: rgba(255,255,255,0.75) !important;
}

/* ========================================= */
/* ANNULEREN / OUTLINE-LIGHT → WITTE KNOP   */
/* ========================================= */

.btn-outline-light {
    background-color: #ffffff !important;
    color: #020617 !important;          /* tekst donker */
    border-color: #ffffff !important;
}

/* hover blijft netjes */
.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #f1f5f9 !important;
    color: #020617 !important;
    border-color: #e5e7eb !important;
}


/* ========================================= */
/* OPINIE MODAL: labels wit + Annuleren wit  */
/* ========================================= */

/* alle titels/labels in de modal wit */
#newPollModal .modal-title,
#newPollModal .form-label,
#newPollModal label {
  color: #ffffff !important;
}

/* Bootstrap "text-muted" is te donker op jouw donkere modal */
#newPollModal .text-muted,
#newPollModal .form-text,
#newPollModal .text-xs {
  color: rgba(255,255,255,0.70) !important;
}

/* Annuleren knop (btn-secondary) wit maken, alleen in deze modal */
#newPollModal .modal-footer .btn.btn-secondary {
  background: #ffffff !important;
  color: #020617 !important;
  border-color: #ffffff !important;
}

#newPollModal .modal-footer .btn.btn-secondary:hover,
#newPollModal .modal-footer .btn.btn-secondary:focus {
  background: #f1f5f9 !important;
  color: #020617 !important;
  border-color: #e5e7eb !important;
}



/* ===========================================
   CRM: maak alle "grijze" (muted) tekst zwart
   (zonder templates te wijzigen)
   Scoping: alleen pagina’s die CRM-links bevatten
   =========================================== */

/* scope op pagina’s waar CRM content staat */
main.content-area:has(a[href*="/crm/"]) .text-muted,
main.content-area:has(a[href*="/crm/"]) .form-text,
main.content-area:has(a[href*="/crm/"]) .small,
main.content-area:has(a[href*="/crm/"]) .text-secondary {
  color: #000 !important;
  opacity: 1 !important;
}

/* extra: grijze tekst die in cards/list-items zit */
main.content-area:has(a[href*="/crm/"]) .card .text-muted,
main.content-area:has(a[href*="/crm/"]) .list-group-item .text-muted,
main.content-area:has(a[href*="/crm/"]) .card .small,
main.content-area:has(a[href*="/crm/"]) .list-group-item .small {
  color: #000 !important;
  opacity: 1 !important;
}

/* als Bootstrap ook variabelen gebruikt voor muted */
main.content-area:has(a[href*="/crm/"]) {
  --bs-secondary-color: #000;
  --bs-text-opacity: 1;
}


/* ============================= */
/* TOP NAV: alles binnen de card */
/* ============================= */

/* Zorg dat de header echt binnen de page-frame blijft */
.page-frame {
  overflow: hidden; /* voorkomt dat iets buiten de rounded card uitsteekt */
}

/* Laat de top-nav zelf wrappen i.p.v. overflowen */
.top-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Voorkom dat flex-children de boel "oprekken" */
.top-nav > * {
  min-width: 0;
}

/* Tabs mogen naar een nieuwe regel als het niet past */
.top-nav-left {
  flex-wrap: wrap;
  gap: 10px;
}

/* Rechter gedeelte mag ook wrappen en blijft rechts */
.top-nav-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto; /* duwt rechtsblok naar rechts */
}

/* Knoppen/tabs niet afbreken op 2 regels (blijft netjes) */
.nav-tab,
.nav-secondary {
  white-space: nowrap;
}


/* Logo echt naar links duwen (wordt niet “weg-ge-override”) */
.top-nav img.nav-logo {
  transform: translateX(-12px) !important; /* pas aan: -6, -8, -10, -14 */
}



/* =========================
   DIENSTEN PAGE
========================= */

.diensten-page{
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 18px 40px;
  color: #0b1220;
}

.diensten-hero{
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 28px 70px rgba(2,6,23,0.18);
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.diensten-hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 15% 10%, rgba(99,102,241,0.18), transparent 55%),
              radial-gradient(500px 220px at 85% 0%, rgba(59,130,246,0.14), transparent 55%),
              radial-gradient(500px 260px at 70% 90%, rgba(148,163,253,0.12), transparent 55%);
  pointer-events:none;
}

.diensten-hero-inner{ position: relative; z-index: 1; }

.diensten-hero-kicker{
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(15,23,42,0.75);
  margin-bottom: 10px;
}

.diensten-hero-title{
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 12px;
  font-weight: 800;
  color: #020617;
}

.diensten-hero-sub{
  max-width: 880px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(2,6,23,0.78);
  margin-bottom: 16px;
}

.diensten-pill-row{ display:flex; gap:10px; flex-wrap:wrap; }
.diensten-pill{
  background: rgba(2,6,23,0.06);
  border: 1px solid rgba(15,23,42,0.12);
  color: #020617;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

.diensten-section{ margin-top: 18px; }

.diensten-card{
  background:#fff;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 26px;
  box-shadow: 0 26px 65px rgba(2,6,23,0.14);
  padding: 22px;
}

.diensten-card-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.diensten-h2{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color:#020617;
}

.diensten-badge{
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.22);
  color:#1f2a8a;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .85rem;
  white-space: nowrap;
}

.diensten-muted{ color: rgba(2,6,23,0.55); font-weight: 700; font-size:.9rem; }

.diensten-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .diensten-grid-2{ grid-template-columns: 1fr; }
}

.diensten-block{
  background: rgba(2,6,23,0.03);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 20px;
  padding: 14px 14px 12px;
}

.diensten-h3{
  margin: 0 0 8px 0;
  font-weight: 900;
  color:#020617;
  font-size: 1.05rem;
}

.diensten-list{
  margin:0;
  padding-left: 18px;
  color: rgba(2,6,23,0.78);
  line-height: 1.55;
  font-weight: 650;
}

/* ====== Speelkaarten stage ====== */
.cards-stage{
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background: radial-gradient(900px 320px at 10% 0%, rgba(99,102,241,0.10), transparent 60%),
              radial-gradient(900px 380px at 90% 10%, rgba(59,130,246,0.08), transparent 60%),
              rgba(2,6,23,0.02);
  border: 1px solid rgba(15,23,42,0.10);
  overflow:hidden;
}

.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1100px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .cards-grid{ grid-template-columns: 1fr; }
}

.playcard{
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 20px 55px rgba(2,6,23,0.16);
  padding: 16px 16px 14px;
  transform-style: preserve-3d;
  will-change: transform;
  overflow:hidden;
}

/* subtiele “floating” baseline animatie */
.playcard{
  animation: floaty 6.5s ease-in-out infinite;
}
.playcard:nth-child(2){ animation-delay: .4s; }
.playcard:nth-child(3){ animation-delay: .8s; }
.playcard:nth-child(4){ animation-delay: .2s; }
.playcard:nth-child(5){ animation-delay: .6s; }

@keyframes floaty{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-6px); }
}

.playcard-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.playcard-rank{
  font-weight: 950;
  color:#020617;
  font-size: 1.05rem;
  letter-spacing: .2px;
}
.playcard-rank span{ margin-left: 6px; }

.playcard-suit{
  font-size: 1.15rem;
  font-weight: 900;
  opacity: .85;
}

.playcard-title{
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 950;
  color:#020617;
}

.playcard-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(2,6,23,0.75);
  line-height: 1.5;
  font-weight: 650;
  font-size: .95rem;
}

/* kleuraccent per kaart */
.playcard--blue:before,
.playcard--purple:before,
.playcard--teal:before,
.playcard--green:before,
.playcard--amber:before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 24px;
  opacity:.22;
  pointer-events:none;
}
.playcard--blue:before{ background: radial-gradient(380px 140px at 10% 0%, rgba(59,130,246,0.55), transparent 55%); }
.playcard--purple:before{ background: radial-gradient(380px 140px at 10% 0%, rgba(99,102,241,0.55), transparent 55%); }
.playcard--teal:before{ background: radial-gradient(380px 140px at 10% 0%, rgba(20,184,166,0.55), transparent 55%); }
.playcard--green:before{ background: radial-gradient(380px 140px at 10% 0%, rgba(34,197,94,0.45), transparent 55%); }
.playcard--amber:before{ background: radial-gradient(380px 140px at 10% 0%, rgba(245,158,11,0.50), transparent 55%); }

.playcard-glow{
  position:absolute;
  inset:auto -40% -55% -40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(2,6,23,0.10), transparent 70%);
  filter: blur(18px);
  opacity:.55;
  pointer-events:none;
}

/* hover micro-interactie */
.playcard:hover{
  box-shadow: 0 28px 80px rgba(2,6,23,0.20);
}

/* ====== Page 4 / quote card ====== */
.diensten-par{
  color: rgba(2,6,23,0.78);
  line-height: 1.7;
  font-weight: 650;
  margin-top: 10px;
}

.diensten-3cols{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .diensten-3cols{ grid-template-columns: 1fr; }
}

.diensten-mini{
  background: rgba(2,6,23,0.03);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  padding: 14px;
}
.diensten-mini-title{
  font-weight: 950;
  color:#020617;
  margin-bottom: 6px;
}
.diensten-mini-text{
  color: rgba(2,6,23,0.75);
  font-weight: 650;
  line-height: 1.6;
}

/* CTA */
.diensten-cta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(59,130,246,0.10));
  border: 1px solid rgba(99,102,241,0.18);
}
@media (max-width: 760px){
  .diensten-cta{ flex-direction: column; align-items: flex-start; }
}
.diensten-cta-text{
  color: rgba(2,6,23,0.82);
  font-weight: 750;
  line-height: 1.4;
}
.diensten-cta-btn{
  background: #1f2a8a;
  color: #fff;
  text-decoration:none;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,0.12);
  box-shadow: 0 14px 35px rgba(2,6,23,0.18);
}
.diensten-cta-btn:hover{ filter: brightness(1.05); }

/* ===== Reveal on scroll ===== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.playcard,
.diensten-card,
.cta-card {
  text-align: center;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 1.6rem;
}

ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1e5eff; /* blauw — pas aan indien nodig */
  font-weight: 700;
}


.playing-card.card-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.playing-card.card-link:focus-visible{
  outline: 3px solid rgba(59,130,246,.45);
  outline-offset: 6px;
  border-radius: 24px;
}



/* =========================
   DIENSTEN – CTA knop (altijd wit)
   ========================= */
.diensten-page a.diensten-cta-btn,
.diensten-page a.diensten-cta-btn:link,
.diensten-page a.diensten-cta-btn:visited,
.diensten-page a.diensten-cta-btn:hover,
.diensten-page a.diensten-cta-btn:active{
  background: #1f2a8a !important;      /* jouw nav-achtige blauw */
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}

/* als er ergens 'a { color: ... }' of '.playcard a { ... }' zit */
.diensten-page .playcard a.diensten-cta-btn{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* =========================
   DIENSTEN – vinkjes ALLEEN op diensten-lijsten
   (fix: niet meer globaal op elke <ul>)
   ========================= */

/* zet jouw globale ul regels uit binnen diensten, en gebruik classes */
.diensten-page ul{ list-style: initial; padding-left: initial; }
.diensten-page ul li{ padding-left: initial; }
.diensten-page ul li::before{ content: none; }

/* alleen voor jouw lijsten met class */
.diensten-page .diensten-list,
.diensten-page .playcard-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.diensten-page .diensten-list li,
.diensten-page .playcard-list li{
  position: relative;
  padding-left: 1.6rem;
}

.diensten-page .diensten-list li::before,
.diensten-page .playcard-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1e5eff;
  font-weight: 800;
}


/* DIENSTEN: knop heel licht + tekst donker (force) */
.diensten-page a.diensten-cta-btn,
.diensten-page a.diensten-cta-btn:link,
.diensten-page a.diensten-cta-btn:visited,
.diensten-page a.diensten-cta-btn:hover,
.diensten-page a.diensten-cta-btn:active{
  background: #EAF2FF !important;                 /* heel licht */
  color: #020617 !important;                      /* donker */
  -webkit-text-fill-color: #020617 !important;    /* Safari */
  border: 1px solid rgba(15,23,42,0.18) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(2,6,23,0.10) !important;
}

/* als er nog een regel is die links in .playcard of h3 overschrijft */
.diensten-page .playcard-title a.diensten-cta-btn{
  color: #020617 !important;
  -webkit-text-fill-color: #020617 !important;
}

/* optioneel: iets “nav-achtig” hover effect */
.diensten-page a.diensten-cta-btn:hover{
  filter: brightness(0.98) !important;
  transform: translateY(-1px);
}



@media (max-width: 600px){
  .pill-row{
    flex-direction: row;     /* forceer naast elkaar */
    justify-content: center; /* mooi gecentreerd */
    flex-wrap: nowrap;       /* NIET laten afbreken */
  }

  .pill{
    font-size: 14px;
    padding: 8px 12px;
    white-space: nowrap;     /* tekst blijft op 1 regel */
  }
}


@media (max-width: 600px){
  .diensten-pill-row{
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;      /* NIET onder elkaar */
  }

  .diensten-pill{
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 12px;
  }
}


/* Profielpagina – kaart wit maken */
.container > .mt-2.p-3.rounded{
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  box-shadow: 0 10px 25px rgba(15,23,42,0.08) !important;
}


/* HOME: laat tekst gewoon teruglopen (geen ellipsis/clamp) */
.blog-card p,
.blog-card li,
.blog-card h4,
.blog-card h1,
.blog-card h2,
.blog-card h3{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}


/* GEEN vinkjes op Home-pagina */
.blog-card ul li::before{
  content: none !important;
}

/* GEEN vinkjes op Contact-pagina */
.contact-page-wrapper ul li::before{
  content: none !important;
}


.list-spades{
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.list-spades li{
  position: relative;
  padding-left: 2.2em;        /* ruimte voor het symbool */
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.list-spades li::before{
  content: "♠";
  position: absolute;
  left: 0;
  top: 0.15em;                /* verticale uitlijning */
  width: 1.6em;               /* vaste bullet-kolom */
  text-align: center;
  color: #0f172a;
  font-size: 1.1em;
}


.list-spades{
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-spades li{
  margin-bottom: 0.6em;
  line-height: 1.6;

  /* DIT DOET DE UITLIJNING (rode lijn) */
  text-indent: -1em;   /* bullet hangt links */
}

.list-spades li::before{
  content: "♠";
  display: inline-block;
  width: 1.4em;
  color: #0f172a;
}

.list-spades li:nth-child(2)::before{
  content: "♥";
  color: #dc2626;
}


/* Witte achtergrond voor CRM branch pagina */
.content-area > div {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}


/* Override table-dark naar licht */
.table-dark {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #f5f7fb;
  --bs-table-striped-color: #0f172a;
  --bs-table-color: #0f172a;
  --bs-table-border-color: #e5e7eb;
}

.table-dark th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.table-dark td {
  color: #0f172a;
}


/* Mobiel: blog snippet inkorten (zoals Dialoog) */
@media (max-width: 768px) {
  .blog-snippet{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;  /* kies 3 of 4 */
    overflow: hidden;
  }
}


/* =========================================
   MOBIEL ONLY — BLOG GEDRAAGT ZICH ALS DIALOOG
   (NIETS verandert op desktop)
   ========================================= */
@media (max-width: 768px) {

  /* 1️⃣ Blog card exact als dialogue-card */
  .blog-card {
    background: rgba(15,23,42,0.9) !important;
    border: 1px solid rgba(148,163,253,0.5) !important;
    box-shadow: 0 0 12px rgba(0,0,0,0.45) !important;
    border-radius: 16px !important;
    padding: 10px 14px !important;
    overflow: hidden;
  }

  /* 2️⃣ Titel exact dialoog */
  .blog-card h2,
  .blog-card h3 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
  }

  /* 3️⃣ SNIPPET = dialoog-body-snippet (DIT was je probleem) */
  .blog-snippet,
  .blog-card p {
    font-size: 0.9rem !important;
    color: rgba(209,213,219,0.9) !important;
    margin-top: 4px !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;   /* 👈 exact dialoog */
    overflow: hidden !important;

    white-space: normal !important;
  }

  /* 4️⃣ Thumbnail exact dialoog-thumb */
  .blog-thumb-large {
    width: 92px !important;
    height: 92px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  /* 5️⃣ Actions exact dialoog-actions */
  .blog-actions {
    margin-top: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 0.85rem !important;
    color: rgba(156,163,175,0.95) !important;
    flex-wrap: wrap !important;
  }

  /* 6️⃣ Share knop exact dialoog */
  .blog-share-btn {
    margin-left: auto !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148,163,253,0.7) !important;
    background: linear-gradient(
      135deg,
      rgba(15,23,42,0.95),
      rgba(30,64,175,0.9)
    ) !important;
    font-size: 0.8rem !important;
  }

  /* 7️⃣ Bewerk/verwijder bestaat NIET op mobiel (zoals dialoog) */
  .blog-action-buttons {
    display: none !important;
  }
}


/* =========================================
   MOBIEL ONLY — BLOG share knop EXACT als dialoog share knop
   ========================================= */
@media (max-width: 768px) {

  /* Forceer dezelfde look als dialoog-share-btn (die bij jou wit is) */
  .blog-share-btn{
    background: #ffffff !important;
    background-image: none !important;
    color: #020617 !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: none !important;
  }

  .blog-share-btn:hover{
    filter: brightness(0.98) !important;
  }
}


/* =========================================
   MOBIEL ONLY — FIX: blog-view profielfoto
   (niet mee schalen als content image)
   ========================================= */
@media (max-width: 991.98px) {

  /* De avatar-container: vaste maat, niet laten krimpen */
  .blog-view-card .blog-thumb {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    flex: 0 0 52px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }

  /* De avatar-afbeelding: exact vullen, netjes croppen */
  .blog-view-card .blog-thumb-img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    display: block !important;

    /* BELANGRIJK: stop dat hij ooit 100% breed wordt */
    aspect-ratio: 1 / 1 !important;
  }
}


/* =========================================
   MOBIEL — 1 regel, nooit buiten venster
   (blog + dialoog + thread)
   ========================================= */
@media (max-width: 991.98px) {

  /* 0) Kill horizontale overflow overal */
  html, body { overflow-x: hidden !important; }

  /* 1) Actions-rij: altijd 1 regel, binnen de card */
  .blog-actions,
  .dialogue-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex-wrap: nowrap !important;        /* 1 regel */
    overflow: hidden !important;         /* NOOIT buiten container */
  }

  /* 2) Linker groep: mag krimpen */
  .blog-actions-left,
  .dialogue-actions-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* 3) Pills + share: compacter, dezelfde hoogte, en mogen shrinken */
  .blog-score-pill,
  .blog-comments-link,
  .dialogue-score-pill,
  .dialogue-comments-link,
  .blog-share-btn,
  .dialogue-share-btn,
  .thread-share-btn {
    height: 36px !important;              /* iets kleiner */
    padding: 0 10px !important;
    border-radius: 999px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
    min-width: 0 !important;              /* laat krimpen */
    max-width: 100% !important;
  }

  /* 4) Share rechts, maar mag NIET duwen buiten venster */
  .blog-share-btn,
  .dialogue-share-btn,
  .thread-share-btn {
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  /* 5) Tekst/icoon in pills kleiner zodat alles op 1 regel past */
  .blog-score-pill,
  .blog-comments-link,
  .dialogue-score-pill,
  .dialogue-comments-link,
  .blog-share-btn,
  .dialogue-share-btn,
  .thread-share-btn {
    font-size: 0.85rem !important;
  }

  /* pijltjes/icoontjes kleiner */
  .blog-score-arrow,
  .dialogue-score-arrow {
    font-size: 0.8rem !important;
    line-height: 1 !important;
  }

  .blog-comments-link span,
  .dialogue-comments-link span {
    font-size: 0.9rem !important;        /* 💬 iets kleiner */
    line-height: 1 !important;
  }

  /* 6) Als comments-text toch te breed is: laat ‘m ellipsen i.p.v. overflow */
  .blog-comments-link,
  .dialogue-comments-link {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 7) Extra: voorkom dat de card zelf breder wordt dan het scherm */
  .blog-view-card,
  .thread-card,
  .dialogue-card {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* EXTRA KLEIN (telefoon smal): nog compacter, maar nog steeds 1 regel */
@media (max-width: 380px) {
  .blog-score-pill,
  .blog-comments-link,
  .dialogue-score-pill,
  .dialogue-comments-link,
  .blog-share-btn,
  .dialogue-share-btn,
  .thread-share-btn {
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.80rem !important;
  }

  .blog-comments-link span,
  .dialogue-comments-link span {
    font-size: 0.85rem !important;
  }
}


/* Dialoog: "Nieuwe reactie" tonen als knop (link-styling → button look) */
#toggle-new-comment{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none !important;
  cursor: pointer;

  /* match met jouw nav-secondary vibe */
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,253,0.60);
  background: rgba(2,6,23,0.04);

  /* 👇 HIER: zwarte letters in normale staat */
  color: #000000 !important;
  font-weight: 500;

  /* voelt “premium” aan */
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

#toggle-new-comment:hover{
  background: rgba(148,163,253,0.15);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);

  /* 👇 hover exact zoals nu */
  color: #ffffff !important;
}

#toggle-new-comment:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

#toggle-new-comment:focus{
  outline: none;
  box-shadow: 
    0 0 0 2px rgba(148,163,253,0.25),
    0 8px 18px rgba(0,0,0,0.10);
}


/* FIX: avatar in dialoog exact hetzelfde als blog (ook mobiel) */
.thread-main .blog-thumb,
.thread-card .blog-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.thread-main .blog-thumb img,
.thread-card .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}


/* === MOBILE TEXT FIX === */
@media (max-width: 768px) {
  .blog-card,
  .blog-card p,
  .blog-card h4,
  .blog-card h5 {
    max-height: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
  }
}



