/* ========================================
   HOWTOS PAGE STYLES - Zonixtec
   Based on WhyZonixtec.css structure
   ======================================== */

:root {
  --primary: #0066ff;
  --primary-dark: #0044cc;
  --secondary: #00f2ff;
  --accent: #ff3366;
  --dark: #050511;
  --dark-light: #0a0a1a;
  --light: #f5f5f5;
  --gray: #888;
  --success: #27ae60;
  --tech-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

/* Prevent animation overflow */
main {
  overflow-x: hidden;
  width: 100%;
}

section {
  overflow-x: hidden;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(6, 182, 212, 0.1) 0%,
      transparent 20%
    );
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 30px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--light);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--tech-gradient);
  border-radius: 2px;
}

.section-title span {
  color: var(--secondary);
}

.hero-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ========================================
   HOW-TO CARDS GRID
   ======================================== */

.howto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.howto-card {
  background: rgba(10, 10, 26, 0.7);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.howto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 102, 255, 0.2);
  border-color: var(--primary);
}

.card-header {
  padding: 25px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-header p {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--dark);
}

.card-content {
  padding: 25px;
  flex-grow: 1;
}

.card-content p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light);
}

.card-tag i {
  font-size: 0.8rem;
  color: var(--secondary);
}

.card-footer {
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-guide-btn {
  background: var(--primary);
  color: var(--light);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.read-guide-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.preview-btn {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.preview-btn:hover {
  color: var(--light);
}

/* ========================================
   GUIDE CONTENT STYLES
   ======================================== */

.guide-content {
  background: rgba(10, 10, 26, 0.7);
  border-radius: 15px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.guide-content.active {
  display: block;
}

.guide-content h2 {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.guide-content h3 {
  color: var(--light);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.guide-content p {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.7;
}

.guide-content ul,
.guide-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.guide-content li {
  color: var(--gray);
  margin-bottom: 10px;
}

.guide-content strong {
  color: var(--light);
}

.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  text-decoration: none;
  margin-bottom: 30px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-to-list:hover {
  color: var(--light);
}

.back-to-list i {
  transition: transform 0.3s ease;
}

.back-to-list:hover i {
  transform: translateX(-5px);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark);
  border-radius: 15px;
  margin-top: 60px;
}

.cta-section h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark);
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--dark);
  color: var(--light);
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .howto-cards {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 0px 0 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .howto-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-content {
    padding: 25px 20px;
  }

  .guide-content h2 {
    font-size: 1.5rem;
  }

  .guide-content h3 {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 40px 25px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }

  .howto-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-header {
    padding: 20px;
  }

  .card-header h3 {
    font-size: 1.3rem;
  }

  .card-content {
    padding: 20px;
  }

  .card-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .read-guide-btn,
  .preview-btn {
    text-align: center;
    width: 100%;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .guide-content {
    padding: 20px 15px;
  }

  .guide-content h2 {
    font-size: 1.3rem;
  }

  .guide-content h3 {
    font-size: 1.1rem;
  }

  .cta-section {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 1.3rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
