/* =============================================================
   ManyPerson — 둘러보기(Explore) 페이지 전용 CSS
   실시간 최신, 전체 시뮬레이션 목록
   ============================================================= */

/* ===== 페이지 헤더 ===== */
.explore-main {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}
@media (min-width: 1024px) {
    .explore-main { padding: 4rem 2rem 5rem; }
}

.explore-header {
    margin-bottom: 3rem;
}

.explore-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.explore-title-wrap .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}

.explore-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.explore-desc {
    color: var(--slate-500);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== 실시간 최신 시뮬레이션 섹션 ===== */
.latest-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* 실시간 초록 점 (깜박이는 애니메이션) */
.latest-dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); }
}

/* 최신 시뮬레이션 그리드 */
.latest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .latest-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 최신 시뮬레이션 카드 */
.latest-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.25s ease;
    cursor: pointer;
}
.latest-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 127, 255, 0.25);
    transform: translateY(-2px);
}

.latest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
}

.latest-dot-sm {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #22c55e;
}

.latest-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}
.latest-views .material-symbols-outlined { font-size: 0.875rem; }

.latest-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.latest-card:hover .latest-card-title { color: var(--primary); }

.latest-card-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}
.latest-card-meta .material-symbols-outlined { font-size: 0.875rem; }

/* ===== 전체 시뮬레이션 목록 섹션 ===== */
.list-section {
    margin-bottom: 2rem;
}

/* 시뮬레이션 리스트 */
.sim-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: opacity 0.2s ease;
}

.sim-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s;
    cursor: pointer;
}
.sim-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 127, 255, 0.2);
}

.sim-item-content {
    flex: 1;
    min-width: 0;
}

.sim-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--charcoal);
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sim-item:hover .sim-item-title { color: var(--primary); }

.sim-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}
.sim-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.sim-item-meta .material-symbols-outlined { font-size: 0.875rem; }

.sim-item-views {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-400);
    flex-shrink: 0;
    transition: color 0.2s;
}
.sim-item:hover .sim-item-views { color: var(--primary); }
.sim-item-views .material-symbols-outlined { font-size: 1.125rem; }
.sim-item-views span:last-child {
    font-size: 0.875rem;
    font-weight: 700;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: opacity 0.2s ease;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover {
    background: var(--slate-50);
    border-color: var(--primary);
    color: var(--primary);
}
.page-btn-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 127, 255, 0.25);
}
.page-btn-active:hover {
    background: var(--primary);
    color: #fff;
}

/* 빈 상태 */
.list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--slate-400);
    text-align: center;
}
.list-empty .material-symbols-outlined { font-size: 3rem; }
.list-empty p { font-size: 1rem; }

/* 로딩 플레이스홀더 */
.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--slate-400);
    font-size: 0.875rem;
}
.loading-placeholder.error {
    color: var(--red-500);
}
