Goondex/internal/web/static/css/layout.css

295 lines
5.5 KiB
CSS

/*
* GOONDEX LAYOUT
* Structure, spacing, navbar, hero, stats, responsive tiers.
*/
/* ================================
* MAIN PAGE WRAPPING
* =================================== */
body {
display: flex;
justify-content: center;
align-items: stretch;
min-height: 100vh;
}
/* Main content (center column) */
.main-wrapper {
flex: 1;
max-width: 1800px;
overflow-y: auto;
padding-bottom: 4rem;
}
/* Shared container */
.container {
max-width: 1700px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* ================================
* SIDE PANELS (OPTION A — scroll WITH page)
* =================================== */
.side-panel {
width: 220px;
flex-shrink: 0;
background: #000;
border-left: 1px solid var(--color-border-soft);
border-right: 1px solid var(--color-border-soft);
display: flex;
flex-direction: column;
overflow: hidden;
}
.side-panel img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
opacity: 0.75;
transition: opacity 0.25s ease;
}
.side-panel img:hover {
opacity: 1;
}
/* ================================
* NAVBAR
* =================================== */
.navbar {
background: var(--color-bg-card);
border-bottom: 1px solid var(--color-border-soft);
padding: 0.75rem 0;
position: sticky;
top: 0;
z-index: 40;
backdrop-filter: blur(6px);
box-shadow: var(--shadow-glow-pink-soft);
}
.nav-inner {
display: flex;
align-items: center;
justify-content: space-between;
}
/* Bootstrap navbar controls */
.navbar .navbar-toggler {
border-color: var(--color-border-soft);
padding: 0.35rem 0.5rem;
}
.navbar .navbar-toggler:focus {
box-shadow: none;
}
.navbar .navbar-toggler-icon {
filter: invert(1);
}
/* Logo image control */
.logo-img {
height: 42px;
width: auto;
display: block;
}
/* Navbar links */
.nav-links {
list-style: none;
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--color-text-secondary);
text-decoration: none;
font-weight: 500;
transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
color: var(--color-brand);
}
/* ================================
* HERO SECTION
* =================================== */
.hero-section {
background: linear-gradient(
135deg,
rgba(255, 79, 163, 0.10),
rgba(216, 132, 226, 0.05)
);
border: 1px solid var(--color-border-soft);
border-radius: var(--radius-soft);
padding: 4rem 3rem;
margin-bottom: 3rem;
position: relative;
overflow: hidden;
box-shadow: var(--shadow-glow-pink-soft);
}
/* Subtle radial neon glow (G-A) */
.hero-section::after {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(
circle at 50% 20%,
rgba(255, 79, 163, 0.15),
rgba(255, 79, 163, 0.05) 40%,
transparent 75%
);
pointer-events: none;
}
.hero-title {
font-size: 3.2rem;
font-weight: 800;
background: linear-gradient(
135deg,
var(--color-brand),
var(--color-header)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-subtitle {
margin-top: 1rem;
font-size: 1.2rem;
color: var(--color-text-secondary);
max-width: 580px;
margin-inline: auto;
}
/* ================================
* STATS GRID
* =================================== */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.stat-card {
background: var(--color-bg-card);
border: 1px solid var(--color-border-soft);
border-radius: var(--radius);
padding: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
transition: transform 0.20s var(--transition),
box-shadow 0.20s var(--transition);
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-glow-pink);
}
.stat-icon {
font-size: 2rem;
opacity: 0.85;
}
.stat-content .stat-value {
font-size: 2rem;
font-weight: 700;
}
.stat-content .stat-label {
color: var(--color-text-secondary);
font-size: 0.95rem;
}
.stat-actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: flex-end;
}
.stat-link {
font-size: 0.85rem;
color: var(--color-brand-hover);
text-decoration: none;
}
.stat-link:hover {
text-decoration: underline;
}
/* ================================
* RESPONSIVE BREAKPOINTS
* =================================== */
/* --- Large screens under 1600px --- */
@media (max-width: 1600px) {
.side-panel {
width: 180px;
}
}
/* --- Hide side panels under 900px --- */
@media (max-width: 900px) {
.side-panel {
display: none;
}
.main-wrapper {
padding: 0 0.5rem;
}
.logo-img {
height: 36px;
}
}
/* --- Mobile adjustments (≤ 600px) --- */
@media (max-width: 600px) {
.nav-links {
gap: 1rem;
}
.hero-section {
padding: 2.5rem 1.5rem;
}
.hero-title {
font-size: 2.4rem;
}
.stats-grid {
grid-template-columns: 1fr;
}
.navbar .collapse {
padding-top: 0.75rem;
}
.nav-links {
flex-direction: column;
gap: 0.75rem;
}
.nav-links .nav-link {
padding: 0.35rem 0;
}
}