
/* ==========================================
   TRAUM ENCYCLOPEDIA — PERLITE STYLES
   ========================================== */

/* ------------------------------------------
   1. GENERAL TABLES
   ------------------------------------------ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

/* Dark header cells */
table thead th {
    background: #293746 !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #405163;
}

/* Alternating body rows */
table tbody tr:nth-child(odd) {
    background: var(--background-primary, #202020);
}

table tbody tr:nth-child(even) {
    background: var(--background-secondary, #292929);
}

table tbody td {
    padding: 10px 14px;
    border: 1px solid var(--background-modifier-border, #444);
    vertical-align: middle;
}

/* Hover on both row colors */
table tbody tr:nth-child(odd):hover td,
table tbody tr:nth-child(even):hover td {
    background: var(--background-modifier-hover, #3a4652) !important;
}

/* ------------------------------------------
   2. HEADERLESS TABLES
   ------------------------------------------ */

/* Requires no-table-header class on page */
.no-table-header table thead th {
    background: var(--background-secondary, #292929) !important;
    color: var(--text-normal, #ddd) !important;
    font-weight: 400 !important;
    padding: 10px 14px;
    border-color: var(--background-modifier-border, #444);
}

.no-table-header table thead tr:hover th {
    background: var(--background-modifier-hover, #3a4652) !important;
}

/* ------------------------------------------
   3. CALENDAR TABLES
   ------------------------------------------ */

.traum-calendar table {
    width: 100%;
    table-layout: fixed;
    text-align: center;
}

.traum-calendar table thead th {
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
    padding: 14px 8px;
    background: var(--background-secondary, #292929) !important;
    color: var(--text-normal, #ddd) !important;
}

.traum-calendar table tbody td {
    font-size: 1.25em;
    font-weight: 500;
    padding: 18px 8px;
    text-align: center;
}

.traum-calendar table tbody tr:nth-child(even) td {
    background: var(--background-secondary, #292929);
}

/* ------------------------------------------
   4. RIGHT-FLOATING INFOBOXES
   ------------------------------------------ */

.callout[data-callout="infobox"] {
    --callout-color: 95, 115, 135;

    float: right;
    width: 280px;
    max-width: 42%;
    box-sizing: border-box;

    margin: 0 0 16px 24px;
    padding: 12px;

    border: 1px solid var(--background-modifier-border, #444);
    border-radius: 8px;
    background: var(--background-secondary, #292929);
}

.callout[data-callout="infobox"] .callout-title {
    justify-content: center;
    font-size: 1.1em;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--background-modifier-border, #444);
}

.callout[data-callout="infobox"] .callout-icon {
    display: none;
}

.callout[data-callout="infobox"] .callout-content {
    font-size: 0.9em;
    line-height: 1.5;
}

.callout[data-callout="infobox"] .callout-content p {
    margin: 8px 0;
}

/* ------------------------------------------
   5. RESPONSIVE LAYOUT
   ------------------------------------------ */

@media (max-width: 700px) {
    .callout[data-callout="infobox"] {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 12px 0;
    }
}
