/** * 내 덱 관리·공개 덱 페이지 (deckHistory.html, preset.html) */ .deck-history-page { /* 배경·폰트는 .app-page */ } .deck-history-main { width: 100%; } .deck-history-header { margin-bottom: 2rem; } .deck-history-header h1 { font-size: 1.75rem; font-weight: 900; color: #0f172a; margin: 0 0 0.5rem; letter-spacing: -0.02em; } .deck-history-header p { font-size: 0.875rem; color: #64748b; margin: 0; line-height: 1.5; } .deck-history-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); } .deck-history-toolbar.hidden { display: none; } .deck-search-input { flex: 1 1 12rem; min-width: 0; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.625rem 1rem; font-size: 0.875rem; color: #0f172a; background: #f8fafc; outline: none; transition: border-color 0.2s, box-shadow 0.2s; } .deck-search-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); background: #fff; } .deck-search-input::placeholder { color: #94a3b8; } .deck-series-select { flex: 0 1 11rem; min-width: 9rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.625rem 2rem 0.625rem 1rem; font-size: 0.875rem; color: #0f172a; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center; appearance: none; cursor: pointer; outline: none; } .deck-series-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); background-color: #fff; } .deck-count-label { flex: 0 0 auto; font-size: 0.75rem; font-weight: 600; color: #94a3b8; white-space: nowrap; } .deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; } .deck-grid-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; font-size: 0.875rem; color: #94a3b8; } .deck-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; } .deck-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); transform: translateY(-2px); } .deck-card-preview { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border-bottom: 1px solid #e2e8f0; overflow: hidden; } .deck-card-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f8fafc; } .deck-card-preview-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 0.75rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; line-height: 1.4; padding: 0.5rem; } .deck-card-preview-placeholder span { display: block; margin-top: 0.25rem; font-size: 0.625rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: #cbd5e1; } .deck-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.125rem 1.125rem; gap: 0.5rem; } .deck-card-title { font-size: 0.9375rem; font-weight: 700; color: #0f172a; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .deck-card-meta { font-size: 0.75rem; color: #94a3b8; line-height: 1.4; } .deck-card-series { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: #2563eb; background: #eff6ff; padding: 0.2rem 0.5rem; border-radius: 0.375rem; margin-bottom: 0.125rem; } .deck-card-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; } .deck-card-btn { flex: 1; padding: 0.5rem 0.375rem; border: none; border-radius: 0.625rem; font-size: 0.6875rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap; } .deck-card-btn:active { transform: scale(0.97); } .deck-card-btn-load { background: #2563eb; color: #fff; } .deck-card-btn-load:hover { background: #1d4ed8; } .deck-card-btn-copy { background: #f1f5f9; color: #475569; } .deck-card-btn-copy:hover { background: #e2e8f0; } .deck-card-btn-delete { flex: 0 0 auto; padding-left: 0.625rem; padding-right: 0.625rem; background: #fef2f2; color: #dc2626; } .deck-card-btn-delete:hover { background: #fee2e2; } .deck-card-visibility { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.125rem; flex-wrap: wrap; } .deck-card-badge-public { font-size: 0.625rem; font-weight: 700; color: #059669; background: #ecfdf5; padding: 0.15rem 0.45rem; border-radius: 0.375rem; } .deck-card-badge-private { font-size: 0.625rem; font-weight: 700; color: #64748b; background: #f1f5f9; padding: 0.15rem 0.45rem; border-radius: 0.375rem; } .deck-card-btn-toggle { flex: 1; background: #f0fdf4; color: #047857; } .deck-card-btn-toggle.is-public { background: #f8fafc; color: #64748b; } .deck-card-btn-toggle:hover { background: #dcfce7; } .deck-card-btn-toggle.is-public:hover { background: #e2e8f0; } .deck-status-message { text-align: center; padding: 3rem 1rem; font-size: 0.875rem; color: #94a3b8; } .deck-status-message.error { color: #ef4444; }