/* ========================================
   ECHECS PASSION - Mini-site Blog
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF5;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --gold: #C9A84C;
  --gold-light: #D4B96B;
  --green: #5B7B5D;
  --green-light: #7A9E7C;
  --border: #E8E6E0;
  --card-bg: #FFFFFF;
  --dark: #1A1A1A;
  --max-w: 820px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--dark); }

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold); }
h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--green); }
h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }

p { margin-bottom: 1rem; }

ul, ol { margin: 0 0 1.5rem 1.5rem; }
li { margin-bottom: .4rem; }

strong { color: var(--dark); }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201,168,76,.06);
  font-style: italic;
  color: var(--text-light);
}

/* Header */
.site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--gold);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold) !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span { font-size: 1.5rem; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 5px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #ccc;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all .2s;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,.1);
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* Main Content */
.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.article-meta .tag {
  background: rgba(91,123,93,.1);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  border-left: 4px solid var(--green);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(91,123,93,.04);
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

.card h4 {
  font-size: 1rem;
  margin: 0 0 .5rem;
  color: var(--green);
}

.card p { font-size: 14px; margin: 0; color: var(--text-light); }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

thead { background: var(--dark); color: var(--gold); }

th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover { background: rgba(201,168,76,.04); }

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(201,168,76,.08), rgba(201,168,76,.03));
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-box .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; font-size: 14.5px; }

/* Rule Box */
.rule-box {
  background: rgba(91,123,93,.05);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: 14.5px;
}

/* Notation */
.notation {
  font-family: 'Courier New', monospace;
  background: var(--dark);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 13px;
}

/* CTA Box */
.cta-box {
  background: var(--dark);
  border-radius: 10px;
  padding: 30px;
  margin: 3rem 0 2rem;
  text-align: center;
}

.cta-box h3 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.cta-box p { color: #aaa; font-size: 14px; margin-bottom: 1.2rem; }

.cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  margin: 4px;
  transition: transform .2s, box-shadow .2s;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
  color: var(--dark) !important;
}

/* Related Articles */
.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related h3 { color: var(--dark); margin-bottom: 1rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-card {
  padding: 15px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.related-card:hover { border-color: var(--gold); }
.related-card .r-cat { font-size: 11px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.related-card .r-title { display: block; color: var(--dark); font-weight: 600; margin-top: 4px; line-height: 1.4; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #999;
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.footer-about h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-about p { font-size: 13.5px; line-height: 1.6; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links h5 { color: #ccc; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #888; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Homepage specific */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.hero .subtitle { font-family: var(--font-head); color: var(--text-light); font-size: 1.15rem; font-style: italic; }

.page-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}

.page-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.page-card .pc-icon { font-size: 2rem; margin-bottom: 10px; }
.page-card h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--dark); }
.page-card p { font-size: 13.5px; color: var(--text-light); margin: 0 0 auto; line-height: 1.5; }
.page-card .pc-link { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--gold); }

/* Shop comparison page */
.shop-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin: 1.5rem 0;
  transition: border-color .2s;
}

.shop-card:hover { border-color: var(--gold); }
.shop-card.featured { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,168,76,.04), transparent); }
.shop-card .rank { font-size: 2rem; font-weight: 800; color: var(--gold); font-family: var(--font-head); }
.shop-card h3 { margin: .5rem 0; }
.shop-card .shop-url { font-size: 13px; color: var(--text-light); }
.shop-pros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 1rem 0; }
.shop-pros li { list-style: none; font-size: 14px; padding-left: 20px; position: relative; }
.shop-pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }

  .cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }

  .site-nav ul { display: none; }
  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 10px 20px 20px;
    border-bottom: 2px solid var(--gold);
  }

  .nav-toggle { display: block; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { font-size: 1.8rem; }
  .shop-pros { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 15px; }
  .content { padding: 20px 15px 40px; }
  .site-logo { font-size: 1.1rem; }
}
