/*
Theme Name: Burning Tesla
Theme URI: https://tesla-calendar.com
Author: Burning Tesla
Author URI: https://tesla-calendar.com
Description: Dark electric WordPress theme for the Tesla Calendar brand with merch shop and news feed.
Version: 1.0
Text Domain: burning-tesla
*/

:root {
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  background: #020207;
  color: #f7f8fb;
  --surface: rgba(18, 20, 37, 0.92);
  --surface-strong: rgba(28, 31, 58, 0.96);
  --text-muted: #bbc3dc;
  --accent: #ed4d4d;
  --accent-soft: rgba(237, 77, 77, 0.16);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(255, 79, 79, 0.16), transparent 22%),
    linear-gradient(180deg, #020207 0%, #090b19 48%, #070814 100%);
}

body, button, input, textarea {
  font: 400 16px/1.6 'Inter', sans-serif;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
  font-size: 1.3rem;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: #e6e8ff;
  text-decoration: none;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 18px;
  color: #9ba4ce;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text {
  margin: 24px 0 32px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  min-width: 170px;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
  color: white;
  box-shadow: 0 18px 30px rgba(255, 79, 79, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f8fb;
  border-color: rgba(255, 255, 255, 0.14);
}

.feature-grid,
.news-grid,
.product-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
}

.feature-grid article,
.product-card,
.news-card,
.story,
.store-info {
  background: var(--surface);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-grid article {
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.feature-grid h2,
.product-card h3,
.news-card h3,
.store-header h2 {
  margin: 0 0 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.product-tag,
.news-card-meta,
.product-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.product-tag {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(237, 77, 77, 0.14);
  color: #ffb3b3;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.store-info {
  padding: 20px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
  color: var(--text-muted);
}

.cart-panel {
  position: fixed;
  top: 80px;
  right: -420px;
  width: min(420px, 92vw);
  height: calc(100vh - 100px);
  background: rgba(10, 12, 26, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.35);
  transition: right 0.28s ease;
  z-index: 20;
  overflow: hidden;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  gap: 18px;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-button {
  width: 100%;
}

.news-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin: 72px 0 36px;
}

.news-hero-panel {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 79, 79, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.news-hero-panel p {
  margin: 0 0 12px;
  color: white;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(20, 23, 44, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.news-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-info {
  margin-top: 56px;
  padding: 34px 28px;
  border-radius: 30px;
  background: rgba(28, 31, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-info ul {
  margin-top: 20px;
  padding-left: 20px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-copy {
  padding: 48px 0 0;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.content-body {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 780px;
}

.post-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.donation-panel {
  display: grid;
  gap: 28px;
  padding: 36px 32px;
  margin: 72px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 79, 79, 0.14), rgba(10, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.donation-hero h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.donation-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-card h3 {
  margin: 0 0 14px;
}

.donation-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  word-break: break-all;
  color: #eef2ff;
  margin: 0 0 18px;
}

.donation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.donation-footer p {
  margin: 0;
  color: var(--text-muted);
}

.donation-progress {
  display: grid;
  gap: 22px;
  padding: 32px;
  margin: 56px 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.donation-progress-hero h2 {
  margin: 0 0 8px;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.progress-summary div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(10, 12, 26, 0.9);
}

.progress-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  display: grid;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
}

.progress-note {
  margin: 0;
  color: var(--text-muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.donation-tier {
  padding: 26px;
  border-radius: 24px;
  background: rgba(10, 12, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.donation-tier h3 {
  margin: 0 0 14px;
}

.donation-tier span {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(237, 77, 77, 0.18);
  color: #ffb3b3;
  font-weight: 700;
}

.product-card {
  min-height: 320px;
}

.product-card h3 {
  font-size: 1.3rem;
}

.product-card p {
  color: var(--text-muted);
  margin: 0;
}

.product-card button {
  margin-top: auto;
}

.shop-hero {
  margin-top: 64px;
  padding: 42px 0 24px;
}

.shop-intro {
  display: grid;
  gap: 24px;
  margin: 48px 0 32px;
}

.shop-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.shop-subtitle {
  color: var(--text-muted);
  max-width: 760px;
}

.shop-archive-grid,
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail {
  display: grid;
  gap: 28px;
  padding: 38px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail h1 {
  margin: 0 0 16px;
}

.product-price {
  margin: 0 0 18px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.product-detail button {
  width: fit-content;
}

@media (max-width: 960px) {
  .hero, .story, .news-hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-panel {
    width: 100vw;
  }
}

@media (max-width: 680px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .store-header, .store-info, .news-hero-panel, .news-info {
    padding: 22px;
  }
}
