/*
Theme Name: Bmi
Author: Bmi
Version: 1.0
*/

/* ----- Ogólne ustawienia tabeli ----- */
body {
  font-family: "Poppins", sans-serif;
  /* background-color: #f8f9fa; */
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

header.bg-primary {
  background-color: #0d6efd !important; /* Standard Bootstrap primary blue */
  color: #ffffff;
}

.card {
  border: none; /* Remove default card border for a cleaner look */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Softer shadow for cards */
  margin-bottom: 1.5rem;
}

.card-header.bg-secondary {
  background-color: #6c757d !important; /* Standard Bootstrap secondary */
  color: #ffffff;
}

.bmi-modern-table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse; /* Ensures borders are neat */
}

.bmi-modern-table th,
.bmi-modern-table td {
  padding: 0.75rem;
  vertical-align: middle;
  border: 1px solid #dee2e6; /* Lighter borders for table cells */
  text-align: center;
}

.bmi-modern-table thead th {
  font-weight: 600;
  background-color: #e9ecef;
  color: #495057;
}

/* BMI Category specific styling for table cells */
.bmi-modern-table td.bmi_underweight, .bmi-category-label.bmi_underweight {
  background-color: #17a2b8 !important; /* Teal for underweight */
  color: white !important;
}
.bmi-modern-table td.bmi_healthly, .bmi-category-label.bmi_healthly {
  background-color: #28a745 !important; /* Green for healthy */
  color: white !important;
}
.bmi-modern-table td.bmi_overweight, .bmi-category-label.bmi_overweight {
  background-color: #ffc107 !important; /* Yellow for overweight */
  color: #212529 !important;
}
.bmi-modern-table td.bmi_obese, .bmi-category-label.bmi_obese {
  background-color: #fd7e14 !important; /* Orange for obese */
  color: white !important;
}
.bmi-modern-table td.bmi_extremely_obese, .bmi-category-label.bmi_extremely_obese {
  background-color: #dc3545 !important; /* Red for extremely obese */
  color: white !important;
}

.bmi-modern-table tbody td a {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  color: #212529; /* Default link color for table cells */
  transition: background-color 0.2s ease-in-out;
}

.bmi-modern-table tbody td.bmi_underweight a,
.bmi-modern-table tbody td.bmi_healthly a,
.bmi-modern-table tbody td.bmi_obese a,
.bmi-modern-table tbody td.bmi_extremely_obese a {
  color: white !important; /* Ensure contrast for links on colored backgrounds */
}

.bmi-modern-table tbody td a:hover {
  background-color: rgba(0, 0, 0, 0.075) !important;
}

/* BMI Gradient Bar Styling */
.bmi-gradient-container {
  width: 100%;
  padding: 1rem 0;
  position: relative;
}

.bmi-gradient-bar-modern {
  width: 100%;
  height: 28px;
  border-radius: 14px;
  background: #e9ecef;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.bmi-gradient-bar-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 60%;
  transform: translateX(-50%);
  background: #28a745;
  border-radius: 14px;
}

.bmi-gradient-bar-modern::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;
  height: 100%;
  border: 2px dashed rgba(255,255,255,0.8);
  border-radius: 14px;
}

.bmi-gradient-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #495057;
}

.bmi-gradient-labels span {
  position: relative;
  padding: 0 4px;
}

