/* ================================================================
   World Lotto Pro — Frontend Styles
   ================================================================ */

.wlp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    color: #1e293b;
}

/* ── Başlık ── */
.wlp-header {
    text-align: center;
    margin-bottom: 28px;
}
.wlp-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}
.wlp-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* ── Grid ── */
.wlp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ── Kart ── */
.wlp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wlp-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

/* ── Kart Başlığı ── */
.wlp-card-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    flex-wrap: wrap;
    gap: 6px;
}
.wlp-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
}
.wlp-icon {
    font-size: 20px;
    line-height: 1;
}
.wlp-country {
    font-size: 11px;
    background: rgba(255,255,255,0.22);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.wlp-draw-days {
    font-size: 11px;
    opacity: 0.85;
    background: rgba(255,255,255,0.18);
    padding: 3px 8px;
    border-radius: 12px;
}

/* ── Kart Gövdesi ── */
.wlp-card-body {
    padding: 16px 18px;
}

/* ── Tarih Satırı ── */
.wlp-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
}
.wlp-source-link {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.wlp-source-link:hover { color: #667eea; }

/* ── Sayı Topları ── */
.wlp-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}
.wlp-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    background: #1e293b;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s;
}
.wlp-ball:hover { transform: scale(1.1); }
.wlp-ball-extra {
    background: #f59e0b;
    width: 36px;
    height: 36px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}

/* ── Extras ── */
.wlp-extras {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.wlp-extra-label {
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 7px;
    border-radius: 8px;
}

/* ── Jackpot Rozeti ── */
.wlp-jackpots {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wlp-jackpot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.wlp-next-jackpot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Yenile Butonu ── */
.wlp-refresh-btn {
    margin-top: 12px;
    padding: 7px 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.wlp-refresh-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}
.wlp-refresh-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ── Footer ── */
.wlp-footer {
    margin-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}
.wlp-cache-badge {
    background: #f0fdf4;
    color: #166534;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* ── Hata ── */
.wlp-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}

/* ── Loading ── */
.wlp-loading {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .wlp-grid {
        grid-template-columns: 1fr;
    }
    .wlp-title {
        font-size: 1.5rem;
    }
    .wlp-ball {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .wlp-ball-extra {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .wlp-wrapper { padding: 10px; }
    .wlp-card-body { padding: 12px 14px; }
}