/* Spin Table Shortcode - CSS */
.spin-table-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Header */
.spin-table-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 18px 20px;
    color: #fff;
}

.spin-table-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.spin-table-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.spin-table-meta {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

/* Table */
.spin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.spin-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.spin-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.spin-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.spin-table tbody tr:last-child td { border-bottom: none; }

.spin-table tbody tr:hover { background: #f8faff; }

/* Columns */
.spin-num { color: #94a3b8; font-size: 13px; width: 36px; }

/* Spin count badge */
.spin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.spin-badge-unknown {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Group */
.spin-group {
    font-size: 13px;
    color: #64748b;
    max-width: 180px;
}

/* Source tag */
.spin-source-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #ede9fe;
    color: #6d28d9;
    white-space: nowrap;
    margin: 2px;
}

.spin-source-topzone     { background: #dbeafe; color: #1d4ed8; }
.spin-source-levvvel     { background: #dcfce7; color: #15803d; }
.spin-source-coinmaster_daily { background: #fef9c3; color: #a16207; }
.spin-source-gamevui     { background: #fee2e2; color: #b91c1c; }
.spin-source-pocketgamer { background: #f3e8ff; color: #7e22ce; }


/* CTA Button */
.spin-btn {
    display: inline-block;
    background: linear-gradient(180deg, #ffb300 0%, #ff7300 100%);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter .2s, transform .1s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 115, 0, 0.2);
}

.spin-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Footer */
.spin-table-footer {
    background: #f8fafc;
    margin: 0;
    padding: 10px 20px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

/* Accordions */
.spin-accordions {
    background: #fff;
}

.spin-accordion-item {
    border-bottom: 1px solid #f1f5f9;
}

.spin-accordion-item:last-child {
    border-bottom: none;
}

.spin-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: none;
    outline: none;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spin-accordion-header:hover {
    background: #f1f5f9;
}

.spin-accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.spin-accordion-arrow {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.spin-accordion-item.active .spin-accordion-header {
    background: #f1f5f9;
}

.spin-accordion-item.active .spin-accordion-arrow {
    transform: rotate(180deg);
}

.spin-accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.spin-accordion-inner {
    padding: 0;
}

/* Today Updating Status */
.spin-today-updating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    padding: 16px 20px;
}

.spin-today-updating-title {
    font-size: 15px;
    font-weight: 600;
    color: #b45309;
}

.spin-today-updating-status {
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
    .spin-table .spin-group { display: none; }
    .spin-table th:nth-child(3) { display: none; }
    .spin-btn { padding: 6px 10px; font-size: 12px; }
    .spin-accordion-header { padding: 14px 16px; }
    .spin-accordion-title { font-size: 14px; }
    .spin-today-updating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }
    .spin-today-updating-title { font-size: 14px; }
}
