/* app.css - Styling for Magnetflix POC */ :root { --bg-color: #0e0e11; --card-bg: #18181c; --card-border: #27272e; --text-main: #f4f4f5; --text-muted: #a1a1aa; --primary-red: #e50914; --primary-red-hover: #f6121d; --accent-gold: #f5c518; --accent-green: #22c55e; --accent-blue: #3b82f6; --focus-ring: rgba(229, 9, 20, 0.4); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; min-height: 100vh; display: flex; justify-content: center; padding: 40px 20px; } .app-container { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 24px; } /* Header */ .app-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); } .brand { display: flex; align-items: center; gap: 12px; } .brand-icon { font-size: 32px; } .brand-title { font-size: 24px; font-weight: 800; color: var(--primary-red); letter-spacing: 0.5px; } .header-badges { display: flex; gap: 8px; } .badge { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; } .badge-subtle { background-color: #27272e; color: var(--text-muted); } .badge-api { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); } .badge-locked { background-color: rgba(245, 197, 24, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 197, 24, 0.3); } /* Main Cards */ .app-main { display: flex; flex-direction: column; gap: 20px; } .card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); transition: border-color 0.2s, box-shadow 0.2s; } .card.is-fixed { border-color: #3f3f46; background: #141417; } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .section-title-wrap { display: flex; align-items: center; gap: 10px; } .section-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background-color: #27272e; color: var(--text-main); border-radius: 50%; font-size: 12px; font-weight: 700; } .card.is-fixed .section-number { background-color: var(--accent-gold); color: #000000; } .section-header h2 { font-size: 17px; font-weight: 600; color: #ffffff; } /* Form Groups & Inputs */ .form-group { display: flex; flex-direction: column; gap: 8px; } .input-with-icon { position: relative; display: flex; align-items: center; } .input-with-icon input, .search-input-wrapper input { width: 100%; background-color: #101013; border: 1px solid #3f3f46; color: #ffffff; padding: 12px 14px; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; } .input-with-icon input:focus, .search-input-wrapper input:focus { border-color: var(--primary-red); box-shadow: 0 0 0 3px var(--focus-ring); } .input-with-icon input[readonly] { background-color: #0b0b0e; border-color: #27272e; color: #a1a1aa; cursor: not-allowed; } .btn-icon { position: absolute; right: 12px; background: transparent; border: none; color: #71717a; cursor: pointer; font-size: 14px; padding: 4px; border-radius: 4px; transition: color 0.15s; } .btn-icon:hover { color: #ffffff; } .field-hint { font-size: 12px; color: var(--text-muted); } .field-hint code { background-color: #27272e; padding: 2px 5px; border-radius: 4px; font-size: 11px; } /* Search Wrapper & Spinner */ .search-input-wrapper { position: relative; display: flex; align-items: center; } .search-icon { position: absolute; left: 14px; font-size: 16px; color: #71717a; pointer-events: none; } .search-input-wrapper input { padding-left: 42px; padding-right: 42px; } .spinner { position: absolute; right: 14px; width: 18px; height: 18px; border: 2px solid #3f3f46; border-top-color: var(--primary-red); border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Results Container */ .results-container { margin-top: 14px; background: #121215; border: 1px solid #2e2e36; border-radius: 8px; overflow: hidden; } .results-header { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #71717a; background: #18181d; padding: 8px 14px; border-bottom: 1px solid #27272e; letter-spacing: 0.5px; } .results-list { list-style: none; } .result-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #1f1f24; cursor: pointer; transition: background-color 0.15s; } .result-item:last-child { border-bottom: none; } .result-item:hover { background-color: #202027; } .result-poster-wrap { width: 44px; height: 60px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #27272e; display: flex; align-items: center; justify-content: center; } .result-poster { width: 100%; height: 100%; object-fit: cover; } .result-poster-fallback { font-size: 20px; } .result-content { flex: 1; min-width: 0; } .result-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; } .result-title { font-size: 14px; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .result-year { font-size: 12px; color: var(--text-muted); } .result-meta-row { display: flex; align-items: center; gap: 8px; font-size: 11px; } .meta-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-weight: 600; } .imdb-tag { background-color: rgba(245, 197, 24, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 197, 24, 0.3); font-family: monospace; } .year-tag { background: #27272e; color: #d4d4d8; } .type-tag { background: #202027; color: #a1a1aa; text-transform: capitalize; } .result-stars { font-size: 11px; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .result-select-action { color: var(--primary-red); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity 0.15s, transform 0.15s; padding-right: 4px; } .result-item:hover .result-select-action { opacity: 1; transform: translateX(2px); } .no-results { margin-top: 12px; padding: 14px; background: #18181c; border: 1px dashed #3f3f46; border-radius: 8px; text-align: center; font-size: 13px; color: #a1a1aa; } /* Selected Movie Card (Fixed State) */ .selected-movie-card { display: flex; align-items: center; gap: 16px; background: #111114; border: 1px solid #323238; border-radius: 10px; padding: 14px; } .selected-poster { width: 60px; height: 84px; border-radius: 6px; object-fit: cover; background: #27272e; flex-shrink: 0; } .selected-info { flex: 1; min-width: 0; } .selected-title { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 4px; } .selected-meta { display: flex; gap: 6px; margin-bottom: 6px; } .selected-stars { font-size: 12px; color: var(--text-muted); } /* Button styles */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background-color 0.15s, transform 0.1s; } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-secondary { background: #27272e; color: #d4d4d8; border: 1px solid #3f3f46; } .btn-secondary:hover { background: #3f3f46; color: #ffffff; } /* Action Section & Send Button */ .section-action { display: flex; flex-direction: column; gap: 16px; animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .btn-send { background: var(--primary-red); color: #ffffff; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; padding: 14px 28px; border-radius: 10px; box-shadow: 0 4px 18px rgba(229, 9, 20, 0.4); width: 100%; } .btn-send:hover { background: var(--primary-red-hover); transform: translateY(-1px); } .btn-send:active { transform: translateY(0); } .btn-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } /* Response Box */ .response-box { background: #161619; border: 1px solid #27272e; border-radius: 8px; padding: 16px; animation: fadeIn 0.2s ease-out; } .response-box.success { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.05); } .response-box.error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.05); } .response-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 8px; } .response-box.success .response-title { color: var(--accent-green); } .response-box.error .response-title { color: #ef4444; } .response-body { font-family: monospace; font-size: 12px; background: #0f0f12; padding: 10px; border-radius: 6px; color: #d4d4d8; overflow-x: auto; white-space: pre-wrap; word-break: break-all; } .hidden { display: none !important; }