/**
 * Top 10 Frontend Styles
 * Styles for Top 10 Fabrics and Colors display
 */

.tkaniny-top10-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Toggle Buttons Header */
.tkaniny-top10-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.tkaniny-top10-toggle {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tkaniny-top10-toggle:hover {
    background: #1E90FF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tkaniny-top10-toggle.active {
    background: #1E90FF;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Table Wrapper */
.tkaniny-top10-table-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tkaniny-top10-table-wrapper.active {
    display: block;
    opacity: 1;
}

/* Table Styles */
.tkaniny-top10-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.tkaniny-top10-table thead {
    background: #333;
    color: #fff;
}

.tkaniny-top10-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.tkaniny-top10-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.tkaniny-top10-table tbody tr:hover {
    background-color: #f5f5f5;
}

.tkaniny-top10-table tbody tr:last-child {
    border-bottom: none;
}

.tkaniny-top10-table tbody td {
    padding: 15px 20px;
    font-size: 15px;
}

/* Column widths */
.tkaniny-top10-table .position-col {
    width: 100px;
    text-align: center;
    font-weight: bold;
    color: #1E90FF;
}

.tkaniny-top10-table .name-col {
    width: auto;
}

.tkaniny-top10-table .count-col {
    width: 200px;
    text-align: right;
    font-weight: 600;
}

/* Links in table */
.tkaniny-top10-table .name-col a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tkaniny-top10-table .name-col a:hover {
    color: #1E90FF;
    text-decoration: underline;
}

/* Top 3 highlighting */
.tkaniny-top10-table tbody tr:nth-child(1) .position-col {
    color: #FFD700;
    font-size: 18px;
}

.tkaniny-top10-table tbody tr:nth-child(2) .position-col {
    color: #C0C0C0;
    font-size: 17px;
}

.tkaniny-top10-table tbody tr:nth-child(3) .position-col {
    color: #CD7F32;
    font-size: 16px;
}

/* Empty state */
.tkaniny-top10-table tbody td[colspan="3"] {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .tkaniny-top10-header {
        flex-direction: column;
        gap: 10px;
    }

    .tkaniny-top10-toggle {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .tkaniny-top10-table thead th,
    .tkaniny-top10-table tbody td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .tkaniny-top10-table .position-col {
        width: 60px;
    }

    .tkaniny-top10-table .count-col {
        width: 100px;
        font-size: 13px;
    }
}
