﻿/* ═══ HUB HERO ═══ */
.hub-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
}

.hub-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(108,43,217,.15), transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(26,107,255,.1), transparent 60%), radial-gradient(ellipse at 50% 80%, rgba(212,160,23,.08), transparent 50%);
}

.hub-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1260px;
    margin: 0 auto;
    padding: 120px 4% 80px;
    width: 100%;
}

.hub-hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-bottom: 1.5rem;
}

.hub-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: hubPulse 2s infinite;
}

@keyframes hubPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16,185,129,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0);
    }
}

/*.hub-title {
    font-family: var(--fd);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: .05em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1rem;
}

    .hub-title em {
        background: var(--g-full);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-style: normal;
    }*/
.hub-title {
    font-family: var(--fd);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: .05em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1rem;
}

    .hub-title em {
        background: var(--g-full);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-style: normal;
    }


.hub-brand {
    font-family: var(--fd);
    font-style: normal;
    letter-spacing: .08em;
    position: relative;
    background: linear-gradient( 90deg, #ffffff 0%, #f0c040 20%, #a76ff7 40%, #ffffff 60%, #3d8bff 80%, #ffffff 100% );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite, brandGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(108, 43, 217, 0.4)) drop-shadow(0 0 30px rgba(26, 107, 255, 0.2));
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes brandGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(108, 43, 217, 0.3)) drop-shadow(0 0 20px rgba(26, 107, 255, 0.15));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(108, 43, 217, 0.6)) drop-shadow(0 0 40px rgba(26, 107, 255, 0.3)) drop-shadow(0 0 60px rgba(212, 160, 23, 0.2));
    }
}


.hub-subtitle {
    font-family: var(--fs);
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hub-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-btn-primary {
    padding: .8rem 2rem;
    background: var(--g-purple);
    color: #fff;
    border-radius: 8px;
    font-family: var(--fs);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 0 30px var(--glow-p);
}

    .hub-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 45px var(--glow-p);
    }

.hub-btn-secondary {
    padding: .8rem 2rem;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    font-family: var(--fs);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
}

    .hub-btn-secondary:hover {
        border-color: var(--purple-3);
        color: var(--purple-3);
    }

/* ═══ HUB STATS ═══ */
.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hub-stat-card {
    background: rgba(13,13,24,.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all .3s;
}

    .hub-stat-card:hover {
        border-color: var(--border-2);
        transform: translateY(-4px);
        box-shadow: 0 10px 40px rgba(108,43,217,.2);
    }

.hub-stat-value {
    font-family: var(--fd);
    font-size: 3rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: .5rem;
}

    .hub-stat-value.gold {
        color: var(--gold-2);
    }

    .hub-stat-value.red {
        color: #ef4444;
    }

    .hub-stat-value.blue {
        color: var(--blue-2);
    }

.hub-stat-label {
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══ TOOLS SECTION ═══ */
.hub-tools-section,
.hub-latest-section {
    padding: 5rem 4%;
}

.hub-section-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.hub-section-label {
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-bottom: .5rem;
}

.hub-section-heading {
    font-family: var(--fd);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
}

    .hub-section-heading em {
        background: var(--g-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-style: normal;
    }

.hub-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hub-tool-card {
    position: relative;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all .3s;
    display: block;
}

    .hub-tool-card.featured {
        border-color: var(--purple);
        background: linear-gradient(135deg, rgba(108,43,217,.1), rgba(26,107,255,.05));
    }

        .hub-tool-card.featured:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 50px rgba(108,43,217,.3);
        }

    .hub-tool-card.disabled {
        opacity: .5;
        cursor: default;
    }

.hub-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hub-tool-title {
    font-family: var(--fs);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .5rem;
}

.hub-tool-desc {
    font-family: var(--fs);
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hub-tool-link {
    font-family: var(--fs);
    font-size: .8rem;
    font-weight: 600;
    color: var(--purple-3);
}

.hub-tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: .3rem .6rem;
    border-radius: 4px;
    animation: hubPulse 2s infinite;
}

.hub-tool-coming {
    font-family: var(--fm);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-2);
}

/* ═══ LATEST QUAKES ═══ */
.hub-quake-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hub-quake-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all .2s;
}

    .hub-quake-item:hover {
        border-color: var(--border-2);
        background: var(--black-3);
    }

.hub-quake-mag {
    font-family: var(--fd);
    font-size: 1.5rem;
    min-width: 70px;
    text-align: center;
}

    .hub-quake-mag.red {
        color: #ef4444;
    }

    .hub-quake-mag.gold {
        color: var(--gold-2);
    }

    .hub-quake-mag.orange {
        color: #f97316;
    }

    .hub-quake-mag.blue {
        color: var(--blue-2);
    }

.hub-quake-info {
    flex: 1;
}

.hub-quake-place {
    font-family: var(--fs);
    font-size: .9rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: .25rem;
}

.hub-quake-meta {
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--muted);
}

.hub-quake-view {
    font-family: var(--fs);
    font-size: .8rem;
    color: var(--purple-3);
    text-decoration: none;
    white-space: nowrap;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hub-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hub-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-tools-grid {
        grid-template-columns: 1fr;
    }

    .hub-quake-item {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }

    .hub-quake-mag {
        min-width: auto;
    }
}



/* ═══ LIVE TICKER ═══ */
.hub-ticker-container {
    display: flex;
    align-items: center;
    background: rgba(13,13,24,.95);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.hub-ticker-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    /*background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(249,115,22,.1));*/
    background: linear-gradient(135deg, rgb(38, 27, 153, 0.75), rgb(73, 62, 196, 0.80), rgb(232, 85, 92, 0.75));
    font-family: var(--fm);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #ef4444;
    white-space: nowrap;
    border-right: 1px solid rgba(239,68,68,.3);
    flex-shrink: 0;
}

