/* WifiTracker Web Showcase Styles */
:root {
    --bg: #0b0c16;
    --bg-secondary: #131527;
    --bg-card: rgba(26, 29, 52, 0.7);
    --bg-card-hover: rgba(38, 43, 76, 0.85);
    --border: rgba(60, 68, 110, 0.4);
    --accent-blue: #00d2ff;
    --accent-green: #00e676;
    --accent-amber: #ffd600;
    --accent-red: #ff1744;
    --accent-purple: #a78bfa;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --glow-blue: rgba(0, 210, 255, 0.25);
    --glow-green: rgba(0, 230, 118, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.glow-bg {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--glow-blue) 0%, rgba(11, 12, 22, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(11, 12, 22, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-blue);
    text-shadow: 0 0 12px var(--glow-blue);
}

.btn-github {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-github:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-value.green {
    color: var(--accent-green);
    text-shadow: 0 0 16px var(--glow-green);
}

.metric-value.blue {
    color: var(--accent-blue);
    text-shadow: 0 0 16px var(--glow-blue);
}

.metric-value.purple {
    color: var(--accent-purple);
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Diagnostic Analyzer Section */
.diag-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.diag-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.diag-section .desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.network-hops {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hop-row {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.hop-icon {
    font-size: 1.4rem;
    margin-right: 16px;
}

.hop-info {
    flex: 1;
}

.hop-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.hop-detail {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.hop-status {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.hop-status.ok {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
}

.hop-status.warn {
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent-amber);
}

.hop-status.alert {
    background: rgba(255, 23, 68, 0.15);
    color: var(--accent-red);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.feature-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent-blue);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    header {
        padding: 16px 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
