/* ============================================
   TOOLS PAGE STYLES
   Purpose: Styles specific to tools.ejs
   Mobile-first approach
   ============================================ */

/* ============================================
   TOOLS HERO SECTION
   ============================================ */

.tools-hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #5B8DDB 0%, #7BA5E8 100%);
  color: var(--text-on-primary);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

@media (min-width: 768px) {
  .tools-hero {
    padding: 100px 40px;
  }
}

.tools-hero.fade-in {
  opacity: 1;
}

@media (min-width: 768px) {
  .tools-hero.fade-in {
    opacity: 1;
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-on-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
    margin-bottom: 20px;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 22px;
  }
}

/* ============================================
   TOOLS GRID SECTION
   ============================================ */

.tools-grid-section {
  padding: 60px 20px;
  background-color: var(--bg-cream);
}

@media (min-width: 768px) {
  .tools-grid-section {
    padding: 80px 40px;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ============================================
   TOOL CARD
   ============================================ */

.tool-card {
  background-color: var(--bg-white);
  padding: 32px 28px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .tool-card {
    padding: 40px 32px;
  }
}

.tool-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideUp 0.6s ease forwards;
}

@media (min-width: 768px) {
  .tool-card.animate-in {
    animation: slideUp 0.6s ease forwards;
  }
}

.tool-card:not(.coming-soon):hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  text-decoration: none;
}

@media (min-width: 768px) {
  .tool-card:not(.coming-soon):hover {
    transform: translateY(-10px);
  }
}

.tool-card.coming-soon {
  opacity: 0.6;
  cursor: pointer;
}

@media (min-width: 768px) {
  .tool-card.coming-soon {
    opacity: 0.6;
  }
}

.tool-card.coming-soon:hover {
  opacity: 0.7;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .tool-card.coming-soon:hover {
    opacity: 0.7;
  }
}

.tool-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .tool-icon {
    font-size: 72px;
    margin-bottom: 24px;
  }
}

.tool-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .tool-name {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

.tool-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-medium);
  flex: 1;
}

@media (min-width: 768px) {
  .tool-description {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

.tool-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-blue);
}

@media (min-width: 768px) {
  .tool-cta {
    font-size: 16px;
  }
}

.tool-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--warning-orange);
  color: var(--text-on-primary);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .tool-badge {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ============================================
   TOOLS EMPTY STATE
   ============================================ */

.tools-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tools-empty {
    padding: 120px 40px;
  }
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .empty-icon {
    font-size: 100px;
    margin-bottom: 32px;
  }
}

.tools-empty h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .tools-empty h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

.tools-empty p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-medium);
}

@media (min-width: 768px) {
  .tools-empty p {
    font-size: 18px;
  }
}

/* ============================================
   HOW TO USE SECTION
   ============================================ */

.tools-how-to-use {
  padding: 60px 20px;
  background-color: var(--bg-white);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

@media (min-width: 768px) {
  .tools-how-to-use {
    padding: 80px 40px;
  }
}

.tools-how-to-use.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .tools-how-to-use.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    margin-bottom: 60px;
  }
}

.how-to-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-to-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .how-to-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.how-to-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .how-to-item {
    align-items: center;
  }
}

.how-to-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--text-on-primary);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .how-to-number {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: 24px;
  }
}

.how-to-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .how-to-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

.how-to-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-medium);
}

@media (min-width: 768px) {
  .how-to-content p {
    font-size: 16px;
  }
}

/* ============================================
   TOOLS FEATURES SECTION
   ============================================ */

.tools-features {
  padding: 60px 20px;
  background-color: var(--bg-cream);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

@media (min-width: 768px) {
  .tools-features {
    padding: 80px 40px;
  }
}

.tools-features.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .tools-features.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.feature-card {
  background-color: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .feature-card {
    padding: 32px 28px;
  }
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .feature-card:hover {
    transform: translateY(-6px);
  }
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
  }
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-medium);
}

@media (min-width: 768px) {
  .feature-card p {
    font-size: 16px;
  }
}

/* ============================================
   REQUEST TOOL SECTION
   ============================================ */

.tools-request {
  padding: 60px 20px;
  background-color: var(--bg-light);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

@media (min-width: 768px) {
  .tools-request {
    padding: 100px 40px;
  }
}

.tools-request.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .tools-request.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}

.request-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .request-content {
    max-width: 800px;
  }
}

.request-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .request-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
  }
}

.request-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-medium);
}

@media (min-width: 768px) {
  .request-content p {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

.request-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .request-buttons {
    flex-direction: row;
    gap: 20px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}