/* ================================================
   슬롯 무료 플레이 페이지 — Spokaz 라이트 테마
   ================================================ */

.spk-slot-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }

/* 히어로 */
.spk-slot-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--spk-radius);
    background: linear-gradient(135deg, #0c2d5e, #1a6dff);
    color: #fff;
    padding: 26px 28px;
    box-shadow: var(--spk-shadow);
}
.spk-slot-hero::after {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.spk-slot-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.spk-slot-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--spk-accent);
    margin-bottom: 8px;
}
.spk-slot-hero h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.spk-slot-hero h1 small {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.05em;
}
.spk-slot-hero p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}
.spk-slot-meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    flex-wrap: wrap;
}
.spk-slot-meta strong { color: var(--spk-accent); font-weight: 900; }
.spk-slot-meta i { margin-right: 5px; }

/* 툴바 (검색 + 카운터) */
.spk-slot-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow-soft);
    border: 1px solid rgba(200, 213, 227, 0.6);
}
.spk-slot-search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.spk-slot-search i.fa-search {
    position: absolute;
    left: 12px;
    color: var(--spk-muted);
    font-size: 13px;
}
.spk-slot-search input {
    flex: 1;
    width: 100%;
    padding: 10px 38px 10px 36px;
    border: 1.5px solid var(--spk-line);
    border-radius: 10px;
    font-size: 13px;
    background: #f5f8fc;
    outline: none;
    font-family: inherit;
}
.spk-slot-search input:focus { border-color: var(--spk-primary); background: #fff; }
.spk-slot-search button {
    position: absolute;
    right: 6px;
    width: 28px; height: 28px;
    border: 0;
    background: transparent;
    color: var(--spk-muted);
    cursor: pointer;
    border-radius: 50%;
    font-size: 12px;
}
.spk-slot-search button:hover { background: var(--spk-line); color: var(--spk-text); }
.spk-slot-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--spk-muted);
}

/* 그리드 */
.spk-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.spk-slot-card {
    display: flex;
    flex-direction: column;
    background: var(--spk-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(200, 213, 227, 0.6);
    box-shadow: var(--spk-shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    cursor: pointer;
}
.spk-slot-card:hover {
    transform: translateY(-3px);
    border-color: var(--spk-primary);
    box-shadow: 0 12px 28px rgba(26, 109, 255, 0.18);
}
.spk-slot-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0a1628;
    overflow: hidden;
}
.spk-slot-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.spk-slot-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0) 20%, rgba(10, 22, 40, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}
.spk-slot-card:hover .spk-slot-hover { opacity: 1; }
.spk-slot-hover i {
    font-size: 32px;
    color: var(--spk-accent);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.spk-slot-hover span { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; }

.spk-slot-name {
    padding: 8px 10px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--spk-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.spk-slot-empty {
    padding: 60px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--spk-muted);
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    border: 1px dashed var(--spk-line);
}

/* 모달 */
.spk-slot-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 18, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: spkSlotFadeIn .2s ease;
}
.spk-slot-modal[hidden] { display: none; }
@keyframes spkSlotFadeIn { from { opacity: 0; } to { opacity: 1; } }
.spk-slot-modal-box {
    display: flex;
    flex-direction: column;
    width: min(1080px, 96vw);
    height: min(720px, 92vh);
    background: #0b1628;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.spk-slot-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0c2d5e, #1a6dff);
    color: #fff;
}
.spk-slot-modal-head strong { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.spk-slot-modal-actions { display: flex; gap: 6px; }
.spk-slot-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    font-family: inherit;
}
.spk-slot-btn:hover { background: rgba(255, 255, 255, 0.1); }
.spk-slot-btn.is-outline { background: transparent; }
.spk-slot-btn.is-primary { background: var(--spk-accent); border-color: var(--spk-accent); color: #1a2238; }
.spk-slot-btn.is-primary:hover { background: #ffd966; }
.spk-slot-modal-body {
    flex: 1;
    background: #000;
    display: flex;
}
.spk-slot-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* 반응형 */
@media (max-width: 720px) {
    .spk-slot-hero { padding: 20px 18px; }
    .spk-slot-hero h1 { font-size: 22px; }
    .spk-slot-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .spk-slot-name { font-size: 11px; min-height: 36px; }
    .spk-slot-toolbar { flex-direction: column; align-items: stretch; }
    .spk-slot-count { align-self: flex-end; }
}
