/* =========================
   Reset Styles
========================= */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

/* =========================
   Header
========================= */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0F172A;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-logo {
  height: 40px;
  margin-right: 10px;
}

.site-title {
  font-size: 1.5rem;
  color: #fff;
  flex-grow: 1;
  text-align: center;
}

.chat-toggle-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.chat-toggle-button:hover {
  background-color: #555;
}

/* =========================
   Video and Chat
========================= */
.video-and-chat {
  display: flex;
  flex-direction: row;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.video-section {
  flex: 3;
}

.chat-section {
  flex: 1;
  background-color: #1a1a1a;
  border-left: 1px solid #333;
  display: flex;
}

.video-section iframe,
.chat-section iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

/* =========================
   About + Contact Combined
========================= */
.channel-info {
  padding: 60px 20px 20px;
  text-align: center;
  background: url('bg-pic.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.channel-info::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 0;
}

.channel-info > * {
  position: relative;
  z-index: 1;
}

.channel-info .info-logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

.channel-info h2 {
  margin-bottom: 20px;
}

.channel-info p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 170px;
}

.channel-info .btn {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

/* Facebook - normal: dark blue, hover: bright blue */
.facebook-btn {
  background-color: #0056b3;
}

.facebook-btn:hover {
  background-color: #007BFF;
}

/* YouTube - normal: dark red, hover: bright red */
.youtube-btn {
  background-color: #AD0000ED;
}

.youtube-btn:hover {
  background-color: #FF0000;
}

/* Donate - normal: dark green, hover: bright green */
.donate-btn {
  background-color: #1e7e34;
}

.donate-btn:hover {
  background-color: #28a745;
}

/* =========================
   Contact Info
========================= */
.channel-info .contact-info {
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}

.channel-info .contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.channel-info .contact-info p {
  margin-bottom: 6px;
  line-height: 1.2;
}

.channel-info .contact-info p:last-of-type {
  margin-bottom: 0;
}

/* Social buttons below contact */
.social-below-contact {
  margin-top: 20px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Footer
========================= */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #0F172A;
  color: #ccc;
  padding: 15px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

/* =========================
   Responsive Mobile @ 768px
========================= */
@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    align-items: center;
  }

  /* ❌ Hide chat toggle button on mobile */
  .chat-toggle-button {
    display: none;
  }

  /* Hide chat toggle container if empty */
  #mobile-chat-toggle-container {
    display: none;
  }

  .video-and-chat {
    flex-direction: column;
    width: 100vw;
  }

  .video-section iframe,
  .chat-section iframe {
    height: 280px !important; /* ✅ mobile chat height */
  }

  .chat-section {
    border-left: none;
    border-top: 1px solid #333;
  }

  .site-logo {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }

  .footer-left,
  .footer-right {
    display: none;
  }

  .footer-center {
    flex: 1 1 100%;
    text-align: center;
  }

  /* ✅ Only enlarge donate buttons on mobile */
  .channel-info .donate-btn {
    font-size: 1.1rem;
    padding: 14px 24px;
    min-width: 180px;
    max-width: 340px;
    margin: 2px;
    text-align: center;
    border-radius: 6px;
    display: inline-block;
  }

  .social-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}
