:root {
  --spotify-green: #1ed760;
  --spotify-dark: #191414;
  --down-grey: #5a5c5e;
  --down-red: #ed254e;
}

body {
  background: var(--spotify-dark);
  color: #fff;
  min-height: 100vh;
}

.main-content {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 700px) {
  .main-content {
    width: 95vw;
    max-width: 95vw;
  }
}

/* Title and Intro */
.header-container {
  display: flex;
  align-items: baseline;
  width: 100%;
  margin-top: 2.5rem;
  justify-content: center;
  position: relative;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 10px 7px 10px;
  z-index: 1001;
  position: absolute;
  left: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--spotify-green);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: var(--spotify-dark);
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1000;
}

.nav-menu.active {
  left: 0;
}

.nav-menu ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.nav-menu ul li {
  margin: 15px 0;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
}

.nav-menu ul li a:hover {
  color: var(--spotify-green);
}

.close-nav {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
}

.site-title {
  font-family: 'Figtree', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  position: relative;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(25,20,20,0.10);
  width: 100%;
}

.site-title .spotify-word {
  color: var(--spotify-green);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.site-title .site-qmark {
  color: #fff;
  font-weight: 700;
}

.site-title::after {
  content: '';
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 100%;
  height: 3px;
  background: var(--spotify-green);
  border-radius: 2px;
  opacity: 0.3;
}

.status-intro {
  font-size: 1.15rem;
  text-align: center;
  margin: 0 auto 1.0rem auto;
  color: #dedede;
  max-width: 100%;
  width: 100%;
}

.status-box {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.15);
  margin: 0 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 2.5rem 1.5rem;
  transition: background 0.3s, color 0.3s;
  border: 4px solid #222;
}

.status-box[data-status="up"] {
  background: var(--spotify-green);
  color: #111;
  border-color: var(--spotify-green);
}

.status-box[data-status="down"] {
  background: var(--down-grey);
  color: #fff;
  border-color: var(--down-red);
}

.status-label {
  font-family: 'Figtree', Helvetica, Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.status-sub {
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.85;
}

.chart-panel {
  width: 100%;
  margin: 1.2rem 0 0 0;
  max-width: 600px;
}

.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  border-radius: 1.4rem 1.4rem 0 0;
  padding: 0.4rem 1.2rem;
}

.chart-title {
  font-family: 'Figtree', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.btn-chart-toggle {
  background: var(--spotify-green);
  color: #191414;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.2rem 1rem;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-chart-toggle[aria-expanded="false"] {
  background: #5a5c5e;
  color: #fff;
}

.chart-panel-body {
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: 1000px;
}

.chart-panel-body.collapsed {
  max-height: 0 !important;
  padding: 0;
  pointer-events: none;
}

.status-chart-container {
  width: 100%;
  max-width: 500px;
  margin: 0.5rem auto 0 auto;
  background: #222;
  border-radius: 2rem;
  box-shadow: 0 2px 18px 0 rgba(0,0,0,0.12);
  padding: 1.2rem 0.7rem 0.7rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.status-chart-container.small-chart {
  height: 240px;
}

.chart-divider {
  width: 100%;
  height: 4px;
  background: var(--spotify-green);
  opacity: 0.3;
  margin: 1rem 0 1rem 0;
  border-radius: 2px;
}

/* FAQ section alignment */
.faq-section {
  width: 100%;
  margin: 0rem 0 0rem 0;
  text-align: left;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.4rem;
  font-size: 1.25rem;
}

.faq {
  margin-bottom: 0rem;
  padding-left: 0.7rem;
}

.faq-section .faq:last-child {
  margin-bottom: 0.5rem;
}
.faq-section .faq:last-child p {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .status-box {
    min-height: 20vh;
    max-width: 600px;
  }
  .status-chart-container {
    max-width: 600px;
    height: 280px;
  }
  .status-chart-container.small-chart {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .site-title {
    font-size: 1.4rem;
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
  }
  .site-title::after {
    width: 100%;
  }
  .hamburger {
    padding: 5px 5px 3px 5px;
  }
  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 4px 0;
  }
}

header, .header-container, .status-intro {
  width: 100%;
}

.ad-banner {
  position: relative;
  margin-top: 1.5rem !important;
}

.ad-banner .ad-learn-more {
  position: absolute;
  bottom: 12px;
  right: 18px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 2;
}

.ad-banner:hover .ad-learn-more,
.ad-banner a:focus .ad-learn-more {
  opacity: 1;
}

.twitter-promo {
  display: flex;
  align-items: center;
  background: #f5f8fa;
  border: 1px solid #e1e8ed;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Figtree', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.twitter-promo .twitter-icon {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
}
.twitter-promo .twitter-x {
  color: #1da1f2;
  font-weight: bold;
}
.twitter-promo.subtle {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.25rem 0;
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0rem !important;
}
.twitter-icon.subtle {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.twitter-promo .twitter-x {
  color: #1da1f2;
  font-weight: 500;
}
.twitter-promo.subtle a {
  text-decoration: none;
  color: inherit;
}
.twitter-promo.subtle a:hover .twitter-x {
  text-decoration: underline;
}
.twitter-promo.cta {
  background: #e8f5fd;
  border-color: #1da1f2;
}
.twitter-follow-btn {
  margin-left: 1rem;
  background: #1da1f2;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.twitter-follow-btn:hover {
  background: #0d8ddb;
}

.twitter-promo-white {
  color: #fff !important;
  margin-bottom: 0.4rem !important;
}
.twitter-promo-white a {
  color: #fff !important;
}
.twitter-promo-white .twitter-x {
  color: var(--spotify-green) !important;
}
