/**
 * Styles for the [topbills] shortcode
 */

/* Container for the top bills table */
.billbuddy-topbills-container {
    margin: 1rem 0;
    max-width: 100%;
    overflow-x: auto;
}

/* Table styling */
.billbuddy-topbills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    table-layout: fixed;
}

/* Table header */
.billbuddy-topbills-table thead {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.billbuddy-topbills-table th {
    padding: 5px 18px;
    text-align: left;
    font-weight: 600;
}

/* Column widths */
.billbuddy-topbills-table th:nth-child(1) {
    width: 15%;
    text-align: center;
}

.billbuddy-topbills-table th:nth-child(2) {
    width: 45%;
}

.billbuddy-topbills-table th:nth-child(3) {
    width: 40%;
}

/* Table body */
.billbuddy-topbills-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.billbuddy-topbills-table tbody tr:last-child {
    border-bottom: none;
}

.billbuddy-topbills-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.billbuddy-topbills-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.billbuddy-topbills-table td {
    padding: 5px 18px;
    vertical-align: middle;
}

/* Rank column */
.billbuddy-topbills-table td:nth-child(1) {
    text-align: center;
    font-weight: 600;
}

/* Bill number column */
.billbuddy-topbills-table td:nth-child(2) a {
    text-decoration: none;
    font-weight: 600;
}

.billbuddy-topbills-table td:nth-child(2) a:hover {
    text-decoration: underline;
}

/* Popularity column */
.billbuddy-topbills-table td:nth-child(3) {
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 576px) {
    .billbuddy-topbills-table {
        font-size: 13px;
    }

    .billbuddy-topbills-table th,
    .billbuddy-topbills-table td {
        padding: 4px 12px;
    }
}

/* No styling for count shortcodes - will be styled by theme */
