/* Neo-brutalism Table Styles */

/* Table container */
#single .page-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
}

.dark #single .page-content table {
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.15);
    background-color: var(--background-color-dark);
}

/* Table header */
#single .page-content table > thead > tr > th {
    padding: 15px 20px !important;
    background-color: #000 !important;
    color: #fff !important;
    text-align: left;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark #single .page-content table > thead > tr > th {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
}

/* Table cells */
#single .page-content table > tbody > tr > td {
    padding: 15px 20px !important;
    border-top: 2px solid #000;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 1rem;
}

.dark #single .page-content table > tbody > tr > td {
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-color) !important;
}

/* Table rows */
#single .page-content table > tbody > tr {
    transition: all 0.2s ease;
}

#single .page-content table > tbody > tr:hover {
    background-color: var(--accent2) !important;
}

.dark #single .page-content table > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Alternating row colors */
#single .page-content table > tbody > tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.dark #single .page-content table > tbody > tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Responsive tables */
@media (max-width: 768px) {
    #single .page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    #single .page-content table > thead > tr > th,
    #single .page-content table > tbody > tr > td {
        padding: 12px 15px !important;
    }
}

/* Table caption */
#single .page-content table caption {
    caption-side: top;
    padding: 12px 15px;
    background-color: var(--accent1);
    color: #000 !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #000;
}

.dark #single .page-content table caption {
    border-bottom: 3px solid rgba(255, 255, 255, 0.7);
}

/* Table with border */
#single .page-content table.bordered > tbody > tr > td {
    border: 2px solid #000;
}

.dark #single .page-content table.bordered > tbody > tr > td {
    border: 2px solid rgba(255, 255, 255, 0.7);
}

/* First column styling */
#single .page-content table > tbody > tr > td:first-child {
    font-weight: bold;
}

/* Last row styling */
#single .page-content table > tbody > tr:last-child {
    border-bottom: none;
}

/* Table hover effect */
#single .page-content table:hover {
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.7);
    transform: translate(-2px, -2px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark #single .page-content table:hover {
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.15);
}
