---
import CrushBase from '../layouts/CrushBase.astro';
---

<CrushBase title="dangrubb.net">
  <div class="crush-page">
    <header class="top-banner">
      <div class="brand">
        <span class="brand-name">dangrubb</span><span class="brand-dot">.</span><span class="brand-tld">net</span>
      </div>
      <p class="tagline">OFFICIAL SITE</p>
    </header>

    <main class="logo-section">
      <img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
      <div class="logo-center">
        <img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
      </div>
    </main>

    <footer class="bottom-nav">
      <a href="https://ai.dangrubb.net" class="nav-item">AI</a>
      <span class="nav-dot">•</span>
      <a href="/blog" class="nav-item">BLOG</a>
      <span class="nav-dot">•</span>
      <a href="https://pi.dangrubb.net/jellyfin" class="nav-item">MEDIA</a>
      <span class="nav-dot">•</span>
      <a href="https://pi.dangrubb.net/nextcloud" class="nav-item">STORAGE</a>
      <span class="nav-dot">•</span>
      <a href="/cv" class="nav-item">CV</a>
      <span class="nav-dot">•</span>
      <a href="https://pi.dangrubb.net/dangit" class="nav-item">GIT</a>
    </footer>
  </div>
</CrushBase>

<style>
  .crush-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    background: var(--crush-white);
  }

  .top-banner {
    text-align: center;
    padding: 16px 20px 10px;
    background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
    border-bottom: 3px solid var(--crush-teal);
    flex-shrink: 0;
  }

  .brand {
    font-family: 'Alfa Slab One', 'Georgia', serif;
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--crush-teal);
    letter-spacing: -2px;
    line-height: 1;
  }

  .brand-dot { color: var(--crush-teal-light); }
  .brand-tld { color: var(--crush-teal-dark); }

  .tagline {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--crush-teal);
    margin-top: 8px;
    text-transform: uppercase;
    opacity: 0.8;
  }

  .logo-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
  }

  .splatter-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
  }

  .logo-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 102, 102, 0.3));
  }

  .bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 20px 28px;
    background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
    border-top: 3px solid var(--crush-teal);
    flex-shrink: 0;
  }

  .nav-item {
    font-size: 18px;
    font-weight: 700;
    color: var(--crush-teal);
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(0, 139, 139, 0.05);
    transition: all 0.3s ease;
  }

  .nav-item:hover {
    background: rgba(0, 139, 139, 0.15);
    color: var(--crush-teal-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.2);
  }

  .nav-dot {
    font-size: 20px;
    color: var(--crush-teal);
    opacity: 0.5;
  }

  @media (max-width: 768px) {
    .top-banner { padding: 12px 15px 8px; }
    .logo-img { width: 60px; height: 60px; }
    .nav-item { font-size: 15px; padding: 6px 12px; }
    .bottom-nav { padding: 16px 15px 20px; }
  }

  @media (max-width: 480px) {
    .brand { font-size: 2.5rem; }
    .logo-img { width: 60px; height: 60px; }
    .bottom-nav { padding: 12px 12px 16px; }
    .nav-dot { display: none; }
  }
</style>
