/* ========================================================= WATCHLIST style.css Design: modern, organic, peaceful, clean, expensive ========================================================= */ /* Google Fonts loaded in HTML (DM Sans + DM Serif Display) */ /* Bootstrap 5 CDN (loaded via index.php ) */ /* CSS Custom Properties */ :root { --sage: #8aad8f; --sage-light: #b5ccb8; --sage-dark: #5d8264; --cream: #f7f4ee; --cream-deep: #ede8df; --stone: #c4b9a8; --stone-dark: #9e9080; --bark: #5c4f3d; --bark-light: #7a6a56; --mist: #e8ede9; --white: #ffffff; --text-primary: #2e2a24; --text-secondary: #6b6257; --text-muted: #9e9080; --danger: #c0614a; --danger-soft: #f5e8e5; --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px; --shadow-xs: 0 1px 3px rgba(60,50,35,.06); --shadow-sm: 0 2px 8px rgba(60,50,35,.08), 0 1px 2px rgba(60,50,35,.04); --shadow-md: 0 6px 24px rgba(60,50,35,.10), 0 2px 6px rgba(60,50,35,.06); --shadow-lg: 0 16px 48px rgba(60,50,35,.14), 0 4px 12px rgba(60,50,35,.08); --shadow-modal: 0 24px 80px rgba(40,32,20,.22), 0 6px 20px rgba(40,32,20,.10); --transition: 200ms cubic-bezier(.4,0,.2,1); --transition-slow: 380ms cubic-bezier(.4,0,.2,1); } /* Reset & Base */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.6; color: var(--text-primary); background: var(--cream); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; } /* Ambient Background */ .ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; } .ambient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite; } .orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #c8d9c5 0%, transparent 70%); top: -200px; left: -150px; animation-duration: 22s; } .orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #d9cfc0 0%, transparent 70%); top: 30%; right: -180px; animation-duration: 28s; animation-delay: -8s; } .orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #bfcfbf 0%, transparent 70%); bottom: -100px; left: 30%; animation-duration: 20s; animation-delay: -14s; } @keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(.95); } } /* App Shell */ .app { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; } /* Header */ .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; } .header-brand { display: flex; align-items: center; gap: 16px; } .header-icon { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(90,100,80,.25)); } .header-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: -.02em; color: var(--bark); line-height: 1.1; } .header-sub { font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; margin: 0; } /* Buttons */ .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--sage-dark); color: var(--white); border: none; border-radius: var(--radius-pill); font-family: inherit; font-size: .875rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); box-shadow: 0 2px 12px rgba(93,130,100,.30); white-space: nowrap; } .btn-primary:hover { background: var(--sage); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(93,130,100,.35); } .btn-primary:active { transform: translateY(0); } .btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: transparent; color: var(--text-secondary); border: 1.5px solid var(--stone); border-radius: var(--radius-pill); font-family: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: all var(--transition); } .btn-ghost:hover { background: var(--cream-deep); border-color: var(--stone-dark); color: var(--text-primary); } .btn-danger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--danger); color: var(--white); border: none; border-radius: var(--radius-pill); font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: all var(--transition); box-shadow: 0 2px 10px rgba(192,97,74,.25); } .btn-danger:hover { background: #a8523d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,97,74,.35); } /* Stats Bar */ .stats { display: flex; align-items: center; gap: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 28px; margin-bottom: 28px; border: 1px solid rgba(196,185,168,.35); } .stat { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; } .stat-value { font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400; color: var(--bark); line-height: 1; letter-spacing: -.02em; min-width: 32px; text-align: center; } .stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); } .stat-sep { width: 1px; height: 36px; background: var(--cream-deep); flex-shrink: 0; margin: 0 4px; } .stat-progress { gap: 6px; min-width: 120px; } .progress-track { width: 100%; height: 6px; background: var(--cream-deep); border-radius: var(--radius-pill); overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--sage-dark), var(--sage)); border-radius: var(--radius-pill); transition: width .6s cubic-bezier(.4,0,.2,1); width: 0%; } /* Controls */ .controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .pill-group { display: flex; align-items: center; background: var(--white); border-radius: var(--radius-pill); padding: 4px; gap: 2px; box-shadow: var(--shadow-xs); border: 1px solid rgba(196,185,168,.30); } .pill, .type-pill, .for-pill { padding: 7px 16px; border: none; border-radius: var(--radius-pill); background: transparent; font-family: inherit; font-size: .8rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); white-space: nowrap; } .pill:hover, .type-pill:hover, .for-pill:hover { background: var(--mist); color: var(--text-primary); } .pill.active, .type-pill.active, .for-pill.active { background: var(--sage-dark); color: var(--white); box-shadow: 0 2px 8px rgba(93,130,100,.25); } /* Search */ .search-box { position: relative; flex: 1; min-width: 180px; max-width: 320px; } .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--stone-dark); pointer-events: none; } .search-input { width: 100%; padding: 10px 14px 10px 40px; background: var(--white); border: 1.5px solid rgba(196,185,168,.40); border-radius: var(--radius-pill); font-family: inherit; font-size: .875rem; color: var(--text-primary); outline: none; transition: border-color var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-xs); } .search-input::placeholder { color: var(--stone); } .search-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,173,143,.18); } /* Service Filter Row */ .service-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; min-height: 0; transition: min-height var(--transition-slow); } .service-row:empty { margin-bottom: 0; } .service-chip { padding: 5px 14px; border: 1.5px solid var(--stone); border-radius: var(--radius-pill); background: var(--white); font-family: inherit; font-size: .78rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); } .service-chip:hover { border-color: var(--sage); color: var(--sage-dark); background: var(--mist); } .service-chip.active { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); } /* Grid */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; } /* Card */ .card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(196,185,168,.25); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; cursor: default; } .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } .card.watched { opacity: .72; } .card.watched .card-title { text-decoration: line-through; text-decoration-color: var(--stone); } /* Card colour accent strip */ .card-accent { height: 4px; background: linear-gradient(90deg, var(--sage-light), var(--sage-dark)); flex-shrink: 0; } .card.watched .card-accent { background: linear-gradient(90deg, var(--stone), var(--stone-dark)); } .card-body { padding: 18px 18px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; } .card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; } .badge-movie { background: #edf0f7; color: #5060a0; } .badge-show { background: #f0ede8; color: #8a6a30; } .badge-service { background: var(--mist); color: var(--sage-dark); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; } .badge-genre { background: var(--cream-deep); color: var(--bark-light); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; } .card-title { font-family: 'DM Serif Display', serif; font-size: 1.05rem; font-weight: 400; color: var(--text-primary); line-height: 1.3; letter-spacing: -.01em; } .card-notes { font-size: .8rem; color: var(--text-muted); font-style: italic; line-height: 1.5; } .card-date { font-size: .7rem; color: var(--stone); margin-top: auto; padding-top: 6px; } /* Card Footer */ .card-footer { padding: 10px 18px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(196,185,168,.15); } .btn-watch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--sage-light); background: transparent; font-family: inherit; font-size: .78rem; font-weight: 600; color: var(--sage-dark); cursor: pointer; transition: all var(--transition); } .btn-watch:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); box-shadow: 0 2px 10px rgba(93,130,100,.25); } .card.watched .btn-watch { border-color: var(--stone); color: var(--stone-dark); } .card.watched .btn-watch:hover { background: var(--stone-dark); border-color: var(--stone-dark); color: var(--white); } .card-actions { display: flex; gap: 4px; } .btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; border-radius: var(--radius-sm); color: var(--stone-dark); cursor: pointer; transition: all var(--transition); } .btn-icon:hover { background: var(--cream-deep); color: var(--text-primary); } .btn-icon.btn-delete:hover { background: var(--danger-soft); color: var(--danger); } /* Loading */ .loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; gap: 16px; color: var(--text-muted); font-size: .875rem; } .loader { width: 36px; height: 36px; border: 3px solid var(--cream-deep); border-top-color: var(--sage-dark); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Empty State */ .empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; gap: 12px; text-align: center; } .empty-icon { font-size: 3.5rem; filter: grayscale(.3); margin-bottom: 4px; } .empty-title { font-family: 'DM Serif Display', serif; font-size: 1.4rem; font-weight: 400; color: var(--bark); letter-spacing: -.01em; } .empty-sub { font-size: .875rem; color: var(--text-muted); max-width: 300px; line-height: 1.6; margin-bottom: 8px; } /* Modal */ /* Override Bootstrap's .modal { display: none } — we control visibility via .modal-overlay.hidden */ .modal-overlay .modal { display: block !important; } .modal-overlay { position: fixed; inset: 0; background: rgba(40, 32, 20, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 180ms ease; } .modal-overlay.hidden { display: none; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-modal); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: slideUp 220ms cubic-bezier(.34,1.3,.64,1); border: 1px solid rgba(196,185,168,.20); } .modal-sm { max-width: 380px; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; } .modal-title { font-family: 'DM Serif Display', serif; font-size: 1.35rem; font-weight: 400; color: var(--bark); letter-spacing: -.01em; } .modal-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; background: var(--cream-deep); border-radius: 50%; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); flex-shrink: 0; } .modal-close:hover { background: var(--stone); color: var(--white); } /* Modal Form */ .modal-form { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 18px; } .form-field { display: flex; flex-direction: column; gap: 6px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); } .req { color: var(--sage-dark); } .form-input { width: 100%; padding: 11px 14px; background: var(--cream); border: 1.5px solid rgba(196,185,168,.50); border-radius: var(--radius-md); font-family: inherit; font-size: .9rem; color: var(--text-primary); outline: none; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); } .form-input::placeholder { color: var(--stone); } .form-input:focus { border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 3px rgba(138,173,143,.15); } /* Type toggle inside form */ .type-toggle { display: flex; gap: 10px; } .type-option { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid rgba(196,185,168,.50); border-radius: var(--radius-md); background: var(--cream); font-family: inherit; font-size: .85rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); } .type-option:hover { border-color: var(--sage-light); color: var(--text-primary); } .type-option.active { border-color: var(--sage-dark); background: var(--mist); color: var(--sage-dark); font-weight: 600; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; } .delete-msg { padding: 6px 28px 20px; font-size: .9rem; color: var(--text-secondary); line-height: 1.6; } .delete-msg strong { color: var(--text-primary); } /* Toast */ .toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; } .toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--bark); color: var(--cream); border-radius: var(--radius-md); font-size: .85rem; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toastIn 300ms cubic-bezier(.34,1.3,.64,1); max-width: 320px; } .toast.toast-success { background: var(--sage-dark); } .toast.toast-error { background: var(--danger); } .toast-icon { font-size: 1rem; flex-shrink: 0; } @keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.95); } to { opacity: 1; transform: translateX(0) scale(1); } } @keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(30px); } } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 99px; } ::-webkit-scrollbar-thumb:hover { background: var(--stone-dark); } /* Responsive */ @media (max-width: 640px) { .app { padding: 24px 16px 60px; } .header-title { font-size: 1.6rem; } .stats { flex-wrap: wrap; padding: 16px 20px; gap: 16px; } .stat-sep { display: none; } .stat { flex: 1 1 40%; } .controls { gap: 8px; } .search-box { max-width: 100%; min-width: 100%; order: 3; } .form-row { grid-template-columns: 1fr; } .modal { border-radius: var(--radius-lg); } .modal-header { padding: 20px 20px 0; } .modal-form { padding: 16px 20px 20px; } .grid { grid-template-columns: 1fr; } .toast-container { bottom: 16px; right: 16px; left: 16px; } .toast { max-width: 100%; } } @media (max-width: 480px) { .type-toggle { flex-direction: column; } }