/**
 * דף תוצאות – עיצוב מקצועי, נקי ומסודר
 */

.results-page #pageContent {
    padding-top: 8px;
}

.results-page .results-page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.results-page .results-page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.results-page .results-page-title .results-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.results-page .results-page-title .results-page-title-icon svg {
    width: 100%;
    height: 100%;
}

.results-page .results-page-subtitle {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.results-page .results-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    align-items: end;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.results-page .results-filter-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 0;
}

.results-page .results-filter-field > span {
    white-space: nowrap;
}

.results-page .results-filter-input {
    width: 100%;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(13, 18, 28, 0.72);
    color: rgba(255, 255, 255, 0.94);
    padding: 0 6px;
    font-size: 0.74rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.results-page #resultsPerPage {
    width: 100%;
}

.results-page select.results-filter-input option {
    background: #1a1f2b;
    color: #f3f4f6;
}

.results-page .results-filter-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22);
    background: rgba(13, 18, 28, 0.9);
}

.results-page .results-filter-btn {
    height: 26px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.26));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 8px;
    width: 100%;
    transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.results-page .results-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.75);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25);
}

.results-page .results-filter-btn--ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.results-page .results-filter-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

@media (max-width: 760px) {
    .results-page .results-filters {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .results-page .results-filters {
        grid-template-columns: 1fr;
    }
}

/* כרטיס הגרלה בודד */
.results-page .result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.results-page .result-card:last-child {
    margin-bottom: 0;
}

.results-page .result-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

/* הגרלה אחרונה – הדגשה קלה */
.results-page .result-card.result-card--latest {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.results-page .result-card .result-card-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.results-page .result-card .result-draw-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
}

.results-page .result-card--latest .result-draw-badge {
    background: rgba(34, 197, 94, 0.25);
    color: rgba(255, 255, 255, 0.98);
}

.results-page .result-card .result-draw-meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.results-page .result-card .result-cards-wrap {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.results-page .result-card .result-cards-wrap .playing-card {
    --card-width: 64px;
    --card-height: 90px;
    --card-padding: 5px;
    --card-radius: 6px;
}

.results-page .result-card .result-cards-wrap .playing-card__index {
    font-size: 0.85rem;
}

.results-page .result-card .result-cards-wrap .playing-card__suit-icon {
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

/* מצב ריק */
.results-page .results-empty {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.results-page .results-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, 0.25);
}

.results-page .results-empty-icon svg {
    width: 100%;
    height: 100%;
}

.results-page .results-empty-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.results-page .results-empty-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.results-page .site-footer {
    margin-top: 32px;
}

.results-page .results-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.results-page .results-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.results-page .results-page-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.results-page .results-page-link.is-active {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #fff;
}

.results-page .results-page-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
