/* ===== Tools Page - Redesigned ===== */

.tools-page {
  padding: 0 0 20px;
}

/* ---- Header ---- */
.jw-section .tools-header {
  text-align: center;
  margin-bottom: 48px;
}

.jw-section .tools-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.jw-section .tools-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin: 0;
}

.jw-section .tools-divider {
  width: 56px;
  height: 3px;
  background: #E77800;
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- Tools Container ---- */
.tools-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- Tool Card ---- */
.tool-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 0;
  display: flex;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* ---- Tool Card Sides ---- */
.tool-card__info {
  flex: 1;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.tool-card__visual {
  width: 340px;
  flex-shrink: 0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-left: 1px solid #f0f0f0;
}

/* ---- Tool Icon ---- */
.tool-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tool-card__icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.tool-card__icon--flashpad {
  background: linear-gradient(135deg, #E77800, #F5A623);
}

.tool-card__icon--myvault {
  background: linear-gradient(135deg, #4A90D9, #357ABD);
}

/* ---- Tool Name ---- */
.tool-card__name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px;
}

.tool-card__tagline {
  font-size: 1.1rem;
  color: #E77800;
  margin: 0 0 16px;
  font-weight: 500;
}

/* ---- Tool Description ---- */
.tool-card__desc {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #666;
  margin: 0 0 20px;
  flex: 1;
}

.tool-card__desc p {
  margin: 0 0 12px;
}

.tool-card__desc p:last-child {
  margin-bottom: 0;
}

/* ---- Feature Tags ---- */
.tool-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.tool-card__feature {
  display: inline-block;
  font-size: 1.1rem;
  color: #888;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 100px;
  line-height: 1.4;
}

/* ---- Tool Screenshot ---- */
.tool-card__screenshot {
  width: 100%;
  margin-bottom: 16px;
}

.tool-card__screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Tool Meta ---- */
.tool-card__meta {
  text-align: center;
}

.tool-card__version {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
}

.tool-card__date {
  font-size: 1.1rem;
  color: #aaa;
  margin: 0 0 20px;
}

/* ---- Download Button ---- */
.tool-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #E77800;
  color: #fff;
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.tool-card__btn:hover {
  background: #BF6200;
  color: #fff;
  transform: scale(1.03);
}

.tool-card__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Responsive ---- */

/* Tablet landscape */
@media (max-width: 960px) {
  .tools-container {
    gap: 24px;
  }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .tool-card {
    flex-direction: column;
  }

  .tool-card__info {
    padding: 28px 24px;
    align-items: center;
    text-align: center;
  }

  .tool-card__features {
    justify-content: center;
  }

  .tool-card__desc {
    text-align: left;
  }

  .tool-card__visual {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tool-card__screenshot {
    width: 240px;
    max-width: 100%;
    margin-bottom: 12px;
  }

  .tool-card__screenshot img {
    width: 100%;
    height: auto;
    display: block;
  }

  .tool-card__btn {
    font-size: 1.3rem;
    padding: 11px 24px;
  }
}

/* Large phone */
@media (max-width: 540px) {
  .tools-header {
    margin-bottom: 32px;
  }

  .jw-section .tools-header h1 {
    font-size: 1.8rem;
  }

  .jw-section .tools-subtitle {
    font-size: 1.1rem;
  }

  .tool-card__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
  }

  .tool-card__screenshot {
    width: 200px;
    max-width: 100%;
    margin-bottom: 12px;
  }

  .tool-card__screenshot img {
    width: 100%;
    height: auto;
    display: block;
  }

  .tool-card__info {
    padding: 24px 20px;
  }

  .tool-card__name {
    font-size: 1.6rem;
  }

  .tool-card__tagline {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .tool-card__desc {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .tool-card__features {
    gap: 6px;
  }

  .tool-card__feature {
    font-size: 1rem;
    padding: 3px 10px;
  }

  .tool-card__version {
    font-size: 1.2rem;
  }

  .tool-card__date {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .tool-card__btn {
    font-size: 1.3rem;
    padding: 11px 20px;
  }
}

/* Small phone */
@media (max-width: 400px) {
  .tool-card__info {
    padding: 20px 16px;
  }

  .tool-card__visual {
    padding: 16px 12px;
  }

  .tool-card__screenshot {
    width: 160px;
    max-width: 100%;
  }

  .tool-card__name {
    font-size: 1.4rem;
  }

  .tool-card__desc {
    font-size: 1.1rem;
  }

  .tool-card__btn {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 1.2rem;
    padding: 12px 16px;
  }
}
