/* ========== Modern Dark Mode Base Styles (Forced) ========== */
:root {
    --font-sans: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    --color-bg: #111827;
    --color-card-bg: #1f2937;
    --color-text: #f3f4f6;
    --color-primary: #3b82f6;
    --color-accent: #2563eb;
    --color-muted: #9ca3af;
    --color-border: #374151;
    --radius: 10px;
    --transition: 0.25s ease;
}

/* ========== Body ========== */
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ========== Main Layout ========== */
main {
    display: flex;
    gap: 1rem;

}

.cbott {
    width: 100%;
}

/* ========== Sidebar ========== */
aside {
    min-width: 250px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    height: fit-content;
    margin-top: 25px;
}

aside .aside-legend {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
    border-bottom: 2px solid var(--color-border);
}

aside ul li a strong {
    color: #e5e7eb;
}

/* ========== Header ========== */
header {
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.03);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
}

header p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--color-muted);
}

/* ========== Navigation ========== */
nav {
    background: #1e3a8a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    max-width: 1100px;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 14px 22px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--transition);
}

nav a:hover,
nav a:focus {
    background: var(--color-accent);
}

/* ========== Links ========== */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* ========== Container ========== */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.cbotti {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;


    margin-top: 25px;
}

/* ========== Typography ========== */
h2 {
    color: var(--color-primary);
    margin: 40px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    color: var(--color-text);
}

/* ========== Meta & Status ========== */
.live-meta,
.status-legend {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
}

.status-legend strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
}

/* ========== Board Grid ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.board-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
}

.board-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.06);
}

.board-item a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.board-item a:hover {
    text-decoration: underline;
}

/* ========== Status Circles ========== */
.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.status-2xx {
    background: #22c55e;
}

.status-3xx {
    background: #f59e0b;
}

.status-4xx {
    background: #ef4444;
}

.status-5xx {
    background: #991b1b;
}

.status-null {
    background: #9ca3af;
}

.board-item small {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--color-muted);
    display: flex;
    justify-content: space-between;
}

/* ========== Footer ========== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--color-muted);
    background: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
}

/* ========== Utility & Extras ========== */
.desc-preview {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 6px 0 10px;
}

.t {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ====== Recommended Boards Grid ====== */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.rec-board {
    background: var(--color-card-bg);
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.rec-board:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(255, 255, 255, 0.08);
}

.rec-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.rec-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.rec-board a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* ====== Comment Section ====== */
.comment-container {
    margin-top: 40px;
}

.comment-form {
    margin-bottom: 25px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-sizing: border-box;
    background: #111827;
    color: var(--color-text);
    transition: border var(--transition), background var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-accent);
    background: #1f2937;
    outline: none;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.comment-form button {
    padding: 10px 24px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition);
}

.comment-form button:hover {
    background: #1e40af;
}

/* ====== Comment List ====== */
.comments-list {
    margin-top: 10px;
}

.comment-item {
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    margin-bottom: 1rem;
}

.comment-meta {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.comment-meta strong {
    color: var(--color-text);
}

.comment-meta small {
    color: var(--color-muted);
    margin-left: 4px;
}

.comment-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

.no-comments {
    color: var(--color-muted);
    font-style: italic;
    margin-top: 8px;
}

.comment-result {
    margin-bottom: 15px;
    font-weight: 600;
}

.comment-success {
    color: #16a34a;
}

.comment-error {
    color: #dc2626;
}

.load-more-btn {
    width: 100%;
}

.load-more-btn:hover {
    background: #01579b;
    transition: background 0.3s ease;
}

.faq {
    background-color: var(--color-card-bg);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.1);
}

.h {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h h2 {
    margin: 0;
}

.faq h2 {
    margin-block: 1rem;
}

.no-desc::after {
    content: "No description yet";
    /* visible to users */
    color: #777;
    font-style: italic;
}

/* Make sure the element itself is empty (good for SEO) */
.no-desc {
    display: block;
}


/* ========== Responsive Design ========== */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .rec-board {
        padding: 12px;
    }

    .comment-form button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    main {
        flex-direction: column;
    }
}