/* Bridge Card Game Classic — Site Styles */

:root {
  --bg:           #1a4d8f;
  --bg-deep:      #0d2a52;
  --bg-alt:       #1f5aa5;
  --card:         #234d7d;
  --border:       rgba(255, 255, 255, 0.12);
  --gold:         #f0d272;
  --gold-deep:    #d4af37;
  --gold-light:   #f8e29a;
  --red:          #e93945;
  --green:        #4caf50;
  --text:         #ffffff;
  --text-muted:   #c8d8e8;
  --text-dim:     #88a3c0;
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at top, #2a6dc5 0%, transparent 60%),
    linear-gradient(180deg, #1a4d8f 0%, #0d2a52 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Header / Nav */
.site-header {
  background: rgba(13, 42, 82, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-brand img { height: 38px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.nav-brand-name { font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; color: var(--gold-light); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* Hero */
.hero { padding: 60px 24px 70px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(240, 210, 114, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(233, 57, 69, 0.05), transparent 50%);
  pointer-events: none;
}
.hero-logo {
  max-width: min(520px, 90%);
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}
.hero h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.3px; position: relative; }
.hero h1 .accent { color: var(--gold); }
.hero-tagline { font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 auto 24px; line-height: 1.55; position: relative; }
.hero-rating { color: var(--gold); font-size: 18px; letter-spacing: 4px; margin-bottom: 4px; position: relative; }
.hero-rating-count { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; position: relative; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.15s; border: 1px solid transparent; white-space: nowrap; }
.btn-app-store { background: #000; color: white; border-color: #333; }
.btn-app-store:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn-google-play { background: #01875f; color: white; }
.btn-google-play:hover { background: #016c4d; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(1,135,95,0.4); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--gold); border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--bg-deep); }
.btn-store-icon { width: 22px; height: 22px; }
.btn-store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store-small { font-size: 10px; opacity: 0.85; }
.btn-store-large { font-size: 15px; font-weight: 700; }
.hero-meta { color: var(--text-dim); font-size: 13px; letter-spacing: 0.3px; position: relative; }
.hero-meta span { color: var(--gold); margin: 0 8px; }

/* Sections */
section { padding: 70px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; margin-bottom: 14px; line-height: 1.2; color: var(--gold-light); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto 50px; line-height: 1.55; }

/* Screenshots showcase */
.screenshots {
  background: rgba(13, 42, 82, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.screenshot-card { text-align: center; }
.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-card:hover img {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 210, 114, 0.2);
}
.screenshot-label { margin-top: 14px; color: var(--gold-light); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.screenshot-sublabel { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* Features */
.features { background: rgba(255, 255, 255, 0.02); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 50px; }
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(240, 210, 114, 0.3); background: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.feature-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--gold-light); }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* Bidding systems */
.bidding-systems { background: rgba(13, 42, 82, 0.3); border-top: 1px solid var(--border); }
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.system-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(8px);
}
.system-tag { font-size: 10px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.system-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; font-weight: 700; color: var(--text); }
.system-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.system-card ul { list-style: none; font-size: 13px; color: var(--text-muted); }
.system-card li { padding: 4px 0; padding-left: 20px; position: relative; }
.system-card li::before { content: '♠'; position: absolute; left: 0; color: var(--gold); font-size: 11px; }

/* Formats */
.formats { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.format-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.format-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.format-suit-bg { position: absolute; top: -10px; right: -10px; font-size: 140px; color: rgba(255, 255, 255, 0.04); line-height: 1; pointer-events: none; }
.format-card h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 14px; position: relative; color: var(--gold-light); }
.format-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; position: relative; margin-bottom: 16px; }
.format-detail { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; position: relative; }
.format-detail span:first-child { color: var(--text-dim); }
.format-detail span:last-child { color: var(--gold-light); font-weight: 600; }

/* How to Play CTA */
.how-to-play-cta { background: rgba(13, 42, 82, 0.3); text-align: center; border-top: 1px solid var(--border); }
.topics-list { margin: 30px auto 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 800px; }
.topic-pill { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 100px; font-size: 13px; white-space: nowrap; text-decoration: none; transition: all 0.15s; cursor: pointer; display: inline-block; }
.topic-pill:hover { background: rgba(240, 210, 114, 0.12); border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* Download CTA */
.download { background: linear-gradient(135deg, rgba(240, 210, 114, 0.08), rgba(233, 57, 69, 0.05)), rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border); text-align: center; }
.download .container { max-width: 760px; }

/* Footer */
.site-footer { background: rgba(13, 42, 82, 0.6); border-top: 1px solid var(--border); padding: 50px 24px 30px; text-align: center; backdrop-filter: blur(12px); }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-copyright { color: var(--text-dim); font-size: 12px; line-height: 1.6; max-width: 700px; margin: 0 auto; }

/* How to Play page */
.page-hero { padding: 70px 24px 50px; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(240, 210, 114, 0.08), transparent 60%); pointer-events: none; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin-bottom: 14px; color: var(--gold-light); position: relative; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; position: relative; }
.breadcrumbs { max-width: 880px; margin: 28px auto 0; padding: 14px 24px; font-size: 13px; color: var(--text-dim); }
.breadcrumbs a { color: var(--gold); text-decoration: none; }

.article-content { max-width: 800px; margin: 0 auto; padding: 40px 24px 70px; }
.article-content h2 { font-family: var(--serif); font-size: 30px; font-weight: 700; margin: 50px 0 18px; color: var(--gold-light); border-bottom: 1px solid var(--border); padding-bottom: 10px; scroll-margin-top: 80px; }
.article-content h3 { font-family: var(--serif); font-size: 22px; margin: 30px 0 12px; color: var(--text); }
.article-content p { color: var(--text-muted); margin-bottom: 18px; font-size: 16.5px; line-height: 1.75; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content ul, .article-content ol { margin: 0 0 22px 22px; color: var(--text-muted); }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content a { color: var(--gold); }

.toc { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 8px; padding: 22px 26px; margin: 30px 0; }
.toc-title { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.toc ol { margin-left: 18px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--gold); }

.callout { background: linear-gradient(135deg, rgba(240, 210, 114, 0.08), rgba(240, 210, 114, 0.02)); border: 1px solid rgba(240, 210, 114, 0.3); border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: 15px; color: var(--text); line-height: 1.65; }
.callout strong { color: var(--gold); }

.bridge-table { width: 100%; margin: 24px 0; border-collapse: collapse; background: rgba(255, 255, 255, 0.04); border-radius: 8px; overflow: hidden; font-size: 14.5px; border: 1px solid var(--border); }
.bridge-table th { background: rgba(255, 255, 255, 0.06); text-align: left; padding: 12px 16px; color: var(--gold); font-weight: 600; border-bottom: 1px solid var(--border); }
.bridge-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.bridge-table tr:last-child td { border-bottom: none; }
.bridge-table .suit-red { color: var(--red); font-size: 16px; }
.bridge-table .suit-black { color: var(--text); font-size: 16px; }

.hand-display { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 20px 0; font-family: Georgia, serif; font-size: 17px; display: inline-block; }
.hand-display .pos { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.hand-line { margin: 3px 0; }
.suit-s { color: var(--text); font-weight: bold; }
.suit-h { color: var(--red); font-weight: bold; }
.suit-d { color: var(--red); font-weight: bold; }
.suit-c { color: var(--text); font-weight: bold; }

.system-feature-box { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 22px 26px; margin: 20px 0; border-left: 4px solid var(--gold); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.system-feature-box h3 { margin-top: 0; color: var(--gold-light); }

/* Responsive */
@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-deep); flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 50px 20px; }
  .hero { padding: 40px 20px 50px; }
  .features-grid { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .format-cards { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .article-content { padding: 24px 20px 50px; }
  .article-content h2 { font-size: 24px; }
  .article-content h3 { font-size: 19px; }
}
