/* 내 항목 (Saved Items) 프리미엄 스타일 시트 */

.saved-items-view {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-color);
    color: var(--text-main);
    scrollbar-gutter: stable;
}

/* 1. 상단 타이틀 및 필터 영역 */
.si-page-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.si-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.si-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.si-title-wrapper i {
    color: #8b5cf6; /* 매혹적인 보랏빛 HSL 컬러 */
    width: 28px;
    height: 28px;
}

.si-title-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.5px;
}

/* 검색 및 탭 툴바 */
.si-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Glassmorphism 탭 디자인 */
.si-tabs {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.si-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.si-tab-btn:hover {
    color: var(--text-main);
    background: var(--card-hover);
}

.si-tab-btn.active {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* 프리미엄 검색 박스 */
.si-search-wrapper {
    position: relative;
    width: 320px;
    min-width: 240px;
}

.si-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.si-search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.si-search-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: var(--card-hover);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* 2. 자산 그리드 레이아웃 */
.si-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

/* 3. 프리미엄 카드 디자인 */
.si-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 310px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.si-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--card-hover);
    box-shadow: var(--premium-shadow), 0 4px 12px rgba(139, 92, 246, 0.05);
}

/* 미디어 썸네일 영역 */
.si-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.si-card-media img, .si-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.si-card:hover .si-card-media img {
    transform: scale(1.06);
}

/* 비디오 재생 오버레이 버튼 */
.si-video-play-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: background 0.2s ease;
}

/* 캔버스 전용 카드 레이아웃 */
.si-card-canvas-preview {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.si-canvas-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.si-canvas-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.si-canvas-chip {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.si-canvas-text-preview {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary, #9ca3af);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 12px;
}

/* 카드 하단 정보 텍스트 */
.si-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.si-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary, #9ca3af);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.78rem;
    color: #6b7280;
}

/* 4. 호버 페이드인 오버레이 액션 버튼 */
.si-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s ease;
    z-index: 10;
}

.si-card:hover .si-card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* 4. 호버 페이드인 오버레이 액션 버튼 */
.si-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.si-action-btn:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
    background: #8b5cf6;
    transform: scale(1.08);
}

.si-action-btn.delete:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: #ef4444;
}

/* 5. 빈 상태 뷰 */
.si-empty-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary, #9ca3af);
    gap: 16px;
}

.si-empty-view i {
    width: 48px;
    height: 48px;
    color: #4b5563;
}

.si-empty-view span {
    font-size: 1.05rem;
    font-weight: 500;
}

/* 미디어가 로딩 중일 때 표시할 스켈레톤 */
.si-skeleton-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.si-skeleton-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: si-shimmer 1.5s infinite;
}

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