/* --- Header Styles --- */
.main-header {
  width: 100%;
  max-width: 800px; /* Align with container max-width */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 30px; /* Space below header */
}

.logo-container {
  display: flex;
  align-items: center;
}

.site-logo {
  /* REDUCED SIZE for better fit and less overlap */
  height: 160px;
  margin-right: 10px;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.1)
  ); /* Subtle shadow for depth */
}

/* Optional: Invert logo color for dark mode if it's solid dark */
@media (prefers-color-scheme: dark) {
  .site-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); /* Darker shadow */
  }
}

.site-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--text-color);
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
  -webkit-appearance: none; /* For Safari/iOS to remove default button styles */
  -moz-appearance: none; /* For Firefox */
  appearance: none; /* Standard */
}

.lang-btn:hover {
  background-color: var(--card-hover-bg);
}

.lang-btn.active {
  background-color: var(
    --text-color
  ); /* Active button uses text color as background */
  color: var(
    --bg-color
  ); /* Active button uses background color as text color */
  border-color: var(--text-color);
}

/* --- Footer Styles --- */
footer {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

footer p {
  font-size: 0.8em;
  opacity: 0.6;
  margin: 0;
  text-align: center;
}

/* Rest of your existing CSS from the previous version below */

:root {
  /* Light Mode Default */
  --bg-color: #f7f9fc;
  --text-color: #1e1e1e;
  --card-bg: #ffffff;
  --card-hover-bg: #e2e8f0;
  --border-color: #cccccc;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Overrides */
    --bg-color: #1a1a2e;
    --text-color: #f0f0f0;
    --card-bg: #27284b;
    --card-hover-bg: #353860;
    --border-color: #44476a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
}

/* Basic Reset and Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
}
h2 {
  font-size: 1.5em;
  margin-top: 2.5em;
  margin-bottom: 1em;
  text-align: left;
  padding-left: 10px;
}
p.subtitle {
  font-size: 1.1em;
  margin-bottom: 2em;
  opacity: 0.7;
}

/* Separator Line */
hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 2em 0;
}

/* The Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  /* This is the fix I added for separating card groups */
  margin-bottom: 20px;
}

/* The Card Style */
.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: var(--card-bg);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.social-card:hover {
  background-color: var(--card-hover-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Icon & Text Container */
.link-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
  text-align: left;
}

.social-icon {
  font-size: 2.5em;
  margin-right: 15px;
}

.link-text p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1em;
  line-height: 1.2;
}

.link-text small {
  opacity: 0.7;
  font-size: 0.9em;
}

/* QR CODE STYLING */
.qr-code-container {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Border and Curve */
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  background-color: #ffffff;
  transition: border-color 0.3s, background-color 0.3s;
}

/* Ensure the inner canvas/image is scaled correctly */
.qr-code-container canvas,
.qr-code-container img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Specific Icon Colors (These are the default/light mode colors) */
.fa-instagram {
  color: #c13584;
}
.fa-linkedin-in {
  color: #0077b5;
}
.fa-youtube {
  color: #ff0000;
}
.fa-twitch {
  color: #6441a4;
}
.fa-tiktok {
  /* Added TikTok color */
  color: #000000;
}

/* Small screen adjustments */
@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}
