CineMood / src /styles.css
Serge017's picture
Deploy CineMood MVP
d39b154 verified
Raw History Blame Contribute Delete
6.93 kB
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
color-scheme: dark;
font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
background: #10100f;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
}
button,
textarea,
input {
font: inherit;
}
button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.cinema-bg {
position: fixed;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 74px 100%,
radial-gradient(circle at 18% 12%, rgba(217, 180, 94, 0.28), transparent 28rem),
radial-gradient(circle at 84% 20%, rgba(79, 126, 138, 0.22), transparent 30rem),
linear-gradient(135deg, #0f0f0d 0%, #1b1814 46%, #171b1b 100%);
}
.cinema-bg::after {
content: "";
position: absolute;
inset: 0;
opacity: 0.12;
background-image: repeating-linear-gradient(
0deg,
transparent 0,
transparent 5px,
rgba(255, 255, 255, 0.38) 6px
);
mix-blend-mode: soft-light;
}
.control-panel {
align-self: start;
border: 1px solid rgba(248, 242, 232, 0.1);
border-radius: 8px;
background: rgba(20, 18, 15, 0.88);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
backdrop-filter: blur(24px);
padding: 22px;
}
.results-panel {
min-height: calc(100vh - 2rem);
border-radius: 8px;
background: #f7ecda;
color: #1d1813;
padding: clamp(18px, 3vw, 34px);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
.results-header {
display: flex;
align-items: start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.25rem;
}
.mood-tag {
border: 1px solid #4a4238;
border-radius: 999px;
padding: 0.42rem 0.75rem;
background: #201c18;
color: #e8d8c3;
font-size: 0.86rem;
transition: 160ms ease;
}
.mood-tag:hover {
border-color: #d9b45e;
transform: translateY(-1px);
}
.quota-strip {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.75rem;
margin-top: 1.25rem;
border: 1px solid #41372e;
border-radius: 8px;
background: #191613;
padding: 1rem;
}
.primary-action {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
gap: 0.6rem;
margin-top: 1rem;
border: 0;
border-radius: 8px;
background: #d9b45e;
color: #18130d;
padding: 0.95rem 1rem;
font-weight: 800;
box-shadow: 0 16px 40px rgba(217, 180, 94, 0.22);
transition: 180ms ease;
}
.primary-action:hover:not(:disabled) {
transform: translateY(-1px);
background: #efcc75;
}
.status-line {
margin-top: 0.9rem;
border-left: 3px solid #d9b45e;
padding-left: 0.75rem;
color: #dfccb4;
font-size: 0.9rem;
line-height: 1.55;
}
.icon-button {
display: grid;
min-width: 38px;
height: 38px;
place-items: center;
border: 1px solid #41372e;
border-radius: 8px;
background: #1a1714;
color: #eadac5;
transition: 160ms ease;
}
.icon-button:hover {
border-color: #d9b45e;
}
.taste-row {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.55rem;
border: 1px solid #342d27;
border-radius: 8px;
background: #181512;
padding: 0.62rem 0.7rem;
color: #f1e2cc;
font-size: 0.9rem;
}
.taste-row span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.taste-row small {
color: #a89278;
}
.empty-state {
display: grid;
min-height: 58vh;
place-items: center;
align-content: center;
gap: 1rem;
border: 1px dashed #d0bd9d;
border-radius: 8px;
color: #5b4a38;
text-align: center;
padding: 2rem;
}
.empty-state p {
max-width: 34rem;
font-size: 1.05rem;
line-height: 1.75;
}
.mood-analysis {
max-width: 62rem;
margin: 0 0 1.25rem;
border-left: 4px solid #1d1813;
padding-left: 1rem;
color: #554432;
font-size: 1rem;
line-height: 1.7;
}
.movie-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
gap: 1rem;
}
.movie-card {
display: grid;
grid-template-rows: auto 1fr;
overflow: hidden;
border: 1px solid #dfd0b8;
border-radius: 8px;
background: #fff8ed;
box-shadow: 0 16px 34px rgba(52, 38, 20, 0.12);
}
.poster-frame {
aspect-ratio: 16 / 10;
background: #1a1612;
overflow: hidden;
}
.poster-frame img {
width: 100%;
height: 100%;
object-fit: cover;
}
.poster-fallback {
display: grid;
height: 100%;
align-content: end;
gap: 0.35rem;
padding: 1rem;
background:
linear-gradient(135deg, rgba(217, 180, 94, 0.82), rgba(72, 124, 132, 0.76)),
linear-gradient(45deg, #191410, #302213);
color: #fff8ec;
}
.poster-fallback span {
font-size: 0.8rem;
opacity: 0.82;
}
.poster-fallback strong {
font-family: "Fraunces", Georgia, serif;
font-size: clamp(1.5rem, 6vw, 2.2rem);
line-height: 1;
}
.movie-copy {
display: flex;
min-height: 310px;
flex-direction: column;
padding: 1rem;
}
.movie-copy h3 {
margin: 0;
font-family: "Fraunces", Georgia, serif;
font-size: 1.45rem;
line-height: 1.1;
}
.movie-copy p {
margin: 0.25rem 0 0;
color: #6e5a43;
font-size: 0.9rem;
}
.score {
flex: 0 0 auto;
border-radius: 999px;
background: #1d1813;
color: #f7ecda;
padding: 0.35rem 0.55rem;
font-size: 0.82rem;
font-weight: 800;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.9rem;
}
.chips span {
border: 1px solid #e2d2ba;
border-radius: 999px;
padding: 0.28rem 0.5rem;
color: #614d38;
font-size: 0.78rem;
}
.why {
flex: 1;
margin-top: 0.9rem !important;
font-size: 0.95rem !important;
line-height: 1.62;
}
.card-actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.45rem;
margin-top: 1rem;
}
.card-actions button {
display: flex;
min-height: 38px;
align-items: center;
justify-content: center;
gap: 0.35rem;
border: 1px solid #d7c3a5;
border-radius: 8px;
background: #f5ead9;
color: #392d20;
font-size: 0.82rem;
font-weight: 800;
transition: 160ms ease;
}
.card-actions button:hover {
background: #1d1813;
color: #fff2df;
}
.skeleton-card {
min-height: 420px;
border-radius: 8px;
background: #fff8ed;
padding: 1rem;
}
.skeleton-card div,
.skeleton-card span {
display: block;
border-radius: 8px;
background: linear-gradient(90deg, #ead8bf, #f8edda, #ead8bf);
background-size: 200% 100%;
animation: shimmer 1.2s infinite linear;
}
.skeleton-card div {
height: 190px;
margin-bottom: 1rem;
}
.skeleton-card span {
height: 18px;
margin-top: 0.8rem;
}
.skeleton-card span:last-child {
width: 70%;
}
@keyframes shimmer {
to {
background-position: -200% 0;
}
}
@media (max-width: 640px) {
.control-panel,
.results-panel {
padding: 16px;
}
.results-panel {
min-height: 70vh;
}
.card-actions {
grid-template-columns: 1fr;
}
}