/* tools.css — Tools and Cheat Sheets page styles */

/* HERO */
.page-hero {
  padding: 7rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(16,185,129,0.03) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.page-hero-content p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-stats-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
}
.h-stat {
  color: var(--text-secondary);
}
.h-stat strong {
  color: var(--green);
}

/* CHEATSHEETS GRID */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sheet-card {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.sheet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5,150,105,0.3);
  box-shadow: var(--shadow-card-hover);
}
.sheet-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  width: 54px; height: 54px;
  background: rgba(5,150,105,0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.sheet-card:hover .sheet-icon {
  background: rgba(5,150,105,0.1);
  border-color: rgba(5,150,105,0.3);
  color: var(--green);
}
.sheet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.sheet-tag {
  align-self: flex-start;
  margin-bottom: 0.75rem;
}
.sheet-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.sheet-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sheet-stats {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: auto;
}
.btn-download {
  width: 100%;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-download:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(16,185,129,0.3);
}

/* TOOLS DIRECTORY FILTER & TABS */
.tools-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.t-filter-btn {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}
.t-filter-btn:hover {
  background: rgba(56,29,146,0.04);
  color: var(--text-primary);
}
.t-filter-btn.active {
  background: rgba(56,29,146,0.08);
  border-color: var(--purple);
  color: var(--purple);
}

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tool-item-card {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.tool-item-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.t-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.t-logo {
  font-size: 2rem;
  width: 50px; height: 50px;
  background: rgba(56,29,146,0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-head h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.t-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-cyan { background: rgba(6,147,227,0.1); color: var(--cyan); }
.badge-purple { background: rgba(56,29,146,0.1); color: #381d92; }
.badge-blue { background: rgba(37,99,235,0.1); color: #2563eb; }
.badge-orange { background: rgba(234,88,12,0.1); color: #ea580c; }
.badge-red { background: rgba(220,38,38,0.1); color: #dc2626; }
.badge-green { background: rgba(5,150,105,0.1); color: #059669; }

.t-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.t-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.t-link {
  color: var(--purple);
  font-weight: 600;
  transition: var(--transition-fast);
}
.t-link:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

/* DOWNLOAD MODAL (WOW FACTOR) */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11,6,32,0.92);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.download-modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}
.download-modal.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  margin-bottom: 1.5rem;
}
.modal-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}
.modal-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #c4bfdb;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: rgba(239,68,68,0.15);
  color: var(--red);
}
.modal-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.modal-text strong {
  color: var(--cyan-accent);
}
.loader-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.loader-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-cyan-purple);
  border-radius: 10px;
  transition: width 0.1s linear;
}
.modal-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
