
:root {
    --bg: #0b0f14;
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #7c3aed;
    --accent-hover: #8b5cf6;
    --border: rgba(255,255,255,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: url("media/bg.png") no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    min-height: 100vh;
}

/* Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 20, 0.75);
    z-index: -1;
}

/* ================================
   NAVBAR
================================ */

.navbar {
    width: 100%;
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    flex-wrap: wrap;
}

.nav-container a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-container a:hover {
    background: var(--accent);
    border-color: var(--accent-hover);
    color: white;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

/* Make logo ignore shared link styling */
.logo-link {
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Remove hover effect just for logo */
.logo-link:hover {
    background: none !important;
    border: none !important;
}

/* Ensure image fills navbar height */
.nav-logo {
    height: calc(100% + 30px);
    margin: -15px 0;
    width: auto;
    max-width: 180px;   /* <-- key control */
    object-fit: contain;
    display: block;
}





/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Main button */
.dropbtn {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    transition: 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
}

.dropbtn:hover {
    background: var(--accent);
    border-color: var(--accent-hover);
    color: white;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 160px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Links inside dropdown */
.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: white;
}

/* Show on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Always-highlight Event dropdown */
.dropbtn.event-highlight {
    background: #16a34a; /* green */
    border-color: #22c55e;
    color: white;
}

.dropbtn.event-highlight:hover {
    background: #15803d; /* slightly darker on hover */
    border-color: #16a34a;
}

/* Utilities hover (orange only on hover) */
.dropbtn.utilities-highlight:hover {
    background: #f97316;        /* orange */
    border-color: #fb923c;
    color: white;
}






/* ================================
   DROPDOWN (NAV UTILITIES)
================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
    display: inline-block;
}

.dropbtn:hover {
    background: var(--accent);
    border-color: var(--accent-hover);
    color: white;
}

/* dropdown panel */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 180px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;

    padding: 6px;
}

/* dropdown links */
.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: white;
}

/* show on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


/* ================================
   HERO
================================ */


.hero {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.hero-content p {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--muted);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ================================
   SECTIONS
================================ */
.section {
    padding: 60px 10%;
}

.section h2 {
    margin-bottom: 20px;
}

.section h3 {
    margin-bottom: 5px;
}

.section p {
    margin-bottom: 5px;
}

/* ================================
   EVENTS
================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--panel);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.03);
}

.event-links a {
    margin-right: 10px;
    color: var(--accent);
    text-decoration: none;
}

/* ================================
   NEWS (Accordion)
================================ */
.news-item {
    margin-bottom: 15px;
}

.news-toggle {
    width: 100%;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 15px;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
}

.news-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    background: rgba(0,0,0,0.3);
    padding: 0 15px;
    border-radius: 0 0 8px 8px;
}

.news-content.open {
    max-height: 600px;
    padding: 15px;
}

/* ================================
   LINKS
================================ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.link-card {
    display: block;
    padding: 20px;
    background: var(--panel);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.link-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
}

/* ================================
   SPINNER SYSTEM (UNCHANGED CORE)
================================ */
.machine {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: min(700px, 95vw);
}

.wheel-track {
    position: relative;
    width: 100%;
    height: clamp(70px, 10vw, 110px);
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}

.center-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: clamp(60px, 10vw, 100px);
    transform: translateX(-50%);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    pointer-events: none;
    z-index: 5;
}

.wheel-strip {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
    transition: transform 0.08s linear;
}

.tile {
    flex: 0 0 auto;
    width: clamp(60px, 8vw, 90px);
    aspect-ratio: 1 / 1;
    margin: 0 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.result-box {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    text-align: center;
}

.result-text {
    color: var(--accent);
    font-family: Orbitron, sans-serif;
    font-weight: 700;
}

.spin-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.spin-btn:hover {
    background: var(--accent-hover);
}


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.image-container img {
    width: min(600px, 80vw);
    height: auto;
    image-rendering: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

/* Admin navbar link */
.navbar .admin-nav-link {
    margin-left: 18px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    color: #f4f0ff;
    font-weight: 700;
    text-decoration: none;
}

.navbar .admin-nav-link:hover {
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(139, 92, 246, 0.8);
}


/* Force Admin navbar button to far right */
.navbar {
    position: relative;
}

.navbar .nav-container {
    width: 100%;
    max-width: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .admin-nav-link {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    color: #f4f0ff;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.navbar .admin-nav-link:hover {
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(139, 92, 246, 0.8);
}

@media (max-width: 760px) {
    .navbar .admin-nav-link {
        position: static;
        transform: none;
        margin-left: 10px;
    }
}


/* Inline Admin navbar link next to Utilities */
.navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .admin-nav-link {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: 18px !important;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    color: #f4f0ff;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.navbar .admin-nav-link:hover {
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(139, 92, 246, 0.8);
}

/* Make Admin navbar link match normal navbar links */
.navbar .admin-nav-link {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    line-height: inherit !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.navbar .admin-nav-link:hover {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
}


/* Global floating Admin Home button */
.admin-home-float {
  all: unset !important;
  box-sizing: border-box !important;

  position: fixed !important;
  left: 18px !important;
  top: 78px !important;
  z-index: 9998 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  padding: 10px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(250,204,21,.9) !important;

  background: linear-gradient(180deg, rgba(42,36,14,.96), rgba(13,17,25,.96)) !important;
  color: #fff7cc !important;

  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;

  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;

  box-shadow:
    0 0 10px rgba(250,204,21,.45),
    0 0 22px rgba(250,204,21,.20) !important;

  animation: adminHomeGoldPulse 3.2s ease-in-out infinite !important;
}

.admin-home-float:hover {
  color: #ffffff !important;
  border-color: rgba(255,236,153,1) !important;
  background: linear-gradient(180deg, rgba(64,49,13,.98), rgba(18,16,32,.98)) !important;
  box-shadow:
    0 0 14px rgba(250,204,21,.65),
    0 0 34px rgba(250,204,21,.30) !important;
}

@keyframes adminHomeGoldPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(250,204,21,.38),
      0 0 22px rgba(250,204,21,.18);
  }

  50% {
    transform: scale(1.025);
    box-shadow:
      0 0 15px rgba(250,204,21,.65),
      0 0 34px rgba(250,204,21,.30);
  }
}

@media (max-width: 700px) {
  .admin-home-float {
    top: 72px !important;
    left: 12px !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}

/* Standardize pet PNG sizes in Pets/Kits Editor */ 
.pets-kits-editor-table img.pet-icon {
    width: 48px;       /* adjust to preferred width */
    height: 48px;      /* adjust to preferred height */
    object-fit: contain;
}
