mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-11 10:56:17 +00:00
239 lines
4.0 KiB
CSS
239 lines
4.0 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: #050608;
|
|
color: #f4f4f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
main {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.landing {
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
.panel {
|
|
background: rgba(21, 23, 28, 0.85);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 16px;
|
|
padding: 2.5rem;
|
|
max-width: 720px;
|
|
width: min(100%, 720px);
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.panel__title {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.primary,
|
|
.secondary,
|
|
.chatItem {
|
|
font: inherit;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.primary {
|
|
display: inline-block;
|
|
margin-top: 1.5rem;
|
|
padding: 0.85rem 1.6rem;
|
|
border-radius: 999px;
|
|
background: linear-gradient(135deg, #ff3b30, #ff9500);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
transition: transform 120ms ease, box-shadow 120ms ease;
|
|
}
|
|
|
|
.primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(255, 99, 71, 0.35);
|
|
}
|
|
|
|
.secondary {
|
|
margin-top: 1rem;
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #f4f4f5;
|
|
}
|
|
|
|
.muted {
|
|
color: rgba(244, 244, 245, 0.6);
|
|
margin-top: 0.6rem;
|
|
}
|
|
|
|
.dashboard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
padding: 2rem clamp(1rem, 5vw, 3rem);
|
|
}
|
|
|
|
.dashboard__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.dashboard__content {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.dashboard__content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.chatList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chatItem {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 0.75rem;
|
|
align-items: baseline;
|
|
padding: 0.85rem 1rem;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
text-align: left;
|
|
transition: background 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.chatItem:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.chatItem--active {
|
|
outline: 2px solid rgba(255, 149, 0, 0.65);
|
|
background: rgba(255, 149, 0, 0.12);
|
|
}
|
|
|
|
.chatItem__author {
|
|
font-weight: 600;
|
|
color: #f97316;
|
|
}
|
|
|
|
.chatItem__text {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.chatItem time {
|
|
font-size: 0.8rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.overlayPreview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.overlayPreview__card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 1.5rem;
|
|
border-radius: 14px;
|
|
min-height: 240px;
|
|
}
|
|
|
|
.overlayPreview__author {
|
|
font-weight: 600;
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
.overlayPreview__empty {
|
|
min-height: 240px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-radius: 14px;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.overlay {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
.overlay__card {
|
|
padding: 1.5rem 2rem;
|
|
border-radius: 18px;
|
|
background: rgba(15, 23, 42, 0.85);
|
|
color: #f8fafc;
|
|
max-width: 960px;
|
|
width: min(90vw, 960px);
|
|
box-shadow: 0 16px 60px rgba(15, 23, 42, 0.35);
|
|
}
|
|
|
|
.overlay__author {
|
|
display: block;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.75rem;
|
|
color: #38bdf8;
|
|
}
|
|
|
|
.overlay__text {
|
|
font-size: clamp(1.4rem, 2.5vw, 2rem);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.overlay__placeholder {
|
|
padding: 1rem 1.4rem;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.status {
|
|
padding: 0.4rem 0.8rem;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status--connecting {
|
|
background: rgba(125, 211, 252, 0.2);
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
.status--live {
|
|
background: rgba(74, 222, 128, 0.2);
|
|
color: #4ade80;
|
|
}
|
|
|
|
.status--error {
|
|
background: rgba(248, 113, 113, 0.2);
|
|
color: #f87171;
|
|
}
|