/* ===== GLOBAL WRAPPER ===== */
.hr-card {
    background: #ffffff;
    max-width: 960px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* TITLE */
.hr-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hr-card h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.hr-card p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

/* SECTION HEADINGS */
.hr-card h3 {
    font-size: 18px;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    color: #222;
}

/* PROGRESS BAR */
.hr-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

#hrl-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    transition: width 0.3s ease;
}

/* FORM GRID = 2 inputs per row */
.hr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
}

/* Field block */
.hr-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.hr-field label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* INPUTS */
.hr-field input,
.hr-field select {
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    transition: 0.2s ease;
}

.hr-field input:focus,
.hr-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* BUTTONS */
.hr-actions {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.hr-btn {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.hr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hr-btn-secondary {
    flex: 1;
    background: #f1f3f5;
    color: #222;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hr-btn-secondary:hover {
    background: #e5ecf5;
}

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

/* ===== RESULTS HEADER ===== */
.hr-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.hr-results-header h2 {
    font-size: 22px;
    margin: 0;
}

.hr-results-sub {
    color: #666;
    font-size: 14px;
}

/* ===== KPI CARDS ===== */
.hr-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.hr-kpi {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: inset 0 0 0 1px #e6edf5;
}

.hr-kpi span {
    font-size: 13px;
    color: #555;
    display: block;
}

.hr-kpi strong {
    font-size: 20px;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

.hr-kpi.green {
    background: #eafaf1;
    color: #0f7a3b;
}

/* ===== RESULT SECTIONS ===== */
.hr-results-sections h3 {
    margin-top: 35px;
    font-size: 18px;
}

/* ===== TABLE STYLE ===== */
.hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.hr-table th {
    background: #f1f5f9;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

.hr-table td {
    padding: 14px;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
}

/* Action buttons */
.hr-results-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media(max-width: 900px) {
    .hr-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hr-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== RESULT ACTION BUTTONS ===== */

.hr-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Primary button */
.hr-action-btn.primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.hr-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Secondary buttons */
.hr-action-btn.ghost {
    background: #f3f6fa;
    color: #222;
}

.hr-action-btn.ghost:hover {
    background: #e5ecf5;
    transform: translateY(-1px);
}

/* Responsive buttons */
@media(max-width: 768px) {
    .hr-results-actions {
        flex-direction: column;
    }

    .hr-action-btn {
        width: 100%;
    }
}

/* ================= Tooltip ================= */

.hr-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #999;
}

.hr-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #060c41;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    width: 260px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.hr-tooltip:hover::after,
.hr-tooltip:focus::after {
    opacity: 1;
}

.hr-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   TWO-COLUMN LAYOUT – RESULTS + PRODUCTS
   ========================================= */

/* Main two-column layout */
.hr-results-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* Left side */
.hr-results-left {
  min-width: 0;
}

/* Right sidebar */
.hr-results-right {
  position: sticky;
  top: 120px;
  background: #fff;
  padding-left: 30px;
  border-left: 1px solid #e6e6e6;
}

/* Product card */
.hr-product {
  border: 1px solid #e8edf3;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hr-product:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

/* Product image link */
.hr-product-img-link {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #eee;
}

/* Force image size */
.hr-product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.3s ease;
}

.hr-product:hover img {
  transform: scale(1.04);
}

/* Product body */
.hr-product-body {
  padding: 14px;
}

/* Reset any theme anchor styles inside product body */
.hr-product-body a {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
}

.hr-product-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Footer: price + button side by side */
.hr-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hr-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

/* Zum Shop button */
.hr-product-btn {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: visible !important;
}

.hr-product-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  color: #fff !important;
}

/* Mobile fallback */
@media (max-width: 1024px) {
  .hr-results-layout {
    grid-template-columns: 1fr;
  }

  .hr-results-right {
    position: relative;
    top: auto;
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }
}
