/* Tennis Racket Hub Australia - Authority Site Styles */
/* Updated January 2026 */

:root {
  --bg: #0e1325;
  --surface: #111833;
  --panel: #151d3a;
  --accent: #5ce1e6;
  --accent-2: #f5a524;
  --text: #e8edf5;
  --muted: #9fb1d0;
  --positive: #6bdc7d;
  --shadow: 0 10px 35px rgba(0,0,0,0.35);
  --radius: 16px;
  --max-width: 1200px;
  --content-width: 800px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(92,225,230,0.08), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(245,165,36,0.10), transparent 25%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.75;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Typography - High-end publication style */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 1rem; }

p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Header - Sticky Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(14,19,37,0.95);
  border-bottom: 1px solid rgba(92,225,230,0.15);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.pill {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(92,225,230,0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(92,225,230,0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  padding: 5rem 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, var(--accent), #7bf1f4);
  color: #0b152d;
  border: none;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(92,225,230,0.3);
  color: #0b152d;
}

.cta.secondary {
  background: rgba(92,225,230,0.14);
  color: var(--text);
  border: 1px solid rgba(92,225,230,0.35);
  box-shadow: none;
}

.cta.secondary:hover {
  background: rgba(92,225,230,0.25);
  color: var(--text);
}

/* Panel / Card Styles */
.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(92,225,230,0.16);
  color: var(--accent);
  border: 1px solid rgba(92,225,230,0.4);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-gold {
  background: rgba(245,165,36,0.16);
  color: var(--accent-2);
  border-color: rgba(245,165,36,0.4);
}

/* Indicator */
.indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--positive);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Article Card */
.article-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.article-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--surface), var(--panel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.article-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Latest Guides Section */
.latest-guides {
  background: var(--surface);
  padding: 5rem 0;
  margin-top: 3rem;
}

.latest-guides .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--text);
}

.chip {
  display: inline-flex;
  padding: 0.375rem 0.625rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Filter Section */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

label {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.875rem;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Quiz Section */
.quiz form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quiz-result {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(92,225,230,0.08);
  border: 1px solid rgba(92,225,230,0.3);
}

/* Info Boxes for Articles */
.info-box {
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.info-box-primary {
  background: linear-gradient(135deg, rgba(92,225,230,0.1), rgba(92,225,230,0.05));
  border-left: 4px solid var(--accent);
}

.info-box-warning {
  background: linear-gradient(135deg, rgba(245,165,36,0.1), rgba(245,165,36,0.05));
  border-left: 4px solid var(--accent-2);
}

.info-box-success {
  background: linear-gradient(135deg, rgba(107,220,125,0.1), rgba(107,220,125,0.05));
  border-left: 4px solid var(--positive);
}

.info-box h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p {
  margin: 0;
  color: var(--muted);
}

/* Key Takeaway Card */
.key-takeaway {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
}

.key-takeaway::before {
  content: "Key Takeaway";
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--bg);
  padding: 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Article Content Styles */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-content h1 {
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-content h2 {
  margin-top: 3rem;
  padding-top: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
}

.article-content p {
  color: var(--text);
  opacity: 0.9;
}

.article-content ul,
.article-content ol {
  color: var(--text);
  opacity: 0.9;
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--panel);
  border-radius: var(--radius);
  margin-top: 4rem;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.author-info p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Page Header */
.page-header {
  padding: 4rem 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* About Page */
.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-content p {
  color: var(--text);
  opacity: 0.9;
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: var(--panel);
  border-radius: var(--radius);
}

.team-member .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Legal Pages */
.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h2 {
  margin-top: 3rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

/* Footer */
footer {
  background: #0b1020;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.amazon-disclosure {
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.3);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  display: inline-block;
  margin-top: 1rem;
}

.amazon-disclosure p {
  color: var(--accent-2);
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumbs a {
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs span {
  color: var(--muted);
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-home {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,19,37,0.98);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(92,225,230,0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .card-actions {
    flex-direction: column;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
