/* ========================================================
   MIRRYKAL TOOLS - GLOBAL GLOW DESIGN SYSTEM
   ======================================================== */

:root {
  --bg-dark: #0a0b10;
  --bg-card: rgba(18, 20, 29, 0.7);
  --bg-card-hover: rgba(26, 29, 44, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 43, 226, 0.5);
  
  --primary-glow: #8a2be2;      /* Purple neon */
  --secondary-glow: #00d2ff;    /* Cyan neon */
  --accent-pink: #ff2a85;       /* Pink accent */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --yt-red: #ff0000;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.orb-1 {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, var(--primary-glow), transparent);
}
.orb-2 {
  top: 500px;
  right: 10%;
  background: radial-gradient(circle, var(--secondary-glow), transparent);
}

/* ================= Navbar ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 16, 0.75);
  border-bottom: 1px solid var(--border-glass);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-glow {
  color: #fff;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
}
.logo-sub {
  color: var(--secondary-glow);
}

/* YouTube Header Button */
.yt-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}
.yt-button:hover {
  background: rgba(255, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px);
}
.yt-icon {
  width: 20px;
  height: 20px;
  color: var(--yt-red);
}

/* ================= Hero Section ================= */
.hero-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 70px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-glow);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ================= Tools Grid ================= */
.main-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 80px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.section-title-wrap h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}
.section-title-wrap p {
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Glowing Tool Card */
.tool-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-glow), var(--primary-glow), transparent);
  opacity: 0;
  transition: var(--transition);
}
.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(138, 43, 226, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(138, 43, 226, 0.35);
}
.tool-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-icon {
  font-size: 1.8rem;
}
.badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-trending {
  background: rgba(255, 42, 133, 0.15);
  border: 1px solid rgba(255, 42, 133, 0.4);
  color: #ff529f;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.2);
}
.badge-popular {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--secondary-glow);
}
.badge-utility {
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  color: #bb7eff;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}
.card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.tool-card:hover .card-cta {
  color: #fff;
  transform: translateX(4px);
}

/* ================= Footer ================= */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 11, 16, 0.9);
  padding: 50px 20px 24px;
  position: relative;
  z-index: 1;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 10px 0 16px;
  max-width: 320px;
}
.yt-link-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.yt-link-footer:hover {
  text-decoration: underline;
}
.yt-icon-sm {
  width: 18px;
  height: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--secondary-glow);
  transform: translateX(3px);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; }
}
