Files
comunidadhll/frontend/assets/css/styles.css
devRaGonSa 87c1f4e8c3 sistema A2S
2026-03-20 14:38:57 +01:00

996 lines
19 KiB
CSS

:root {
--bg: #0f120d;
--bg-deep: #090b08;
--bg-elevated: rgba(27, 33, 24, 0.92);
--panel: rgba(21, 26, 19, 0.94);
--panel-soft: rgba(30, 36, 27, 0.7);
--border: rgba(159, 168, 141, 0.24);
--border-strong: rgba(183, 201, 125, 0.2);
--text: #e7e0cf;
--muted: #a9ad9a;
--text-soft: #c8ccb8;
--accent: #8ea062;
--accent-strong: #b7c97d;
--accent-warm: #d2b676;
--shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
--shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.24);
--hero-shell-width: 1240px;
--video-shell-width: 1080px;
--servers-shell-width: 1380px;
--font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
* {
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
margin: 0;
min-height: 100vh;
font-family: var(--font-main);
color: var(--text);
background-color: var(--bg);
background:
linear-gradient(rgba(9, 11, 8, 0.62), rgba(9, 11, 8, 0.96)),
radial-gradient(circle at top, rgba(84, 96, 59, 0.2), transparent 34%),
radial-gradient(circle at 85% 10%, rgba(210, 182, 118, 0.08), transparent 24%),
radial-gradient(circle at bottom, rgba(210, 182, 118, 0.07), transparent 28%),
linear-gradient(145deg, #171d15 0%, var(--bg-deep) 100%);
}
img {
display: block;
max-width: 100%;
}
a {
color: inherit;
text-decoration: none;
}
.page-shell {
width: 100%;
padding: 34px 20px 72px;
}
.hero {
position: relative;
overflow: hidden;
width: min(100%, var(--hero-shell-width));
margin: 0 auto;
border: 1px solid var(--border);
border-radius: 24px;
background:
linear-gradient(180deg, rgba(24, 31, 20, 0.84), rgba(11, 14, 10, 0.97)),
radial-gradient(circle at top center, rgba(183, 201, 125, 0.06), transparent 32%),
repeating-linear-gradient(
90deg,
rgba(255, 255, 255, 0.015) 0,
rgba(255, 255, 255, 0.015) 1px,
transparent 1px,
transparent 24px
);
box-shadow: var(--shadow);
}
.hero::before {
content: "";
position: absolute;
inset: 18px;
border: 1px solid rgba(210, 182, 118, 0.1);
border-radius: 18px;
pointer-events: none;
}
.hero::after {
content: "";
position: absolute;
inset: auto 32px 0;
height: 1px;
background: linear-gradient(
90deg,
transparent,
rgba(183, 201, 125, 0.2),
transparent
);
pointer-events: none;
}
.hero__overlay {
position: absolute;
inset: 0;
background:
radial-gradient(circle at top right, rgba(142, 160, 98, 0.16), transparent 28%),
radial-gradient(circle at left center, rgba(210, 182, 118, 0.08), transparent 26%),
linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%),
linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
pointer-events: none;
}
.hero__content {
position: relative;
z-index: 1;
max-width: 860px;
margin: 0 auto;
padding: 68px 32px 78px;
display: grid;
justify-items: center;
text-align: center;
gap: 18px;
}
.hero__content::before {
content: "";
position: absolute;
inset: 28px 80px auto;
height: 140px;
border-radius: 999px;
background: radial-gradient(
circle,
rgba(210, 182, 118, 0.16) 0%,
rgba(142, 160, 98, 0.08) 42%,
transparent 78%
);
filter: blur(14px);
pointer-events: none;
}
.logo-frame {
width: min(336px, 78vw);
min-height: 220px;
padding: 20px 24px;
display: grid;
place-items: center;
border: 1px dashed rgba(183, 201, 125, 0.45);
border-radius: 18px;
background:
linear-gradient(180deg, rgba(19, 24, 16, 0.9), rgba(10, 13, 9, 0.72));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.04),
0 18px 40px rgba(0, 0, 0, 0.24);
position: relative;
isolation: isolate;
}
.logo-frame::before {
content: "";
position: absolute;
inset: 10px;
border: 1px solid rgba(210, 182, 118, 0.14);
border-radius: 12px;
pointer-events: none;
}
.logo-frame::after {
content: "";
position: absolute;
inset: auto 18% -24px;
height: 48px;
background: radial-gradient(circle, rgba(0, 0, 0, 0.42), transparent 72%);
filter: blur(8px);
z-index: -1;
pointer-events: none;
}
.logo-frame__image {
width: auto;
height: auto;
max-width: 100%;
max-height: 220px;
object-fit: contain;
filter:
drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28))
drop-shadow(0 0 18px rgba(210, 182, 118, 0.08));
}
.eyebrow {
margin: 0;
padding: 0.35rem 0.75rem;
border: 1px solid rgba(183, 201, 125, 0.22);
border-radius: 999px;
background: rgba(142, 160, 98, 0.08);
font-size: 0.76rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent-strong);
}
.eyebrow--section {
margin-bottom: 0.85rem;
}
h1,
h2 {
margin: 0;
line-height: 1.1;
}
h1 {
max-width: 12ch;
font-size: clamp(2.2rem, 5vw, 4.6rem);
letter-spacing: 0.02em;
text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
h2 {
font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}
.hero__title-accent {
display: block;
color: var(--accent-warm);
}
.hero__text {
max-width: 640px;
margin: 0;
color: var(--text-soft);
font-size: 1.06rem;
line-height: 1.85;
}
.hero__actions {
display: grid;
justify-items: center;
gap: 14px;
margin-top: 4px;
}
.status-chip {
margin: 0;
padding: 0.45rem 0.85rem;
border: 1px solid rgba(159, 168, 141, 0.22);
border-radius: 999px;
background: rgba(21, 26, 19, 0.72);
font-size: 0.76rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.status-chip--ok {
border-color: rgba(183, 201, 125, 0.34);
background: rgba(142, 160, 98, 0.12);
color: var(--accent-strong);
}
.status-chip--fallback {
border-color: rgba(210, 182, 118, 0.24);
background: rgba(210, 182, 118, 0.08);
color: var(--accent-warm);
}
.discord-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 52px;
min-width: 220px;
padding: 0 28px;
border: 1px solid rgba(183, 201, 125, 0.45);
border-radius: 999px;
background: linear-gradient(180deg, #8ea062 0%, #6e7f48 100%);
color: #11150f;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
transition:
transform 160ms ease,
box-shadow 160ms ease,
filter 160ms ease;
box-shadow: 0 12px 30px rgba(110, 127, 72, 0.35);
}
.discord-button:hover,
.discord-button:focus-visible {
transform: translateY(-1px);
filter: brightness(1.04);
box-shadow: 0 18px 36px rgba(110, 127, 72, 0.45);
}
.content {
width: 100%;
margin-top: -34px;
position: relative;
z-index: 2;
display: grid;
gap: 24px;
}
.panel {
position: relative;
width: 100%;
padding: 32px;
border: 1px solid var(--border);
border-radius: 24px;
background:
linear-gradient(180deg, rgba(23, 28, 21, 0.96), rgba(13, 16, 12, 0.99));
box-shadow: var(--shadow);
}
.panel::before {
content: "";
position: absolute;
inset: 0 auto auto 32px;
width: 120px;
height: 1px;
background: linear-gradient(90deg, rgba(210, 182, 118, 0.7), transparent);
}
.panel__header {
margin-bottom: 22px;
}
.panel__header--servers {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.panel__intro {
margin: 0 0 20px;
max-width: 70ch;
color: var(--text-soft);
line-height: 1.75;
}
.panel__intro--tight {
margin-bottom: 0;
max-width: 58ch;
}
.servers-source {
margin-bottom: 20px;
padding: 14px 16px;
border: 1px solid rgba(159, 168, 141, 0.18);
border-radius: 16px;
background: rgba(10, 12, 9, 0.26);
}
.servers-source[data-state="live"] {
border-color: rgba(183, 201, 125, 0.3);
background: rgba(142, 160, 98, 0.08);
}
.servers-source[data-state="historical"] {
border-color: rgba(210, 182, 118, 0.24);
background: rgba(210, 182, 118, 0.06);
}
.servers-source__label,
.servers-source__meta {
margin: 0;
}
.servers-source__label {
color: var(--text);
font-size: 0.82rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.servers-source__meta {
margin-top: 8px;
color: var(--text-soft);
line-height: 1.6;
}
.stats-preview {
margin-bottom: 20px;
padding: 16px 18px;
border: 1px solid rgba(159, 168, 141, 0.18);
border-radius: 18px;
background:
linear-gradient(180deg, rgba(28, 34, 25, 0.92), rgba(14, 18, 13, 0.95));
}
.stats-preview__eyebrow {
margin: 0 0 14px;
color: var(--accent-warm);
font-size: 0.74rem;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.stats-preview__items {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.stats-preview__item {
padding: 14px;
border: 1px solid rgba(159, 168, 141, 0.14);
border-radius: 14px;
background: rgba(10, 12, 9, 0.34);
}
.stats-preview__item p {
margin: 0 0 8px;
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.stats-preview__item strong {
display: block;
font-size: 1rem;
color: var(--text);
}
.panel--video {
position: relative;
max-width: var(--video-shell-width);
margin: 0 auto;
backdrop-filter: blur(4px);
}
.panel--servers {
max-width: var(--servers-shell-width);
margin: 0 auto;
padding-inline: 38px;
}
.video-wrapper {
position: relative;
width: 100%;
overflow: hidden;
padding: 12px;
border: 1px solid rgba(159, 168, 141, 0.2);
border-radius: 20px;
background:
linear-gradient(180deg, rgba(29, 35, 26, 0.95), rgba(10, 12, 9, 0.98));
aspect-ratio: 16 / 9;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.04),
0 24px 44px rgba(0, 0, 0, 0.3);
}
.video-wrapper::before {
content: "";
position: absolute;
inset: 0;
border-radius: 20px;
border: 1px solid rgba(210, 182, 118, 0.12);
pointer-events: none;
}
.video-wrapper::after {
content: "";
position: absolute;
inset: 12px auto auto 12px;
width: 132px;
height: 28px;
border-radius: 999px;
background:
linear-gradient(90deg, rgba(12, 16, 10, 0.88), rgba(12, 16, 10, 0.24));
pointer-events: none;
}
.video-wrapper iframe {
width: 100%;
height: 100%;
border: 0;
border-radius: 10px;
}
.servers-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
gap: 20px;
}
.servers-grid--section {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
align-items: stretch;
}
.server-panel-section + .server-panel-section {
margin-top: 22px;
}
.server-panel-section__header {
margin-bottom: 14px;
padding: 0 2px;
}
.server-panel-section__header h3,
.server-panel-section__header p {
margin: 0;
}
.server-panel-section__header h3 {
font-size: 1rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.server-panel-section__header p {
margin-top: 8px;
color: var(--text-soft);
line-height: 1.6;
max-width: 62ch;
}
.server-panel-section--real .server-panel-section__header h3 {
color: var(--accent-strong);
}
.server-panel-section--reference .server-panel-section__header h3 {
color: var(--accent-warm);
}
.server-card {
min-width: 0;
padding: 20px;
border: 1px solid rgba(159, 168, 141, 0.18);
border-radius: 20px;
background:
linear-gradient(180deg, rgba(28, 34, 25, 0.94), rgba(15, 18, 13, 0.98));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.03),
var(--shadow-soft);
}
.server-card--real {
border-color: rgba(183, 201, 125, 0.24);
background:
linear-gradient(180deg, rgba(32, 40, 28, 0.96), rgba(14, 18, 13, 0.98));
}
.server-card--reference {
border-color: rgba(210, 182, 118, 0.18);
background:
linear-gradient(180deg, rgba(31, 28, 22, 0.94), rgba(16, 14, 11, 0.98));
}
.server-card__top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.server-card__top--stats {
align-items: stretch;
gap: 18px;
}
.server-card__identity {
min-width: 0;
display: grid;
gap: 6px;
}
.server-card__eyebrow {
margin: 0;
color: var(--accent-warm);
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.server-card h3 {
margin: 0;
font-size: 1.08rem;
line-height: 1.4;
max-width: none;
overflow-wrap: anywhere;
}
.server-card__meta {
margin: 0 0 14px;
color: var(--muted);
font-size: 0.8rem;
letter-spacing: 0.04em;
line-height: 1.6;
}
.server-card__status-column {
display: grid;
align-content: start;
justify-items: end;
gap: 10px;
min-width: 150px;
}
.server-card__population {
margin: 0;
padding: 10px 12px;
max-width: 100%;
min-width: 120px;
border: 1px solid rgba(159, 168, 141, 0.16);
border-radius: 14px;
background: rgba(10, 12, 9, 0.3);
color: var(--accent-strong);
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.04em;
text-align: center;
}
.server-card__actions {
margin: 0;
width: 100%;
display: flex;
justify-content: flex-end;
}
.server-connect-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 100%;
min-height: 42px;
min-width: 136px;
padding: 0 16px;
border: 1px solid rgba(183, 201, 125, 0.38);
border-radius: 999px;
background: linear-gradient(180deg, rgba(183, 201, 125, 0.18), rgba(110, 127, 72, 0.24));
color: var(--accent-strong);
font-size: 0.76rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
transition:
transform 160ms ease,
border-color 160ms ease,
background 160ms ease;
}
.server-connect-button:hover,
.server-connect-button:focus-visible {
transform: translateY(-1px);
border-color: rgba(210, 182, 118, 0.52);
background: linear-gradient(180deg, rgba(210, 182, 118, 0.2), rgba(142, 160, 98, 0.26));
}
.server-state {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 88px;
padding: 0.35rem 0.65rem;
border: 1px solid rgba(159, 168, 141, 0.22);
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.server-state--online {
border-color: rgba(183, 201, 125, 0.34);
background: rgba(142, 160, 98, 0.12);
color: var(--accent-strong);
}
.server-state--offline {
border-color: rgba(210, 182, 118, 0.24);
background: rgba(210, 182, 118, 0.08);
color: var(--accent-warm);
}
.server-card__load {
width: 100%;
height: 8px;
margin-top: 16px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
overflow: hidden;
}
.server-card__load span {
display: block;
height: 100%;
border-radius: inherit;
background:
linear-gradient(90deg, rgba(210, 182, 118, 0.78), rgba(142, 160, 98, 0.92));
box-shadow: 0 0 18px rgba(142, 160, 98, 0.22);
}
.server-card__stats {
margin: 0;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}
.server-stat {
padding-top: 14px;
border-top: 1px solid rgba(159, 168, 141, 0.12);
}
.server-stat--players dd {
color: var(--accent-strong);
}
.server-card__stats dt {
margin: 0 0 6px;
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.server-card__stats dd {
margin: 0;
font-size: 0.95rem;
line-height: 1.4;
}
.server-card__body {
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
gap: 16px;
align-items: start;
}
.server-card__facts {
min-width: 0;
display: grid;
gap: 14px;
}
.server-card__quickfacts {
margin-bottom: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
}
.server-card__quickfact {
min-width: 0;
padding: 12px 14px;
border: 1px solid rgba(159, 168, 141, 0.12);
border-radius: 14px;
background: rgba(10, 12, 9, 0.22);
}
.server-card__quickfact p,
.server-card__quickfact strong {
margin: 0;
}
.server-card__quickfact p {
margin-bottom: 6px;
color: var(--muted);
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.server-card__quickfact strong {
display: block;
color: var(--text);
font-size: 0.92rem;
line-height: 1.45;
overflow-wrap: anywhere;
}
.server-summary {
margin: 0;
padding: 16px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
border: 1px solid rgba(159, 168, 141, 0.12);
border-radius: 16px;
background: rgba(10, 12, 9, 0.26);
}
.server-summary__item {
min-width: 0;
}
.server-summary__item dt,
.server-summary__item dd {
margin: 0;
}
.server-summary__item dt {
margin-bottom: 6px;
color: var(--muted);
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.server-summary__item dd {
color: var(--text);
font-size: 0.92rem;
line-height: 1.4;
overflow-wrap: anywhere;
}
.server-trend {
margin-top: 0;
min-width: 0;
padding: 16px;
border: 1px solid rgba(159, 168, 141, 0.12);
border-radius: 16px;
background: rgba(10, 12, 9, 0.26);
}
.server-trend__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.server-trend__header p,
.server-trend__header span {
margin: 0;
font-size: 0.76rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.server-trend__header p {
color: var(--text-soft);
}
.server-trend__header span {
color: var(--muted);
}
.server-trend__bars {
display: flex;
align-items: flex-end;
gap: 8px;
min-height: 70px;
overflow: hidden;
}
.server-trend__bar {
flex: 1 1 0;
min-width: 0;
border-radius: 999px 999px 4px 4px;
background:
linear-gradient(180deg, rgba(210, 182, 118, 0.86), rgba(142, 160, 98, 0.92));
box-shadow: 0 0 18px rgba(142, 160, 98, 0.18);
}
.server-trend__bar--empty {
height: 14%;
opacity: 0.35;
}
.servers-empty {
margin: 0;
padding: 18px;
border: 1px dashed rgba(159, 168, 141, 0.24);
border-radius: 18px;
color: var(--muted);
text-align: center;
}
@media (max-width: 1120px) {
.servers-grid--section {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.server-card__body {
grid-template-columns: 1fr;
}
}
@media (max-width: 760px) {
.servers-grid,
.servers-grid--section {
grid-template-columns: 1fr;
}
}
@media (max-width: 960px) {
.server-card__body {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.page-shell {
padding: 18px 14px 40px;
}
.hero__content,
.panel {
padding: 24px 16px;
}
.hero__content {
padding-top: 44px;
padding-bottom: 52px;
}
.hero__content::before {
inset: 24px 24px auto;
height: 110px;
}
.hero__text {
font-size: 0.98rem;
}
.logo-frame {
min-height: 180px;
padding: 16px 18px;
}
.logo-frame__image {
max-height: 180px;
}
.discord-button {
width: 100%;
}
.content {
margin-top: 18px;
gap: 18px;
}
.panel__header--servers,
.server-card__top {
flex-direction: column;
align-items: flex-start;
}
.server-state {
min-width: 0;
}
.server-card__status-column {
width: 100%;
justify-items: start;
min-width: 0;
}
.server-card__population {
min-width: 0;
}
.server-card__actions {
justify-content: start;
}
.server-card__stats {
grid-template-columns: 1fr;
}
.server-card__quickfacts {
grid-template-columns: 1fr;
}
.server-summary {
grid-template-columns: 1fr;
}
.stats-preview__items {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel::before {
left: 16px;
}
.video-wrapper {
padding: 6px;
}
.servers-grid {
grid-template-columns: 1fr;
}
}