.hub-ticker-viewport {
    overflow: hidden;
    flex: 1;
}

.hub-ticker-track {
    display: inline-flex;
    gap: 3rem;
    padding: .8rem 1.5rem;
    animation: tickerScroll 80s linear infinite;
    white-space: nowrap;
}

    .hub-ticker-track:hover {
        animation-play-state: paused;
    }

.hub-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fs);
    font-size: .75rem;
    color: rgba(240,238,255,.7);
}

    .hub-ticker-item strong {
        font-weight: 700;
    }

    .hub-ticker-item.mag-6 {
        color: #ef4444;
    }

    .hub-ticker-item.mag-5 {
        color: var(--gold-2);
    }

    .hub-ticker-item.mag-4 {
        color: #f97316;
    }

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

[dir="rtl"] .hub-ticker-label {
    border-right: none;
    border-left: 1px solid rgba(239,68,68,.3);
}

[dir="rtl"] .hub-ticker-track {
    animation-direction: reverse;
}


/* ═══ ENERGY METER ═══ */
.hub-energy-section {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
}

.hub-energy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hub-energy-title {
    font-family: var(--fd);
    font-size: 1.5rem;
    color: var(--white);
    margin-top: .5rem;
}

.hub-energy-value {
    font-family: var(--fd);
    font-size: 1.5rem;
    color: var(--gold-2);
}

.hub-energy-meter {
    position: relative;
    height: 12px;
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: .75rem;
}

.hub-energy-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #d4a017, #f97316, #ef4444);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(212,160,23,.5);
}

.hub-energy-scale {
    display: flex;
    justify-content: space-between;
    font-family: var(--fm);
    font-size: .6rem;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hub-energy-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.energy-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,.02);
    border-radius: 8px;
}

.energy-stat-value {
    display: block;
    font-family: var(--fd);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: .25rem;
}

.energy-stat-label {
    font-family: var(--fm);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 768px) {
    .hub-energy-info {
        grid-template-columns: 1fr;
    }
}



/* ═══ CONTENT GRID (2 columns) ═══ */
.hub-content-section,
.hub-additional-section {
    padding: 5rem 4%;
}

.hub-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* col-8 + col-4 */
    gap: 2rem;
}

.hub-content-main {
    grid-column: 1;
}

.hub-content-side {
    grid-column: 2;
}

/* ═══ TSUNAMI STATUS ═══ */
.hub-tsunami-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tsunami-status-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

    .tsunami-status-card.safe {
        border-color: rgba(16, 185, 129, 0.3);
        background: rgba(16, 185, 129, 0.05);
    }

.tsunami-status-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.tsunami-status-title {
    font-family: var(--fs);
    font-size: .9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .5rem;
}

.tsunami-status-desc {
    font-family: var(--fs);
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: .75rem;
}

.tsunami-status-time {
    font-family: var(--fm);
    font-size: .6rem;
    color: var(--muted);
}

/* ═══ SIDE STATS ═══ */
.hub-side-stats {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.side-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

    .side-stat-item:last-child {
        border-bottom: none;
    }

.side-stat-label {
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.side-stat-value {
    font-family: var(--fs);
    font-size: .8rem;
    font-weight: 600;
    color: var(--white);
}

/* ═══ HIGHLIGHTS GRID ═══ */
.hub-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all .3s;
}

    .highlight-card:hover {
        border-color: var(--border-2);
        transform: translateY(-3px);
    }

.highlight-icon {
    font-size: 1.8rem;
    margin-bottom: .75rem;
}

.highlight-title {
    font-family: var(--fm);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.highlight-value {
    font-family: var(--fd);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: .25rem;
}

.highlight-desc {
    font-family: var(--fs);
    font-size: .7rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hub-content-grid {
        grid-template-columns: 1fr;
    }

    .hub-content-main,
    .hub-content-side {
        grid-column: 1;
    }

    .hub-highlights-grid {
        grid-template-columns: 1fr;
    }
}

.tsunami-status-card.warning {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

    .tsunami-status-card.warning .tsunami-status-title {
        color: #ef4444;
    }


/* Tsunami Quake List */
.tsunami-quake-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.tsunami-quake-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s;
}

    .tsunami-quake-item:hover {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.4);
    }

.tsunami-quake-mag {
    font-family: var(--fd);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    min-width: 50px;
    text-align: center;
}

.tsunami-quake-info {
    flex: 1;
    text-align: left;
}

.tsunami-quake-place {
    font-family: var(--fs);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.tsunami-quake-meta {
    font-family: var(--fm);
    font-size: 0.6rem;
    color: var(--muted);
}

.tsunami-quake-link {
    font-family: var(--fs);
    font-size: 0.7rem;
    color: #ef4444;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

    .tsunami-quake-link:hover {
        background: rgba(239, 68, 68, 0.2);
        color: #fff;
    }


.tsunami-status-card.watch {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
}

.tsunami-status-card.advisory {
    border-color: rgba(212, 160, 23, 0.3);
    background: rgba(212, 160, 23, 0.05);
}

.tsunami-status-card.warning {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.tsunami-source-label {
    font-family: var(--fm);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.tsunami-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
    margin: 1.5rem 0;
}


/* ═══ HUB FILTER ═══ */
.hub-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

    .hub-feed-header .hub-section-heading {
        margin-bottom: 0;
    }

.hub-filter-select {
    background: var(--black-2);
    color: var(--white);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: var(--fs);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .hub-filter-select:hover {
        border-color: var(--purple-3);
    }

    .hub-filter-select:focus {
        outline: none;
        border-color: var(--purple-3);
        box-shadow: 0 0 15px var(--glow-p);
    }