vibesense / src /static /css /style.css
Darshan03's picture
Migrate Mood Music Hub to Hugging Face Spaces with proper LFS tracking
59b54d3
Raw History Blame Contribute Delete
15.8 kB
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');
:root {
--background: #ffffff;
--foreground: #0f172a; /* Slate 900 */
--primary: #6366f1; /* Indigo */
--primary-foreground: #ffffff;
--secondary: #f43f5e; /* Rose 500 */
--muted: rgba(241, 245, 249, 0.7);
--muted-foreground: #64748b;
--accent: #fbc2eb;
--border: rgba(226, 232, 240, 0.4);
/* Premium Mesh Gradient Background */
--gradient-main:
radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.1) 0px, transparent 50%),
radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
radial-gradient(at 0% 100%, rgba(244, 63, 94, 0.15) 0px, transparent 50%),
#f8fafc; /* Slate 50 background */
--gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #f43f5e 100%);
--gradient-secondary: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
--font-display: 'Space Grotesk', sans-serif;
--font-body: 'Plus Jakarta Sans', sans-serif;
--font-serif: 'Playfair Display', Georgia, serif;
--radius: 1.25rem;
--shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--glass: rgba(255, 255, 255, 0.5);
--glass-blur: blur(24px);
--glass-border: 1px solid rgba(255, 255, 255, 0.5);
--shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.4);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--gradient-main);
background-attachment: fixed;
color: var(--foreground);
font-family: var(--font-body);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-display);
color: var(--foreground);
letter-spacing: -0.02em;
}
a {
color: inherit;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* ===== Navbar ===== */
.navbar {
background: var(--glass);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-bottom: var(--glass-border);
position: sticky;
top: 0;
z-index: 50;
transition: all 0.3s ease;
}
.navbar-content {
display: flex;
justify-content: space-between;
align-items: center;
height: 4.5rem;
}
.logo {
display: flex;
align-items: center;
gap: 0.6rem;
text-decoration: none;
}
.logo-text {
font-weight: 800;
font-size: 1.4rem;
letter-spacing: -0.01em;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.logo-icon {
font-size: 1.6rem;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.nav-links {
display: flex;
gap: 1.5rem;
align-items: center;
}
.nav-links a {
text-decoration: none;
color: var(--muted-foreground);
font-weight: 600;
font-size: 0.9rem;
padding: 0.6rem 1.2rem;
border-radius: 999px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
letter-spacing: 0.01em;
border: 1px solid transparent;
}
.nav-links a:hover {
color: var(--foreground);
background: var(--muted);
}
.nav-links a.active {
background: var(--gradient-primary);
color: white;
box-shadow: var(--shadow-glow);
transform: translateY(-1px);
}
/* ===== Buttons & Emotion States ===== */
.emotion-btn {
padding: 0.75rem 1.5rem;
border-radius: 999px;
border: none;
background: var(--muted);
color: var(--muted-foreground);
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
font-size: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.emotion-btn:hover {
background: #e2e8f0;
transform: translateY(-2px);
}
.emotion-btn.active {
background: var(--gradient-primary);
color: white !important;
box-shadow: var(--shadow-glow);
transform: scale(1.05) translateY(-2px);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.7rem 1.5rem;
border-radius: 0.625rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s;
border: none;
cursor: pointer;
font-family: inherit;
font-size: 0.9rem;
letter-spacing: 0.01em;
}
/* ===== Custom Confirmation Modal ===== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 10000;
display: none; /* Controlled by JS */
align-items: center;
justify-content: center;
padding: 1.5rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.modal-overlay.show {
opacity: 1;
display: flex;
}
.modal-card {
background: #ffffff;
border: 1px solid var(--border);
border-radius: 1.5rem;
width: 100%;
max-width: 440px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
transform: scale(0.95);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
border-top: 4px solid var(--primary);
}
.modal-danger .modal-card {
border-top: 4px solid var(--secondary);
}
.modal-overlay.show .modal-card {
transform: scale(1);
}
.modal-body {
padding: 2rem;
display: flex;
gap: 1.25rem;
}
.modal-icon {
width: 3.5rem;
height: 3.5rem;
background: var(--muted);
color: var(--primary);
border-radius: 1rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.modal-icon i {
width: 1.75rem;
height: 1.75rem;
}
.modal-content h3 {
font-size: 1.4rem;
font-weight: 800;
color: var(--foreground);
margin-bottom: 0.5rem;
}
.modal-content p {
font-size: 1.05rem;
color: var(--foreground);
opacity: 0.8;
line-height: 1.6;
}
.modal-footer {
padding: 1.25rem 2rem 2rem;
display: flex;
gap: 1rem;
}
/* Danger Variant */
.modal-danger .modal-icon {
background: rgba(239, 68, 68, 0.1);
color: var(--secondary);
}
.modal-danger #confirm-ok {
background: var(--gradient-secondary);
}
.btn-primary {
background: var(--foreground);
color: #ffffff;
box-shadow: var(--shadow-md);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg), var(--shadow-glow);
opacity: 0.95;
}
.btn-outline {
border: 1.5px solid var(--border);
color: var(--foreground);
background: #ffffff;
}
.btn-outline:hover {
background: var(--muted);
border-color: var(--muted-foreground);
}
/* ===== Hero Section ===== */
.hero {
position: relative;
min-height: 80vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: var(--gradient-hero);
backdrop-filter: var(--glass-blur);
border: var(--glass-border);
margin: 2rem;
border-radius: 2rem;
overflow: hidden;
padding: 6rem 2rem;
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}
.hero-content {
position: relative;
z-index: 10;
max-width: 750px;
margin: 0 auto;
}
/* Glass Orbs — decorative background shapes */
.orb {
position: absolute;
border-radius: 50%;
filter: blur(60px);
opacity: 0.5;
pointer-events: none;
}
.orb-1 {
width: 300px;
height: 300px;
background: radial-gradient(circle, hsla(200, 60%, 85%, 0.8), transparent);
top: 10%;
left: -5%;
}
.orb-2 {
width: 250px;
height: 250px;
background: radial-gradient(circle, hsla(330, 50%, 88%, 0.7), transparent);
bottom: 5%;
right: -3%;
}
.orb-3 {
width: 120px;
height: 120px;
background: radial-gradient(circle, hsla(170, 50%, 80%, 0.6), transparent);
top: 25%;
right: 15%;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 1rem;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted-foreground);
margin-bottom: 2rem;
}
.hero-badge .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--secondary);
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
line-height: 1.15;
margin-bottom: 1.5rem;
color: var(--foreground);
}
.text-gradient {
font-family: var(--font-serif);
font-style: italic;
font-weight: 400;
background: linear-gradient(135deg, #6366f1, #fb7185);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 1.05rem;
color: var(--muted-foreground);
margin-bottom: 2.5rem;
max-width: 560px;
margin-left: auto;
margin-right: auto;
line-height: 1.7;
}
.hero-actions {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 4rem;
}
/* ===== Features Grid ===== */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
max-width: 1000px;
margin: 0 auto;
}
.feature-card {
background: var(--glass);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-radius: 1.5rem;
padding: 2.25rem;
border: var(--glass-border);
box-shadow: var(--shadow-md);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
pointer-events: none;
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.05);
background: rgba(255, 255, 255, 0.7);
border-color: rgba(99, 102, 241, 0.2);
}
.feature-icon {
width: 3rem;
height: 3rem;
border-radius: 0.625rem;
background: var(--foreground);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}
.feature-card h3 {
font-size: 1.05rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.feature-card p {
color: var(--muted-foreground);
font-size: 0.875rem;
line-height: 1.65;
}
/* ===== Tech Badges ===== */
.tech-badge {
display: inline-block;
padding: 0.5rem 1.25rem;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 999px;
font-weight: 500;
font-size: 0.875rem;
color: var(--foreground);
transition: all 0.2s;
}
.tech-badge:hover {
background: var(--foreground);
color: #ffffff;
border-color: var(--foreground);
}
/* ===== About / SRS Styles ===== */
.section-title {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--foreground);
}
.section-text {
color: var(--muted-foreground);
line-height: 1.8;
margin-bottom: 1rem;
}
.subsection-title {
font-size: 1rem;
font-weight: 600;
margin: 1.5rem 0 0.75rem;
color: var(--foreground);
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--muted);
}
.req-list {
list-style: none;
padding: 0;
}
.req-list li {
padding: 0.75rem 1rem;
margin-bottom: 0.5rem;
background: var(--muted);
border-radius: 0.5rem;
color: var(--muted-foreground);
line-height: 1.6;
font-size: 0.9rem;
}
.req-list li strong {
color: var(--foreground);
}
/* ===== Tables ===== */
.table-responsive {
overflow-x: auto;
}
.req-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.req-table th,
.req-table td {
padding: 0.85rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.req-table th {
background: var(--muted);
font-weight: 600;
color: var(--foreground);
}
.req-table tr:hover td {
background: var(--muted);
}
.req-table td {
color: var(--muted-foreground);
}
/* ===== Footer ===== */
.footer {
background: #ffffff;
border-top: 1px solid var(--border);
padding: 2rem 0;
margin-top: 4rem;
color: var(--muted-foreground);
font-size: 0.85rem;
}
/* ===== Utilities ===== */
.text-center {
text-align: center;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.mb-8 {
margin-bottom: 2rem;
}
.mb-10 {
margin-bottom: 2.5rem;
}
.mb-12 {
margin-bottom: 3rem;
}
.py-20 {
padding-top: 5rem;
padding-bottom: 5rem;
}
/* ===== Card ===== */
.card {
background: #ffffff;
border-radius: 1rem;
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
}
.p-6 {
padding: 1.5rem;
}
.p-8 {
padding: 2rem;
}
/* ===== Animations ===== */
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-12px);
}
}
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.track-item-animate {
animation: fade-in-up 0.5s ease-out forwards;
opacity: 0;
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.animate-spin {
animation: spin 1s linear infinite;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
.hero h1 {
font-size: 2.25rem;
}
.hero-actions {
flex-direction: column;
align-items: center;
}
.nav-links {
display: none;
}
.features-grid {
grid-template-columns: 1fr;
}
.navbar-content {
padding: 0 1rem;
}
.hero {
margin: 1rem;
padding: 4rem 1rem;
}
.orb {
display: none;
}
}
/* ===== Toast Notifications ===== */
.toast-container {
position: fixed;
top: 1.5rem;
right: 1.5rem;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 0.75rem;
pointer-events: none;
}
.toast {
pointer-events: auto;
width: 320px;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 1rem;
padding: 1rem 1.25rem;
box-shadow: var(--shadow-lg);
display: flex;
align-items: center;
gap: 0.85rem;
transform: translateX(120%);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
opacity: 0;
}
.toast.show {
transform: translateX(0);
opacity: 1;
}
.toast-icon {
flex-shrink: 0;
width: 2.25rem;
height: 2.25rem;
border-radius: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
}
.toast-content {
flex-grow: 1;
}
.toast-message {
font-size: 0.9rem;
font-weight: 600;
color: var(--foreground);
line-height: 1.4;
}
/* Variants */
.toast-success .toast-icon {
background: rgba(16, 185, 129, 0.1);
color: #10b981;
}
.toast-error .toast-icon {
background: rgba(244, 63, 94, 0.1);
color: var(--secondary);
}
.toast-info .toast-icon {
background: rgba(99, 102, 241, 0.1);
color: var(--primary);
}
.toast-warning .toast-icon {
background: rgba(245, 158, 11, 0.1);
color: #f59e0b;
}