/* ============================================================
   COMPONENTS.CSS - Buttons, cards, forms, tags, comments, qty
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  border: 2px solid #77BD43;
  background: #77BD43;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  background: #559632;
  border-color: #559632;
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: transparent;
  color: #77BD43;
}

.btn.ghost:hover {
  background: #77BD43;
  color: #fff;
}

.btn.on-dark {
  background: #fff;
  color: #191919;
  border-color: #fff;
}

.btn.on-dark:hover {
  background: #EAF7DE;
}

.btn.block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Icon button ---- */
.btn-icon {
  background: transparent;
  border: none;
  color: #191919;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.btn-icon:hover {
  background: #EAF7DE;
}

/* ---- Category tags ---- */
.category-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: #77BD43;
  color: #fff;
}

.category-tag.development {
  background: #191919;
}

.category-tag.opinion {
  background: #559632;
}

/* ---- Filter tabs ---- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter-tab {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 30px;
  border: 1.5px solid rgba(18,18,18,0.14);
  background: transparent;
  color: #2A2A2A;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: #77BD43;
  color: #77BD43;
}

.filter-tab.active {
  background: #77BD43;
  border-color: #77BD43;
  color: #fff;
}

/* ---- Article cards ---- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.article-card {
  flex: 1 1 300px;
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(18,18,18,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(18,18,18,0.10);
}

.card-top-rule {
  height: 5px;
  background: #77BD43;
}

.card-top-rule.development {
  background: #191919;
}

.card-top-rule.opinion {
  background: #559632;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 20px;
  color: #191919;
  margin: 2px 0 4px;
}

.card-body .excerpt {
  font-size: 14.5px;
  color: #2A2A2A;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b6b6b;
  border-top: 1px solid rgba(18,18,18,0.08);
  padding-top: 12px;
  margin-top: 6px;
}

.read-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #77BD43;
}

/* ---- Vulture Feathers cards ---- */
.vulture-card {
  flex: 1 1 300px;
  background: #1c1c1c;
  border-radius: 3px;
  padding: 24px;
  border-left: 4px solid #77BD43;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s;
}

.vulture-card:hover {
  transform: translateY(-3px);
}

.vulture-card h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 6px;
}

.vulture-card .excerpt {
  color: #cfcfcf;
  font-size: 14.5px;
}

.vulture-card .card-meta {
  border-top: 1px solid #333;
  color: #9a9a9a;
}

.vulture-card .read-link {
  color: #ff8a7a;
}

/* ---- Article / Story Detail ---- */
.detail-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.back-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #77BD43;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 38px;
  margin: 12px 0;
}

.detail-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b6b6b;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-body {
  font-size: 18px;
  color: #2A2A2A;
}

.detail-body p {
  margin-bottom: 1.3em;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(18,18,18,0.14);
  border-bottom: 1px solid rgba(18,18,18,0.14);
}

.share-row span {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #2A2A2A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Forms ---- */
label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #191919;
  display: block;
  margin-bottom: 5px;
}

input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1.5px solid rgba(18,18,18,0.14);
  border-radius: 3px;
  background: #fff;
  color: #191919;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #77BD43;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.field {
  margin-bottom: 14px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.field-row .field {
  flex: 1 1 200px;
}

/* ---- Comments ---- */
.comments-block {
  margin-top: 10px;
}

.comments-block h3 {
  font-size: 21px;
  color: #191919;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #EAF7DE;
  padding: 22px;
  border-radius: 3px;
  margin-bottom: 28px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(18,18,18,0.08);
}

.comment-author {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: #191919;
}

.comment-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
  margin-left: 8px;
}

.comment-text {
  font-size: 15px;
  color: #2A2A2A;
  margin-top: 4px;
}

/* ---- Quantity Stepper ---- */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(18,18,18,0.14);
  border-radius: 3px;
  padding: 4px 6px;
}

.qty-stepper button {
  background: none;
  border: none;
  font-size: 16px;
  width: 22px;
  height: 22px;
  font-weight: 700;
  color: #77BD43;
  cursor: pointer;
}

.qty-stepper span {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

/* ---- Checkout modal internals ---- */
.modal-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2A2A2A;
  margin: 18px 0 10px;
}

.network-options {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.network-card {
  flex: 1 1 0;
  min-width: 0;
  border: 2px solid rgba(18,18,18,0.14);
  border-radius: 3px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}

.network-card.selected {
  border-color: #77BD43;
  background: #EAF7DE;
}

.network-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.network-card span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #191919;
}

.order-summary {
  background: #EAF7DE;
  border-radius: 3px;
  padding: 16px 18px;
  margin: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.order-summary-row.total {
  font-weight: 800;
  font-size: 15px;
  border-top: 1px solid rgba(18,18,18,0.14);
  margin-top: 6px;
  padding-top: 10px;
}

.demo-note {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #888;
  text-align: center;
  margin-top: 14px;
}

.success-panel {
  text-align: center;
  padding: 10px 0 6px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #77BD43;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-panel h3 {
  font-size: 22px;
  color: #191919;
}

.order-ref {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #77BD43;
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .detail-header h1 {
    font-size: 28px;
  }
}

/* ---- Article card thumbnail ---- */
.article-card .card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* ---- Vulture card thumbnail ---- */
.vulture-card .card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 2px 2px 0 0;
  margin: -24px -24px 14px -24px;
  width: calc(100% + 48px);
}
