/* FITNESS.EE V7 Demo — Inline Article Recommendations */
/* Replicates original fitness.ee design closely */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #1e5f9e;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Top Navigation ── */
.top-nav {
  background: #1a3a5c;
  padding: 0;
  display: flex;
  align-items: center;
  height: 44px;
}
.top-nav .logo {
  color: #e63232;
  font-weight: 900;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.top-nav .nav-items {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.top-nav .nav-items a {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s;
}
.top-nav .nav-items a:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.top-nav .nav-items a.active {
  background: rgba(255,255,255,0.15);
}

/* ── Banner ── */
.site-banner {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a6496 50%, #1a3a5c 100%);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-family: Arial, Helvetica, sans-serif;
}
.site-banner h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
}
.site-banner .since {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

/* ── Demo Banner ── */
.demo-banner {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #664d03;
  text-align: center;
}
.demo-banner strong {
  color: #1a3a5c;
}

/* ── Layout ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.home-layout {
  display: flex;
  gap: 30px;
}
.main-feed {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* ── Blog Feed (Homepage) ── */
.section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.feed-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}
.feed-item:last-child {
  border-bottom: none;
}
.feed-thumb {
  width: 200px;
  height: 130px;
  background: #dde4ec;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8899aa;
  font-family: Arial, sans-serif;
  font-size: 11px;
}
.feed-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.feed-content h3 a {
  color: #1a3a5c;
}
.feed-content h3 a:hover {
  color: #e63232;
}
.feed-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.feed-meta {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #888;
}
.feed-meta .tag {
  background: #e8eef5;
  color: #1a3a5c;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ── Sidebar ── */
.sidebar-block {
  margin-bottom: 24px;
}
.sidebar-block .section-title {
  font-size: 12px;
}
.forum-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.forum-item a {
  color: #333;
}
.forum-item .forum-meta {
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

/* ── Article Page ── */
.article-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px;
}
.article-wrapper h1 {
  font-size: 26px;
  color: #1a3a5c;
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-date {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 24px;
}
.article-body p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.75;
}
.article-body h2 {
  font-size: 20px;
  color: #1a3a5c;
  margin: 30px 0 14px;
}
.article-body h3 {
  font-size: 17px;
  color: #1a3a5c;
  margin: 24px 0 10px;
}
.article-body ol,
.article-body ul {
  margin: 0 0 18px 24px;
  font-size: 15.5px;
  line-height: 1.75;
}
.article-body li {
  margin-bottom: 6px;
}
.article-body blockquote {
  border-left: 3px solid #1a3a5c;
  padding: 10px 16px;
  margin: 18px 0;
  color: #555;
  font-style: italic;
  background: #f9fafb;
}

/* ── Inline Product Recommendation ── */
.inline-rec {
  background: #f5f7fa;
  border-left: 3px solid #1e5f9e;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.inline-rec-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8899aa;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  grid-column: 1 / -1;
}
.inline-rec-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef5;
}
.inline-rec-body {
  flex: 1;
  min-width: 0;
}
.inline-rec-body .rec-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 3px;
}
.inline-rec-body .rec-price {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #e63232;
  font-size: 14px;
}
.inline-rec-body .rec-desc {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  line-height: 1.45;
}
.inline-rec-body .rec-link {
  display: inline-block;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1e5f9e;
}
.inline-rec-body .rec-link:hover {
  color: #e63232;
}

/* Wrapper to stack label above the flex row */
.inline-rec-wrapper {
  background: #f5f7fa;
  border-left: 3px solid #1e5f9e;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 28px 0;
}
.inline-rec-wrapper .inline-rec-label {
  margin-bottom: 10px;
}
.inline-rec-wrapper .inline-rec-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ── Related Products (end of article) ── */
.related-products {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.related-products .section-title {
  font-size: 13px;
  margin-bottom: 16px;
}
.related-grid {
  display: flex;
  gap: 16px;
}
.related-card {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #e8eef5;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.related-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #e8eef5;
}
.related-card .rc-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 4px;
}
.related-card .rc-price {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #e63232;
  font-size: 14px;
  margin-bottom: 6px;
}
.related-card .rc-desc {
  font-size: 11px;
  color: #777;
  margin-bottom: 8px;
  line-height: 1.4;
}
.related-card .rc-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1e5f9e;
}

/* ── Article Tags ── */
.article-tags {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}
.article-tags .tag {
  display: inline-block;
  background: #e8eef5;
  color: #1a3a5c;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ── Shop Page ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.shop-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
  text-align: center;
}
.shop-card .shop-img {
  width: 100%;
  height: 160px;
  background: #eef2f7;
  border-radius: 3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8899aa;
  font-family: Arial, sans-serif;
  font-size: 11px;
}
.shop-card .shop-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  min-height: 40px;
}
.shop-card .shop-price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 12px;
}
.shop-card .btn-cart {
  display: inline-block;
  background: #1e5f9e;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.shop-card .btn-cart:hover {
  background: #174b7e;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 20px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .feed-item {
    flex-direction: column;
  }
  .feed-thumb {
    width: 100%;
    height: 180px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    flex-direction: column;
  }
}
