/**
 * The Puzzle Architect - Tips Page Styles
 * All classes prefixed with tips-
 */

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

.tips-hero {
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.tips-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.tips-hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

.tips-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   QUICK NAV
   ============================================================================ */

.tips-nav {
  background: #f8f9ff;
  padding: 20px;
  border-bottom: 1px solid #e8f0ff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tips-nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tips-nav-link {
  padding: 10px 20px;
  background: #fff;
  color: #0052CC;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #e8f0ff;
  transition: all 0.2s;
}

.tips-nav-link:hover {
  background: #0052CC;
  color: #fff;
  border-color: #0052CC;
}

/* ============================================================================
   CONTENT
   ============================================================================ */

.tips-content {
  padding: 60px 20px;
  background: #fff;
}

.tips-intro {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f0f7ff;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

.tips-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.tips-section:last-of-type {
  margin-bottom: 60px;
}

.tips-section-header {
  margin-bottom: 40px;
}

.tips-section-header h2 {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.tips-section-header p {
  font-size: 1.1rem;
  color: #666;
}

/* Level Badges */
.tips-level {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.tips-level-beginner {
  background: #e8f5e9;
  color: #2e7d32;
}

.tips-level-intermediate {
  background: #fff3e0;
  color: #e65100;
}

.tips-level-advanced {
  background: #fce4ec;
  color: #c2185b;
}

.tips-level-general {
  background: #e3f2fd;
  color: #1565c0;
}

/* ============================================================================
   TECHNIQUES
   ============================================================================ */

.tips-technique {
  background: #f8f9ff;
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid #e8f0ff;
}

.tips-technique h3 {
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  padding: 18px 25px;
  font-size: 1.2rem;
  margin: 0;
}

.tips-technique-content {
  padding: 25px;
}

.tips-diagram {
  float: right;
  margin: 0 0 20px 25px;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.tips-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .tips-diagram {
    float: none;
    margin: 0 auto 20px;
    max-width: 100%;
  }
}

.tips-technique-content > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.tips-how {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #0052CC;
}

.tips-how h4 {
  font-size: 0.95rem;
  color: #0052CC;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tips-how ol {
  margin: 0;
  padding-left: 20px;
}

.tips-how li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #444;
}

.tips-how li:last-child {
  margin-bottom: 0;
}

.tips-example {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #FFD700;
}

.tips-example strong {
  color: #1a1a2e;
}

.tips-tip {
  background: #e8f5e9;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2e7d32;
}

.tips-tip strong {
  color: #1b5e20;
}

/* ============================================================================
   GENERAL TIPS GRID
   ============================================================================ */

.tips-general-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tips-general-item {
  background: #f8f9ff;
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e8f0ff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tips-general-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 82, 204, 0.1);
}

.tips-general-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.tips-general-item h4 {
  font-size: 1rem;
  color: #0052CC;
  margin-bottom: 10px;
}

.tips-general-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================================
   CTA
   ============================================================================ */

.tips-cta {
  margin-top: 60px;
  padding: 50px;
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  border-radius: 16px;
  text-align: center;
  color: #fff;
}

.tips-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.tips-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.tips-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.tips-btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: #FFD700;
  color: #1a1a2e;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tips-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.tips-btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tips-btn-secondary:hover {
  background: #fff;
  color: #0052CC;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .tips-general-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tips-hero {
    padding: 60px 20px;
  }

  .tips-hero h1 {
    font-size: 2.2rem;
  }

  .tips-nav-links {
    gap: 10px;
  }

  .tips-nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .tips-section-header h2 {
    font-size: 1.6rem;
  }

  .tips-technique h3 {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .tips-technique-content {
    padding: 20px;
  }

  .tips-cta {
    padding: 35px 25px;
  }

  .tips-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 500px) {
  .tips-general-grid {
    grid-template-columns: 1fr;
  }

  .tips-nav-link {
    flex: 1 1 40%;
    text-align: center;
  }
}
