/* ═══════════════════════════════════════════════════════════
   PeerDen — Early 2010s Gaming Tool Website
   Think: Tunngle, Hamachi, Xfire, GameRanger era
   Chunky gradients, bevels, noise textures, dense layouts
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #cfd2da;
    background: #1b1e2b;
    /* Subtle noise-ish texture via CSS */
    background-image:
        url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23ffffff' opacity='0.015'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #1b1e2b 0%, #141620 100%);
    background-attachment: fixed;
    line-height: 1.5;
    min-width: 960px;
}

a { color: #e05050; text-decoration: none; }
a:hover { color: #f08080; text-decoration: underline; }

.wrapper {
    width: 960px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ═══════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════ */
#top-bar {
    background: #0e0f16;
    border-bottom: 1px solid #2a2d3a;
    padding: 4px 0;
    font-size: 11px;
    color: #6b7084;
}
#top-bar .wrapper {
    display: flex;
    justify-content: space-between;
}
#top-bar a { color: #7f8aaf; font-size: 11px; }
#top-bar a:hover { color: #b0bce0; }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
#header {
    background: linear-gradient(180deg, #22263a 0%, #1a1d2d 100%);
    border-bottom: 1px solid #333750;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 0;
}
#header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

#logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-diamond {
    font-size: 32px;
    color: #e05050;
    text-shadow: 0 0 10px rgba(224,80,80,0.4);
    line-height: 1;
}
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-size: 22px;
    font-weight: bold;
    color: #e4e8f0;
    letter-spacing: 1px;
}
.logo-tagline {
    font-size: 10px;
    color: #6b7084;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nav buttons — chunky 2010s style */
#main-nav { display: flex; gap: 2px; }
.nav-btn {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #9ba0b8;
    background: linear-gradient(180deg, #2e3248 0%, #23273a 100%);
    border: 1px solid #3a3f58;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    /* 2010s inner highlight */
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 1px 3px rgba(0,0,0,0.3);
    transition: background 0.15s, color 0.15s;
}
.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(180deg, #3d4260 0%, #2e3248 100%);
    color: #d0d5eb;
    border-color: #4e5478;
    text-decoration: none;
}
.nav-btn.active {
    background: linear-gradient(180deg, #803a3a 0%, #652a2a 100%);
    border-color: #9a4a4a;
    color: #ffe0e0;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 0 8px rgba(224,80,80,0.15);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero-wrap {
    background:
        linear-gradient(180deg, #1a1d2d 0%, #161928 60%, #12141f 100%);
    border-bottom: 1px solid #2a2d3a;
    padding: 36px 0 40px;
}
.hero-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.hero-left { flex: 1; }
.hero-left h1 {
    font-size: 28px;
    font-weight: bold;
    color: #e8ecf4;
    line-height: 1.25;
    margin-bottom: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hero-desc {
    font-size: 13px;
    color: #8f95ae;
    line-height: 1.65;
    margin-bottom: 22px;
}
.hero-desc strong { color: #c0c6da; }

/* Big chunky download buttons */
.hero-actions { display: flex; gap: 12px; margin-bottom: 18px; }

.big-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 28px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    position: relative;
    border: 1px solid;
    min-width: 180px;
    transition: all 0.15s;
    /* Glossy top shine */
    background-size: 100% 100%;
}
.big-btn .btn-icon {
    font-size: 14px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}
.big-btn .btn-sub {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.7;
    margin-top: 2px;
}

.green-btn {
    background: linear-gradient(180deg, #5cb85c 0%, #449d44 40%, #398439 100%);
    border-color: #4cae4c;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 3px 8px rgba(0,0,0,0.35);
}
.green-btn:hover {
    background: linear-gradient(180deg, #6ec66e 0%, #52ab52 40%, #449844 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.2) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 4px 12px rgba(0,0,0,0.4);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.blue-btn {
    background: linear-gradient(180deg, #b84a4a 0%, #bd3535 40%, #962a2a 100%);
    border-color: #ad3535;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 3px 8px rgba(0,0,0,0.35);
}
.blue-btn:hover {
    background: linear-gradient(180deg, #c65c5c 0%, #c84545 40%, #a53535 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 4px 12px rgba(0,0,0,0.4);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Badges row */
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #8ac38a;
    background: rgba(90,180,90,0.08);
    border: 1px solid rgba(90,180,90,0.2);
    border-radius: 3px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}

/* ─── App Preview (fake screenshot) ─── */
.hero-right { width: 340px; flex-shrink: 0; }

.app-preview {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #3a3f58;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.3),
        0 6px 24px rgba(0,0,0,0.5);
    font-size: 12px;
}
.app-titlebar {
    background: linear-gradient(180deg, #2a2e42 0%, #1e2234 100%);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #3a3f58;
}
.app-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.app-dot.red { background: #e05050; }
.app-dot.yellow { background: #e0b050; }
.app-dot.green { background: #50b050; }
.app-titlebar-text {
    margin-left: 8px;
    font-size: 11px;
    color: #6b7084;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.app-body {
    background: #12141f;
}
.app-tabs {
    display: flex;
    background: #191c2a;
    border-bottom: 1px solid #2a2d3a;
}
.app-tab {
    padding: 6px 14px;
    font-size: 11px;
    color: #6b7084;
    cursor: default;
    border-right: 1px solid #2a2d3a;
}
.app-tab.active {
    background: #12141f;
    color: #b0b6cc;
    border-bottom: 1px solid #12141f;
    margin-bottom: -1px;
}

.app-content { padding: 12px 14px; }

.app-status-row {
    padding: 4px 0;
    font-size: 11px;
    color: #7a7f98;
    display: flex;
    align-items: center;
    gap: 6px;
}
.app-status-row strong { color: #b0b6cc; }

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: #50b050; box-shadow: 0 0 4px rgba(80,176,80,0.4); }
.status-dot.away { background: #b0a040; box-shadow: 0 0 4px rgba(176,160,64,0.4); }
.status-dot.down { background: #e05050; box-shadow: 0 0 4px rgba(224,80,80,0.4); }

.app-peers {
    margin-top: 10px;
    background: #0e0f16;
    border: 1px solid #2a2d3a;
    border-radius: 3px;
    padding: 6px;
}
.peer-row {
    padding: 4px 6px;
    font-size: 11px;
    color: #8f95ae;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #1a1d2a;
}
.peer-row:last-child { border-bottom: none; }
.peer-ping {
    margin-left: auto;
    font-size: 10px;
    color: #e05050;
    font-family: 'Consolas', 'Courier New', monospace;
}

/* ═══════════════════════════════════════
   STATS RIBBON
   ═══════════════════════════════════════ */
#stats-ribbon {
    background: linear-gradient(180deg, #22263a 0%, #1e2234 100%);
    border-top: 1px solid #333750;
    border-bottom: 1px solid #333750;
    padding: 14px 0;
}
.stats-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #e05050;
    text-shadow: 0 0 8px rgba(224,80,80,0.2);
}
.stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7084;
    letter-spacing: 1px;
}
.stat-sep {
    width: 1px;
    height: 30px;
    background: #333750;
}

/* ═══════════════════════════════════════
   SECTIONS — shared
   ═══════════════════════════════════════ */
.section-heading {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #d0d5eb;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.heading-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a4f68, transparent);
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
#features {
    padding: 36px 0 40px;
    border-bottom: 1px solid #2a2d3a;
}

.features-table {
    border: 1px solid #2a2d3a;
    border-radius: 4px;
    overflow: hidden;
}

.ft-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 18px;
    border-bottom: 1px solid #22253a;
    background: #15182480;
}
.ft-row.alt {
    background: #1a1d2c80;
}
.ft-row:last-child { border-bottom: none; }

.ft-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(180deg, #2a2e42 0%, #1e2234 100%);
    border: 1px solid #3a3f58;
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 2px 4px rgba(0,0,0,0.3);
}

.ft-info h3 {
    font-size: 13px;
    color: #d0d5eb;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ft-info p {
    font-size: 12px;
    color: #7a7f98;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════ */
#download {
    padding: 36px 0 40px;
    background: linear-gradient(180deg, #161928 0%, #1a1d2b 100%);
    border-bottom: 1px solid #2a2d3a;
}

.dl-intro {
    text-align: center;
    color: #7a7f98;
    margin-bottom: 24px;
    font-size: 13px;
}

.dl-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 28px;
}

.dl-box {
    width: 260px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #3a3f58;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.dl-box-head {
    background: linear-gradient(180deg, #2e3248 0%, #23273a 100%);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #d0d5eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #3a3f58;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}
.dl-box-body {
    background: #15182480;
    padding: 20px;
    text-align: center;
}
.dl-os-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.dl-box-body p {
    font-size: 12px;
    color: #7a7f98;
    margin-bottom: 14px;
    line-height: 1.5;
}

.dl-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #5cb85c 0%, #449d44 40%, #398439 100%);
    border: 1px solid #4cae4c;
    border-radius: 4px;
    text-decoration: none;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.15s;
}
.dl-btn:hover {
    background: linear-gradient(180deg, #6ec66e 0%, #52ab52 40%, #449844 100%);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 3px 10px rgba(0,0,0,0.4);
    color: #fff;
    text-decoration: none;
}

.dl-meta {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: #555a6e;
}

/* System requirements table */
.sys-req {
    max-width: 500px;
    margin: 0 auto;
}
.sys-req h3 {
    font-size: 13px;
    color: #8f95ae;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}
.sys-req table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.sys-req td {
    padding: 5px 10px;
    border-bottom: 1px solid #22253a;
}
.sys-req td:first-child {
    color: #8f95ae;
    font-weight: bold;
    width: 120px;
}
.sys-req td:last-child {
    color: #6b7084;
}

/* ═══════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════ */
#community {
    padding: 36px 0 40px;
    border-bottom: 1px solid #2a2d3a;
}

.comm-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comm-box {
    display: block;
    background: #15182480;
    border: 1px solid #2a2d3a;
    border-radius: 4px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.comm-box:hover {
    border-color: #4a5070;
    background: #1a1e3080;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    text-decoration: none;
}

.support-box {
    border-color: #4a3a28;
}
.support-box:hover {
    border-color: #7a5a30;
    background: #1f1a1280;
}
.support-box h3 {
    color: #d4a84a;
}
.support-box strong {
    color: #d4a84a;
}
.comm-box h3 {
    font-size: 13px;
    color: #d0d5eb;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comm-box p {
    font-size: 12px;
    color: #7a7f98;
    line-height: 1.55;
}
.comm-box strong { color: #e05050; }

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
#about {
    padding: 36px 0 40px;
    border-bottom: 1px solid #2a2d3a;
}
.about-inner p {
    max-width: 680px;
    margin: 0 auto 14px;
    font-size: 13px;
    color: #7a7f98;
    line-height: 1.7;
    text-align: center;
}
.about-inner strong { color: #b0b6cc; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
#footer {
    background: #0e0f16;
    border-top: 1px solid #2a2d3a;
    padding: 16px 0;
    font-size: 11px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left { color: #555a6e; }
.footer-right a {
    color: #6b7084;
    font-size: 11px;
}
.footer-right a:hover { color: #f08080; }

/* ═══════════════════════════════════════
   RESPONSIVE (basic — keeping fixed feel)
   ═══════════════════════════════════════ */
@media (max-width: 980px) {
    body { min-width: 0; }
    .wrapper { width: 100%; padding: 0 16px; }
    .hero-inner { flex-direction: column; }
    .hero-right { width: 100%; max-width: 400px; }
    .dl-boxes { flex-direction: column; align-items: center; }
    .comm-boxes { flex-direction: column; align-items: center; }
    #header .wrapper { flex-direction: column; height: auto; padding: 10px 16px; gap: 8px; }
    #main-nav { flex-wrap: wrap; }
}