/* Pointer for BMI gradient bar */
.bmi-pointer {
  position: absolute;
  top: -10px; /* Position above the bar */
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #0056b3; /* Darker blue for pointer */
  background-color: white;
  padding: 2px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Alert Box Styling */
.alert {
  border-left-width: 5px;
  border-radius: 0.375rem; /* Bootstrap default */
}

.alert-heading {
  font-weight: 500; /* Slightly bolder heading in alerts */
}

/* Footer Styling */
footer.bg-dark {
  background-color: #2c3e50 !important; /* A more modern dark blue/grey */
  color: #ffffff;
  padding: 1.5rem 0;
}

footer p {
  margin-bottom: 0.5rem;
}

footer p.small {
  font-size: 0.875em;
  color: #adb5bd; /* Lighter text for secondary info in footer */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  .card-body .fs-4 { /* For calculated BMI display */
      font-size: 2rem !important;
  }
  .bmi-modern-table {
      font-size: 0.8rem;
  }
  .bmi-modern-table th,
  .bmi-modern-table td {
      padding: 0.5rem 0.25rem;
  }
  .bmi-gradient-labels span {
      font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  .card-body .fs-4 { /* For calculated BMI display */
      font-size: 1.75rem !important;
  }
  .bmi-modern-table {
      font-size: 0.7rem;
  }
  .bmi-modern-table th,
  .bmi-modern-table td {
      padding: 0.4rem 0.15rem;
  }
  .alert .badge {
      font-size: 0.85em !important;
  }
}

/* Height Links Grid Styling */
.height-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.height-links-grid .btn {
    min-width: 80px;
    text-align: center;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.height-links-grid .btn:hover {
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
}

.height-links-grid .btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}
/* Header Styles */
header {
  background-color: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  display: inline-block;
}

.logo .logo-small {
  font-size: 14px;
  font-weight: normal;
  color: #555;
  display: block;
}

header nav {
  display: inline-block;
  float: right;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

header nav ul ul {
  display: block;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  z-index: 999;
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

header nav ul li {
  position: relative; /* żeby dropdown był przy swoim rodzicu */
}

header nav ul li a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

header nav ul li a:hover {
  text-decoration: underline;
}

header nav ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  display: block;
}

header nav ul ul li a {
  color: #333;
  padding: 8px 16px;
  display: block;
  font-weight: normal;
  text-decoration: none;
}

header nav ul ul li a:hover {
  background: #f8f9fa;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: #eee;
  color: #000;
}



/* Main Content Styles */
main {
  padding: 20px;
  max-width: 1200px; /* Limit width for very large screens */
  margin: 20px auto; /* Center content */
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 5px;
}

.calculator-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  margin-bottom: 30px;
  background-color: #e9ecef;
  padding: 20px;
  border-radius: 5px;
}

.calculator-image-container {
  flex: 1 1 50%; /* Allow image to take up to 50% width, adjust as needed */
  min-width: 300px; /* Minimum width before wrapping */
  padding: 10px;
}

.calculator-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.calculator-form-section {
  flex: 1 1 45%; /* Allow form to take up remaining space, adjust as needed */
  min-width: 300px; /* Minimum width before wrapping */
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-left: 10px; /* Add some space if they are side-by-side */
}

.calculator-form-section h2 {
  margin-top: 0;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.gender-selection {
  margin-bottom: 15px;
  text-align: center;
}

.gender-selection span {
  margin-right: 10px;
}

.gender-selection input[type="radio"] {
  margin-right: 5px;
}

.gender-selection label {
  margin-right: 15px;
}



/* Info Section Styles */
.info-section {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.info-section article {
  background-color: #f8f9fa;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  flex: 1 1 30%; /* Distribute space, allowing for responsiveness */
  min-width: 250px; /* Minimum width before wrapping */
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.info-section article h3 {
  margin-top: 0;
  color: #007bff;
}

.info-section article p {
  font-size: 14px;
  line-height: 1.6;
}

/* Footer Styles */
footer {
  background-color: #343a40;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

footer nav ul li {
  margin: 5px 10px;
}

footer nav ul li a {
  text-decoration: none;
  color: #adb5bd;
}

footer nav ul li a:hover {
  color: #fff;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  header nav {
      width: 100%;
      margin-top: 10px;
  }
  header nav ul {
      flex-direction: column;
      align-items: center; /* Center nav items when stacked */
  }
  header nav ul li {
      margin-left: 0;
      margin-bottom: 5px;
      width: 100%;
      text-align: center;
  }

  .calculator-container {
      flex-direction: column;
  }
  .calculator-image-container {
      width: 100%;
      margin-bottom: 15px;
  }
  .calculator-form-section {
      width: 100%;
      margin-left: 0; /* Remove left margin on small screens */
  }

  .info-section {
      flex-direction: column;
  }
  .info-section article {
      width: 100%;
      margin-bottom: 15px;
  }
}

.bmi-calculator-card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gender-buttons {
  display: flex;
  gap: 1rem;
}

.gender-buttons .btn {
  flex: 1;
  padding: 1rem;
}

.result-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.bmi-value {
  color: #0d6efd;
}

.bmi-pointer {
  position: absolute;
  top: -10px;
  transition: left 0.3s ease-in-out;
}

/* BMI Category Colors */
.badge.bmi_underweight {
  background-color: #17a2b8 !important;
}

.badge.bmi_healthly {
  background-color: #28a745 !important;
}

.badge.bmi_overweight {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge.bmi_obese {
  background-color: #fd7e14 !important;
}

.badge.bmi_extremely_obese {
  background-color: #dc3545 !important;
}

.badge {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}
.navbar-brand small {
  display: block;
  font-size: .6em;
  letter-spacing: .1em;
}

/* ===== Przyciski ===== */
.btn-cta {
  background-color: #e63946;
  border: none;
  border-radius: 50px;
  padding: .5rem 1rem;
  font-weight: 500;
  text-transform: uppercase;
}
.btn-cta .bi {
  vertical-align: -.1em;
  margin-left: .3em;
}

/* ===== Linki menu ===== */
.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  text-transform: none;
  padding: .5rem 1rem;
}
.navbar-nav .nav-link:hover {
  color: #000;
}

/* single-post.php */

.content-page__wrapper__bg {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: -moz-linear-gradient(45deg, #0016df 0%, #051dfa 28%, #0016df 100%);
  background: -webkit-gradient(left bottom, right top, color-stop(0%, #0016df), color-stop(28%, #051dfa), color-stop(100%, #0016df));
  background: -webkit-linear-gradient(45deg, #0016df 0%, #051dfa 28%, #0016df 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.content-page__content {
  display: block;
  margin: auto;
  margin-top: -50px;
  background-color: #FFF;
}

.content-page__content .content-header {
  display: block;
  margin: 20px 40px;
  margin-top: 30px;
  padding-bottom: 10px;
}

.content-page__content .content-header h1 {
  display: block;
  font-size: 30px;
  font-weight: 700;
  margin: 20px 0;
}

.content-page__content .content-header p {
  font-size: 20px;
  line-height: 32px;
  font-weight: 300;
  border-bottom: 1px solid #000;
  padding-bottom: 20px;
}


.content-page__content .content-inner {
  display: block;
  margin: 20px 40px;
  margin-top: 40px;
}

.content-page__content .content-inner h2 {
  display: block;
  font-size: 24px;
  margin: 20px 0;
}

.content-page__content .content-inner p {
  display: block;
  margin: 20px 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
}

.article-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000;
  margin-bottom: 0.5rem;
}
.article-date {
  color: #6c757d;
  font-size: 0.9rem;
  margin-right: 10px;
}
.article-read-time {
  color: #6c757d;
  font-size: 0.9rem;
}
.article-card {
  margin-bottom: 2rem;
}
.article-image {
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.article-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

