
/* ========================================
   BearMD Website - Global Styles
   ======================================== */

/* Base */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: white;
}

.container {
  width: 80%;
  margin: auto;
  padding: 20px;
}


/* ========================================
   Header
   ======================================== */

.header-container {
  width: 100%;
  background: url('3dfffff.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 75px 0;
  position: relative;
}

.header {
  font-size: 6em;
  font-weight: bold;
  color: white;
  margin-right: 20px;
  position: absolute;
  bottom: 0;
  text-shadow: 1px 1px 2px black;
  text-decoration: none;
}

.header-img {
  height: 120px;
  position: absolute;
  bottom: 0;
  left: 0;
}


/* Header homepage links */

.header-link {
  color: inherit;
  text-decoration: none;
}

.header-link:hover {
  color: inherit;
}


/* ========================================
   Navigation
   ======================================== */

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 18px 20px;
  background-color: #2a2a2a;
  border-bottom: 2px solid #a855f7;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.main-nav a:hover {
  background-color: #3d3d3d;
}


/* ========================================
   Sections
   ======================================== */

.section {
  margin: 20px 0;
  padding: 0;

  /* Rounded gradient border */
  border: 2px solid transparent;
  border-radius: 10px;

  background:
    linear-gradient(#2a2a2a, #2a2a2a) padding-box,
    linear-gradient(to right, #a855f7, #2563eb) border-box;

  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);

  /* Keep embedded content inside rounded corners */
  overflow: hidden;
}


/* ========================================
   Twitch Embed
   ======================================== */

.twitch-wrapper {
  width: 100%;
  height: 800px;
  display: flex;
  overflow: hidden;
}

#twitch-embed {
  width: 100%;
  height: 100%;
  flex: 1;
  min-width: 0;
}

#twitch-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}


/* ========================================
   Projects / Video Gallery
   ======================================== */

.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.video-container iframe {
  max-width: 100%;
  width: 700px;
  height: 393px;
  border: none;
}


/* ========================================
   Social Buttons
   ======================================== */

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 20px;
}

.btn {
  padding: 10px 20px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease-in-out;
  display: inline-block;
  text-align: center;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

.twitch {
  background-color: #9146FF;
}

.twitch:hover {
  background-color: #772CE8;
}

.youtube {
  background-color: #FF0000;
}

.youtube:hover {
  background-color: #CC0000;
}

.bluesky {
  background-color: #0095FF;
}

.bluesky:hover {
  background-color: #007ACC;
}


/* ========================================
   Footer
   ======================================== */

.footer {
  text-align: center;
  padding: 10px;
  background-color: #1a1a1a;
  font-size: 0.9em;
}


/* ========================================
   Mobile Layout
   ======================================== */

@media (max-width: 768px) {

  .header {
    font-size: 3em;
    text-align: right;
    margin-right: 10px;
  }

  .header-img {
    height: 80px;
  }

  .container {
    width: 100%;
    padding: 0;
  }

  .main-nav {
    gap: 8px;
    padding: 12px 6px;
  }

  .main-nav a {
    font-size: 0.95em;
    padding: 10px 8px;
  }

  .btn {
    font-size: 1em;
    padding: 8px 16px;
  }

  .video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .twitch-wrapper {
    height: 600px;
  }

}

/* ========================================
   Community Page
   ======================================== */

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.community-panel {
  margin: 20px 0;
  padding: 25px;
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.community-panel h2 {
  margin: 0 0 12px;
  font-size: 1.8em;
  text-align: center;
}

.panel-description {
  margin: 0 0 20px;
  color: #cccccc;
  text-align: center;
}

/* Howdy Leaderboard */


#howdy-leaderboard {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  min-height: 250px;
}

.howdy-stats {
  color: #cccccc;
  text-align: center;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.howdy-scroll {
  max-height: 400px;
  overflow-y: auto;
}

.howdy-table {
  width: 100%;
  border-collapse: collapse;
}

.howdy-table th,
.howdy-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #383838;
}

.howdy-table th {
  color: #aaaaaa;
  font-size: 0.9em;
  position: sticky;
  top: 0;
  background-color: #1a1a1a;
}

.howdy-table td:first-child {
  width: 60px;
  color: #c084fc;
  font-weight: bold;
}

.howdy-table th:last-child,
.howdy-table td:last-child {
  text-align: right;
}

.howdy-table a {
  color: white;
  text-decoration: none;
}

.howdy-table a:hover {
  color: #c084fc;
  text-decoration: underline;
}

.howdy-table tbody tr:hover {
  background-color: #252525;
}

.howdy-updated {
  margin-top: 15px;
  text-align: center;
  font-size: 0.8em;
  color: #999999;
}


/* Latest Stream Score */

#latest-stream-score {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.stream-info h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #aaaaaa;
  font-size: 0.9em;
}

.score-chart-placeholder {
  flex: 1;
  min-height: 250px;
  padding: 15px;
  background-color: #1a1a1a;
  border-radius: 8px;
  color: #aaaaaa;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stream-score-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.final-score {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.final-score span {
  color: #aaaaaa;
  font-size: 0.9em;
}

.final-score strong {
  font-size: 1.8em;
}

.vod-link {
  display: inline-block;
  padding: 12px 18px;
  background-color: #9146ff;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.vod-link:hover {
  background-color: #772ce8;
}

.vod-link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Community Mobile Layout */

@media (max-width: 768px) {

  .community-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .community-panel {
    padding: 20px 15px;
  }

  .community-panel h2 {
    font-size: 1.5em;
  }

  .stream-score-footer {
    flex-wrap: wrap;
  }

}

/* ========================================
   Coming Soon Pages
   ======================================== */

.coming-soon-section {
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.coming-soon-section h2 {
  font-size: 2em;
  margin: 0;
}


/* ========================================
   About Page
   ======================================== */

.about-section {
  max-width: 900px;
  margin: 20px auto;
  padding: 35px 45px;
  box-sizing: border-box;
}

.about-section h2 {
  font-size: 2em;
  margin: 0 0 25px;
}

.about-section p {
  font-size: 1.05em;
  line-height: 1.75;
  color: #e0e0e0;
  margin: 0 0 1.5em;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* About Mobile Layout */

@media (max-width: 768px) {

  .about-section {
    margin: 20px 12px;
    padding: 25px 20px;
  }

  .about-section h2 {
    font-size: 1.7em;
  }

  .about-section p {
    font-size: 1em;
    line-height: 1.65;
  }

}
