/* ========================================
   raidme.live Global Styles
   ======================================== */

/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: linear-gradient(-45deg, #9147ff, #6441a5, #772ce8, #a970ff);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  transition: background 1s;
  position: relative;
  overflow: hidden;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   Holding Page Logo
   ======================================== */
.logo {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9147ff;
  font-weight: bold;
  font-size: 24px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ========================================
   Feature cards
   ======================================== */
.feature {
  position: absolute;
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  pointer-events: none;
  text-align:left;
  max-width: 220px;
}
.feature span {
  display: block;
  font-weight: normal;
  font-size: 14px;
  margin-top: 4px;
  color: #333;
}

/* ========================================
   Avatar speech bubble
   ======================================== */
#avatar-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  color: #000;
  padding: 15px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  max-width: 250px;
  min-width: 180px;
  font-weight: bold;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* ========================================
   Layout Containers
   ======================================== */
.container {
  max-width: 800px;
  padding: 20px;
}

h1 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

footer {
  margin-top: 50px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   Login Page Specific
   ======================================== */
.login-container {
  background: rgba(0,0,0,0.6);
  padding: 40px 60px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  text-align: center;
}

.login-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.twitch-btn {
  display: inline-block;
  background: #9147ff;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.twitch-btn:hover {
  background: #772ce8;
  transform: scale(1.05);
}

/* ========================================
   Dashboard Styles
   ======================================== */
.wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  background-color: rgba(0,0,0,0.7);
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: transform 0.3s ease;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  justify-content: flex-start;
  white-space: nowrap;
}

.sidebar .logo .logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #9146FF;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  animation: bounce 1.5s infinite;
}

.sidebar nav a {
  display: block;
  padding: 12px 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  transition: background 0.2s;
  color: #fff;
}

.sidebar nav a:hover {
  background-color: #9146FF;
  color: white;
}

/* Main content */
.main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.main-header .user-info {
  display: flex;
  align-items: center;
}

.main-header .user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

/* Stream cards grid */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-items: start;
}

.stream-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps button at bottom */
  background-color: rgba(0,0,0,0.6);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 10px;
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.stream-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.stream-card .info {
  padding: 10px;
  flex-grow: 1;
}

.stream-card .info h3 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.stream-card .info p {
  margin: 3px 0;
  font-size: 0.85rem;
  color: #ccc;
}

/* Plan Raid Button */
.plan-raid-btn {
  align-self: left;           /* center button horizontally */
  padding: 8px 20px;
  max-width: 120px;             /* ensures button isn’t too wide */
  background-color: #ff3a3a;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  border: 2px solid #fff;
  cursor: pointer;
}

/* Logout button */
.logout-btn {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 20px;
  background-color: #9146FF;
  border-radius: 5px;
  font-weight: bold;
  color: white;
  transition: background 0.2s;
}

.logout-btn:hover {
  background-color: #7a3be0;
}

/* Responsive */
@media(max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }

  .sidebar nav {
    display: flex;
  }

  .sidebar nav a {
    margin-right: 10px;
    margin-bottom: 0;
  }

  .sidebar .logo {
    margin-bottom: 0;
    font-size: 1rem;
  }

  .sidebar .logo .logo-icon {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }
}

/* Heading spacing */
.main h2 {
  margin-bottom: 20px;
}

.like-container {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

#likeBtn {
  background: linear-gradient(135deg, #060060, #772ce8);
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(145, 71, 255, 0.6);
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
}

#likeBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(145, 71, 255, 0.8);
}

#likeCount {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.like-container {
    display: flex;           /* row layout */
    align-items: center;     /* vertically center button & number */
    justify-content: center; /* center horizontally within container */
    gap: 12px;               /* spacing between button and count */
    margin: 20px 0;
}

.like-container button {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #fff;
    background-color: #ff3a3a;
    color: #fff;
    cursor: pointer;
}

.like-container span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}
#likeBtn {
  background: linear-gradient(135deg, #8c63ff, #b997ff); /* lighter purple gradient */
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(140, 99, 255, 0.4); /* lighter shadow */
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
}

#likeBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(140, 99, 255, 0.6);
}


/* ========================================
   Holding Page Styles
   ======================================== */
body.holding-page {
  background: linear-gradient(-45deg, #9147ff, #6441a5, #772ce8, #a970ff);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  transition: background 1s;
  position: relative;
  overflow: hidden;
}

/* ========================================
   Dashboard Page Styles
   ======================================== */
body.dashboard-page {
  display: block;           /* don't center like the holding page */
  min-height: 100vh;
  text-align: left;
}

body.dashboard-page {
  display: block;
  min-height: 100vh;
  text-align: left;
}

body.dashboard-page .wrapper {
  display: flex;          /* sidebar + main horizontally */
  width: 100%;
  min-height: 100vh;
  flex-direction: row;    /* ensure horizontal layout */
}

body.dashboard-page .main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column; /* vertical stacking inside main */
  align-items: flex-start;
  text-align: left;
}

body.dashboard-page .stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}