app-lookup / frontend /css /style.css
lljz66's picture
Upload frontend/css/style.css
4dc94ce verified
Raw
History Blame Contribute Delete
3.41 kB
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg: #0a0a0a;
--surface: #141414;
--border: #262626;
--text: #e5e5e5;
--text-muted: #737373;
--accent: #3b82f6;
--accent-hover: #2563eb;
--green: #22c55e;
--blue: #3b82f6;
--radius: 12px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.5;
}
.container {
max-width: 720px;
margin: 0 auto;
padding: 60px 20px;
}
header {
text-align: center;
margin-bottom: 40px;
}
header h1 {
font-size: 2rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.subtitle {
color: var(--text-muted);
margin-top: 8px;
font-size: 0.95rem;
}
.search-box {
display: flex;
gap: 8px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 6px;
transition: border-color 0.2s;
}
.search-box:focus-within {
border-color: var(--accent);
}
.search-box input {
flex: 1;
background: none;
border: none;
outline: none;
color: var(--text);
font-size: 1rem;
padding: 12px 16px;
}
.search-box input::placeholder {
color: var(--text-muted);
}
.search-box button {
background: var(--accent);
border: none;
border-radius: 8px;
padding: 12px 20px;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.search-box button:hover {
background: var(--accent-hover);
}
.search-box button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.status {
text-align: center;
padding: 16px;
color: var(--text-muted);
font-size: 0.9rem;
}
.hidden {
display: none;
}
.results {
margin-top: 32px;
display: flex;
flex-direction: column;
gap: 12px;
}
.app-card {
display: flex;
align-items: center;
gap: 16px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
cursor: pointer;
transition: border-color 0.2s, transform 0.1s;
text-decoration: none;
color: inherit;
}
.app-card:hover {
border-color: var(--accent);
transform: translateY(-1px);
}
.app-card:active {
transform: translateY(0);
}
.app-icon {
width: 56px;
height: 56px;
border-radius: 12px;
object-fit: cover;
background: var(--border);
flex-shrink: 0;
}
.app-info {
flex: 1;
min-width: 0;
}
.app-name {
font-weight: 600;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.app-store {
font-size: 0.8rem;
color: var(--text-muted);
margin-top: 2px;
}
.store-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
flex-shrink: 0;
}
.store-badge.play {
background: rgba(34, 197, 94, 0.15);
color: var(--green);
}
.store-badge.ios {
background: rgba(59, 130, 246, 0.15);
color: var(--blue);
}
.empty-state {
text-align: center;
padding: 48px 20px;
color: var(--text-muted);
}
.empty-state svg {
margin-bottom: 16px;
opacity: 0.3;
}