/* ============================================
   Ganhadores (Winners)
   ============================================ */

.win-page {
    min-height: 100vh;
    background: #0a6b35;
    padding-bottom: 100px;
    position: relative;
    overflow-x: hidden;
}

.win-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
}

/* Loading */
.win-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.win-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: winSpin 0.8s linear infinite;
}

@keyframes winSpin {
    to { transform: rotate(360deg); }
}

.win-loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Error */
.win-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.win-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Content */
.win-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

/* Title */
.win-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 24px 0 24px;
}

/* Info Card */
.win-info-card {
    background: #fff;
    border: 2px solid #ffd401;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.win-info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0a2e1a;
    margin-bottom: 16px;
}

.win-info-header i {
    font-size: 20px;
    color: #0a2e1a;
}

.win-info-text {
    font-size: 14px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* Section */
.win-section {
    margin-bottom: 24px;
}

.win-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.win-section-header i {
    font-size: 20px;
}

/* Empty card */
.win-empty-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.win-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.win-empty-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Draw Result Card */
.win-draw-card {
    background: #1a3a8a;
    border: 2px solid #42A5F5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.win-draw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.win-draw-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.win-draw-date-badge {
    background: rgba(255, 212, 1, 0.2);
    color: #ffd401;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Winner row */
.win-winner-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.win-position-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0a2e1a;
    flex-shrink: 0;
}

.win-position-1 { background: #ffd401; }
.win-position-2 { background: #C0C0C0; }
.win-position-3 { background: #CD7F32; }
.win-position-other { background: #6b7280; color: #fff; }

.win-winner-info {
    flex: 1;
}

.win-winner-prize {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.win-winner-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.win-winner-name {
    font-size: 13px;
    color: #fff;
}

.win-winner-number {
    background: rgba(255, 212, 1, 0.2);
    color: #ffd401;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* No winners */
.win-no-winners {
    font-size: 14px;
    color: #fff;
}

/* User participation */
.win-user-participation {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-user-participation i {
    font-size: 18px;
}

.win-user-participation span {
    font-size: 13px;
    font-weight: 600;
}

.win-user-won {
    color: #ffd401;
}

.win-user-participated {
    color: rgba(255, 255, 255, 0.7);
}

/* Shimmer loading */
.win-shimmer-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.win-shimmer-line {
    height: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: winShimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}

.win-shimmer-line.short { width: 60%; }
.win-shimmer-line.medium { width: 80%; }

@keyframes winShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pagination */
.win-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 24px;
}

.win-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-page-btn:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
}

.win-page-info {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Actions */
.win-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-bottom: 24px;
}

/* Buttons */
.win-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.win-btn-primary {
    background: #ffd401;
    color: #0a2e1a;
}

.win-btn-primary:hover {
    background: #ffe033;
}

.win-btn-white {
    background: #fff;
    color: #0a2e1a;
}

.win-btn-white:hover {
    background: #f5f5f5;
    color: #0a2e1a;
}

/* Responsive */
@media (max-width: 480px) {
    .win-content { padding: 0 16px; }
}
