sumaq/frontend/src/styles.scss

349 lines
5.9 KiB
SCSS

:root {
// Brand Colors
--brand-primary: #b45309; // Gold/Amber 700
--brand-secondary: #0f172a; // Midnight Slate 900
--brand-accent: #3b82f6; // Blue 500
// Neutral Colors (Light Theme)
--bg-main: #f8fafc;
--bg-surface: #ffffff;
--bg-sidebar: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--text-on-brand: #ffffff;
--border-color: #e2e8f0;
--border-hover: #cbd5e1;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
// Layout Constants
--nav-width: 260px;
--nav-width-collapsed: 80px;
--header-height: 70px;
}
// Media Queries Breakpoints
$mobile: 768px;
$tablet: 1024px;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
background-color: var(--bg-main);
color: var(--text-main);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
}
h1,
h2,
h3,
h4 {
color: var(--brand-secondary);
font-weight: 700;
letter-spacing: -0.025em;
}
a {
text-decoration: none;
color: inherit;
transition: all 0.2s;
}
button {
cursor: pointer;
border: none;
font-weight: 600;
transition: all 0.2s ease;
&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
}
.gold-button {
background: var(--brand-primary);
color: white;
padding: 10px 24px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
&:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(180, 83, 9, 0.3);
background: #92400e;
}
}
.premium-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 24px;
box-shadow: var(--shadow-sm);
transition: box-shadow 0.2s, border-color 0.2s;
&:hover {
box-shadow: var(--shadow-md);
border-color: var(--border-hover);
}
}
// Utility Classes
.w-full {
width: 100%;
}
.mt-2 {
margin-top: 8px;
}
.mb-3 {
margin-bottom: 12px;
}
.mr-2 {
margin-right: 8px;
}
.mr-1 {
margin-right: 4px;
}
.opacity-50 {
opacity: 0.5;
}
.text-uppercase {
text-transform: uppercase;
}
// Responsive Grids
.grid-cols-1 {
display: grid;
grid-template-columns: 1fr;
gap: 24px;
}
@media (min-width: 768px) {
.grid-cols-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
.grid-cols-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
}
@media (max-width: 640px) {
h1,
h2,
h3,
h4 {
color: var(--brand-secondary);
font-weight: 600;
letter-spacing: -0.025em;
font-size: 1.2rem;
}
}
.code {
font-size: 0.7rem;
font-weight: 800;
color: var(--brand-primary);
text-transform: uppercase;
letter-spacing: 0.05em;
background: rgba(180, 83, 9, 0.08);
padding: 2px 8px;
border-radius: 6px;
display: inline-block;
margin-bottom: 8px;
height: 17px;
}
.stat {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.8rem;
color: var(--text-muted);
font-weight: 600;
lucide-icon {
color: var(--brand-secondary);
opacity: 0.7;
}
}
.flex {
display: flex;
}
.gap-1 {
gap: 1rem;
}
.center {
text-align: center;
}
.pt-2 {
padding-top: 2rem;
}
.preview-modal-overlay {
position: fixed;
inset: 0;
background: rgb(15 23 42 / 18%);
backdrop-filter: blur(3px);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
@media (max-width: 640px) {
padding: 0;
}
.modal-content {
background: white;
border-radius: 24px;
width: 100%;
max-width: 900px;
max-height: 85vh;
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
@media (max-width: 640px) {
height: 100vh;
max-height: 100vh;
border-radius: 0;
}
.close-modal {
position: absolute;
top: 20px;
right: 20px;
z-index: 10;
background: white;
border-radius: 50%;
width: 44px;
height: 44px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
color: #64748b;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
&:hover {
color: #1e293b;
transform: rotate(90deg) scale(1.1);
background: #f8fafc;
}
}
.modal-media {
flex: 1;
//background: var(--brand-primary);
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
padding: 1rem;
img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
video {
width: 100%;
height: 100%;
max-height: 100%;
}
audio {
width: 90%;
max-width: 500px;
//filter: invert(1) hue-rotate(180deg);
}
}
.modal-footer {
padding: 24px;
background: white;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
border-top: 1px solid #f1f5f9;
p {
font-size: 1rem;
color: #1e293b;
font-weight: 600;
margin: 0;
}
.download-link {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: var(--brand-primary);
font-weight: 700;
text-decoration: none;
padding: 8px 16px;
background: rgba(180, 83, 9, 0.05);
border-radius: 8px;
&:hover {
background: rgba(180, 83, 9, 0.1);
transform: translateY(-1px);
}
}
@media (max-width: 480px) {
flex-direction: column;
align-items: flex-start;
padding: 16px;
.download-link {
width: 100%;
justify-content: center;
}
}
}
}
}