/**
 * Razorweave Website - Component Styles
 * Reusable UI components (buttons, cards, navigation)
 */

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: var(--color-electric-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-electric-blue);
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-hot-pink);
  border: 2px solid var(--color-hot-pink);
}

.btn-secondary:hover {
  background: var(--color-hot-pink);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-electric-blue);
  text-decoration: underline;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-hot-pink);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ===================================
   CARDS
   =================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Card corner decorations */
.card-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.card .corner-tl {
  top: 0;
  left: 0;
}

.card .corner-tr {
  top: 0;
  right: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-accent-left {
  border-left: 4px solid var(--color-electric-blue);
}

.card-accent-top {
  border-top: 4px solid var(--color-hot-pink);
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.card p:last-child {
  margin-bottom: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* ===================================
   GRID LAYOUTS
   =================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.site-header {
  background: var(--color-white);
  padding: 5px 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.site-header .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-electric-blue);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-logo:hover {
  color: var(--color-hot-pink);
}

.site-nav {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-hot-pink);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  background: var(--color-hot-pink);
  color: var(--color-white);
}

.site-nav a.active {
  border-bottom: 2px solid var(--color-hot-pink);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-hot-pink);
}

.dark-mode-toggle:hover {
  background: var(--color-hot-pink);
  color: var(--color-white);
}

.dark-mode-toggle .sun-icon {
  display: none;
}

.dark-mode-toggle .moon-icon {
  display: block;
}

body.dark-mode .dark-mode-toggle .sun-icon {
  display: block;
}

body.dark-mode .dark-mode-toggle .moon-icon {
  display: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink-black);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md);
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: var(--spacing-sm);
  }
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background: var(--color-light-gray);
  border-top: 2px solid var(--color-border-gray);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.site-footer .container {
  text-align: center;
}

.site-footer nav {
  margin-bottom: var(--spacing-md);
}

.site-footer nav a {
  color: var(--color-ink-black);
  margin: 0 var(--spacing-md);
  font-size: 0.95rem;
}

.site-footer p {
  color: var(--color-medium-gray);
  font-size: 0.875rem;
  margin: 0;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 183px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl) 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-electric-blue), var(--color-hot-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 217, 255, 0.4));
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
