/* Controls Section */ .controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; } /* Type Filters */ .type-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; } .type-filter { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; width: fit-content; transition: all var(--timing) var(--function); } .type-filter.active { flex: 2; } .type-filter span:first-of-type { max-width: 0; transform: scaleX(0); transform-origin: right; transition: max-width var(--timing) var(--function); transition-property: max-width, transform; } .type-filter.active span:first-of-type { max-width: 100%; transform: scaleX(1); transform-origin: left; transition: max-width var(--timing) var(--function); transition-property: max-width, transform; } .type-filter:hover, .type-filter.active { border-color: #FF0080; } .type-filter .count { background: #EFEFEF; padding: 0.25rem 0.5rem; border-radius: 12px; font-size: 0.875rem; } /* View Controls */ .view-toggle { padding: 0.5rem; border: none; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease; } .view-toggle[aria-pressed="true"] { opacity: 1; } /* Bulk Controls */ .bulk-controls { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: #EFEFEF; border-radius: 4px; margin-bottom: 1rem; } .bulk-select { display: flex; align-items: center; gap: 1rem; } .selected-count { color: #666; font-size: 0.875rem; } .bulk-actions { display: flex; align-items: center; gap: 0.5rem; } .bulk-actions button { padding: .5rem .75rem; } .bulk-actions button svg { width: var(--small); height: var(--small); } .bulk-action-select { padding: 0.5rem; border-radius: 4px; border: 1px solid #ddd; } /* Grid View */ .favourite-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: #EFEFEF; transition: transform 0.3s ease; } .favourite-item:hover { transform: translateY(-4px); } /*.favourite-item a:before,*/ /*.favourite-item a:after {*/ /* display: none;*/ /*}*/ .favourite-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; } /* List View */ .favourites-grid.list-view { display: block; } .list-view .favourite-item { display: flex; margin-bottom: 1rem; transform: none; } .list-view .favourite-item img { width: 150px; height: 150px; } .list-view .item-info { flex: 1; } /* Item Info */ .item-info { padding: 1rem; position: absolute; width: calc(100% - 2rem); bottom: 0; z-index: 5; text-align: center; background: rgba(250, 250, 250,.65); backdrop-filter: blur(5px); } .item-info h3 { margin: 0!important; font-size: 1.1rem; } .item-labels { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; } .label { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; } /* Lists Section */ .lists-section { margin: 2rem 0; } .lists-section h2 { font-size: 1.5rem; margin-bottom: 1rem; } .lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; } .list-card { padding: 1rem; background: #EFEFEF; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; } .list-card:hover { transform: translateY(-2px); background: #e5e5e5; } .list-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; } .list-card p { margin: 0 0 1rem; font-size: 0.875rem; color: #666; } .list-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; } .shared-status { display: flex; align-items: center; gap: 0.25rem; color: #FF0080; } /* Modals */ dialog { border: none; border-radius: 8px; padding: 2rem; max-width: 500px; width: 90%; background: #EFEFEF; } dialog::backdrop { background: rgba(27, 27, 27, 0.5); backdrop-filter: blur(2px); } dialog h2 { margin: 0 0 1.5rem; font-size: 1.5rem; } .field { margin-bottom: 1.5rem; } .field label { display: block; margin-bottom: 0.5rem; font-weight: bold; } .field input[type="text"], .field textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; } .field textarea { min-height: 100px; resize: vertical; } .lists-options { max-height: 300px; overflow-y: auto; margin-bottom: 1.5rem; } .list-option { display: flex; align-items: center; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 0.5rem; cursor: pointer; transition: background-color 0.3s ease; } .list-option:hover { background-color: #e5e5e5; } .list-option input[type="radio"] { margin-right: 1rem; } .list-name { flex: 1; } .item-count { color: #666; font-size: 0.875rem; } .actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; } .actions button[type="submit"] { width: fit-content; height: fit-content; } .create-list-btn { display: flex; align-items: center; gap: 0.5rem; background: #FF0080; color: white; } .create-list-btn:hover { background: #e60073; } .cancel { background: #EFEFEF; color: #666; } .cancel:hover { background: #e5e5e5; } .apply-bulk, .create, .add { background: #FF0080; color: white; } .apply-bulk:hover, .create:hover, .add:hover { background: #e60073; } /* Empty State */ .no-favourites { text-align: center; padding: 3rem; background: #EFEFEF; border-radius: 8px; } .no-favourites h3 { font-size: 1.5rem; margin-bottom: 1rem; } .no-favourites p { color: #666; margin-bottom: 0.5rem; } /* Selection Styles */ .favourite-select { position: absolute; top: 1rem; left: 1rem; z-index: 2; } button.favourite { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--light-0); } button.favourite:hover { color: var(--pink); background-color: rgba(250, 250, 250,65); backdrop-filter: blur(5px); } /* Responsive Adjustments */ @media (max-width: 768px) { .controls { flex-direction: column; align-items: stretch; } .bulk-controls { flex-direction: column; gap: 1rem; } .lists-grid { grid-template-columns: 1fr; } .list-view .favourite-item { flex-direction: column; } .list-view .favourite-item img { width: 100%; height: 200px; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .favourite-item { animation: fadeIn 0.3s ease; } /* List Management Styles */ .my-lists .lists { margin-top: 1rem; } .my-lists .no-items { text-align: center; padding: 2rem; color: #666; background: #EFEFEF; border-radius: 8px; } /* List Card Styles */ .list-card { background: #EFEFEF; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; transition: all var(--timing) var(--function); } .list-card:hover { transform: translateY(-2px); } .list-card .list-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; } .list-card h3 { margin: 0; font-size: 1.1rem; } .list-card .list-actions { display: flex; gap: 0.5rem; } .list-card .list-actions button { background: none; border: none; padding: 0.5rem; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; border-radius: 4px; transition: background-color var(--timing) var(--function); } .list-card .list-actions button:hover { background: rgba(0, 0, 0, 0.1); } .list-card .list-actions button span { font-size: 0.875rem; } .list-card .list-actions .delete-list { color: #dc2626; } .list-card p { margin: 0 0 1rem; font-size: 0.9rem; color: #666; } .list-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: #666; } .list-meta .shared-status { display: flex; align-items: center; gap: 0.25rem; color: #FF0080; } /* Create List Modal Styles */ .create-list-modal { border: none; border-radius: 8px; padding: 2rem; max-width: 500px; background: #EFEFEF; } .create-list-modal::backdrop { background: rgba(27, 27, 27, 0.5); backdrop-filter: blur(2px); } .create-list-modal h2 { margin: 0 0 1.5rem; font-size: 1.5rem; } .create-list-modal .field { margin-bottom: 1.5rem; } .create-list-modal .field label { display: block; margin-bottom: 0.5rem; font-weight: 500; } .create-list-modal .field input, .create-list-modal .field textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; } .create-list-modal .field textarea { min-height: 100px; resize: vertical; } .create-list-modal .actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; } .create-list-modal .actions button { padding: 0.75rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all var(--timing) var(--function); } .create-list-modal .actions .cancel { background: #e5e5e5; color: #666; } .create-list-modal .actions .create { background: #FF0080; color: white; } .create-list-modal .actions button:hover { transform: translateY(-1px); } /* Viewing List State */ body.viewing-list .type-filters { opacity: 0.5; pointer-events: none; } body.viewing-list .my-lists { position: relative; } body.viewing-list .my-lists::after { content: 'Viewing List'; position: absolute; top: 1rem; right: 1rem; background: #FF0080; color: white; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.875rem; } /* Viewing List State */ body.viewing-list .my-lists { position: relative; } body.viewing-list .my-lists::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(183, 51, 46, 0.05); pointer-events: none; border-radius: 8px; } body.viewing-list .list-card[data-id="${currentListId}"] { background: #FF0080; color: white; } body.viewing-list .list-card[data-id="${currentListId}"] p { color: rgba(255, 255, 255, 0.8); } /* Clear List View Button */ .clear-list-view { position: absolute; top: 1rem; right: 1rem; background: #FF0080; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; transition: all var(--timing) var(--function); } .clear-list-view:hover { transform: translateY(-1px); background: #e60073; } /* Empty List State */ .list-empty-state { background: #EFEFEF; padding: 2rem; border-radius: 8px; text-align: center; margin: 2rem 0; grid-column: span 3; } .list-empty-state h3 { margin: 0 0 1rem; font-size: 1.5rem; font-family: var(--heading); } .list-empty-state p { margin: 0 0 1rem; } .list-empty-state ol { text-align: left; max-width: 400px; margin: 1rem auto; } .list-empty-state ol li { margin-bottom: 0.5rem; } .list-empty-state .start-browsing { display: inline-flex; align-items: center; gap: 0.5rem; background: #FF0080; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: all var(--timing) var(--function); margin-top: 1rem; } .list-empty-state .start-browsing:hover { background: #e60073; transform: translateY(-2px); } /* Also add a back button when viewing a list */ body.viewing-list .my-lists::before { content: "← Back to All"; position: absolute; top: 1rem; left: 1rem; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.875rem; cursor: pointer; transition: all var(--timing) var(--function); color: #FF0080; } body.viewing-list .my-lists::before:hover { background: rgba(183, 51, 46, 0.1); } /* Add to List Modal Styles */ .lists-options { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; } .list-option { display: flex; align-items: center; padding: 0.75rem; border: 2px solid #EFEFEF; border-radius: 4px; cursor: pointer; transition: all var(--timing) var(--function); } .list-option:hover { border-color: #FF0080; } .list-option input[type="radio"] { margin-right: 1rem; } .list-details { display: flex; flex-direction: column; gap: 0.25rem; } .list-name { font-weight: 500; } .item-count { font-size: 0.875rem; color: #666; } .list-divider { position: relative; text-align: center; margin: 1rem 0; } .list-divider::before, .list-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 2rem); height: 1px; background: #ddd; } .list-divider::before { left: 0; } .list-divider::after { right: 0; } .list-divider span { background: #EFEFEF; padding: 0 1rem; color: #666; font-size: 0.875rem; } .create-new-list { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem; background: #FF0080; color: white; border: none; border-radius: 4px; cursor: pointer; transition: all var(--timing) var(--function); } .create-new-list:hover { background: #e60073; transform: translateY(-1px); } .no-lists { text-align: center; padding: 1rem; color: #666; margin-bottom: 1rem; } .share-list-modal { max-width: 500px; width: 90%; } .share-input-group { margin-bottom: 1.5rem; } .input-with-button { display: flex; gap: 0.5rem; } .input-with-button input { flex: 1; } .shared-with { margin-top: 2rem; } .shared-users { margin-top: 1rem; } .shared-user { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-radius: 4px; background: #EFEFEF; margin-bottom: 0.5rem; } .shared-user button { color: #FF0080; padding: 0.25rem; } .shared-user button:hover { background: rgba(183, 51, 46, 0.1); border-radius: 4px; } .shared-user.pending { background: rgba(183, 51, 46, 0.05); border: 1px dashed #FF0080; } .pending-badge { background: #FF0080; color: white; padding: 0.25rem 0.5rem; border-radius: 12px; font-size: 0.75rem; } .shared-user.pending .delete-button { opacity: 0.5; cursor: not-allowed; } .list-meta .meta-stats { display: flex; justify-content: space-between; width:100%; gap: 0.25rem; } .list-meta .share-count { font-size: 0.9em; color: #666; } .notes-section { margin-top: 1rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 0.5rem; } .toggle-notes { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; padding: 0.25rem 0; color: #666; cursor: pointer; } .toggle-notes:hover { color: #FF0080; } .notes-content { margin-top: 0.5rem; } .notes-input { width: 100%; min-height: 80px; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; resize: vertical; font-family: inherit; } .notes-input:focus { outline: none; border-color: #FF0080; }