@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==== Global Link Reset ==== */
a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #ffffff;
}

/* ==== Base Styles ==== */
body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f0f0f0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ==== Headings ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==== Floating Top Auth Bar ==== */
.top-auth-bar {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3rem 0.6rem;
  border-radius: 0 0 0 10px;
  font-size: 0.9rem;
  font-weight: bold;
}

.top-auth-bar a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-auth-bar a:hover {
  color: #fff;
}

/* ==== Header ==== */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffd700;
  text-align: center;
  padding: 4rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.8rem;
  margin: 0;
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ==== CTA Button ==== */
.create-cta-button {
  font-family: 'Space Grotesk', sans-serif;
  display: inline-block;
  text-align: center;
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
  padding: 1rem 2rem;
  margin: 1.5rem auto 0;
  width: fit-content;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.create-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
  color: #121212;
}

/* ==== Navigation ==== */
nav {
  background: linear-gradient(180deg, #1e1e1e 0%, #252525 100%);
  display: flex;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-main {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-user {
  position: absolute;
  right: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  color: #ffd700;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 215, 0, 0.1);
}

/* ==== Minimal Navigation ==== */
.minimal-nav {
  background-color: #1e1e1e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.minimal-nav a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.minimal-nav a:hover {
  color: #ffffff;
}

/* ==== Container Layout ==== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ==== Login/Register Shared Layout ==== */
.login-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

form {
  background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
              0 0 1px rgba(255, 215, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 215, 0, 0.08);
}

form h2,
.register-box h3 {
  color: #ffd700;
  margin-top: 0;
  font-size: 1.5rem;
}

label {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 1rem;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input, textarea, select {
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: rgba(42, 42, 42, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.5);
  background-color: rgba(42, 42, 42, 1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

button {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  letter-spacing: 0.02em;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.bet button.vote-btn {
  width: auto;
  margin: 0;
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.4rem 0.8rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.bet button.vote-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
  transform: scale(1.05);
}

/* Admin Panel Styles */
.admin-panel {
  background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%);
  border-radius: 16px;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.admin-panel summary {
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  color: #ffd700;
  font-weight: bold;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
  list-style: none;
}

.admin-panel summary::-webkit-details-marker {
  display: none;
}

.admin-panel summary::before {
  content: '+ ';
  font-weight: bold;
}

.admin-panel[open] summary::before {
  content: '- ';
}

.admin-panel summary:hover {
  background: rgba(255, 215, 0, 0.15);
}

.admin-panel-content {
  padding: 1.5rem 1rem;
  background: rgba(42, 42, 42, 0.5);
  border-radius: 12px;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.08);
}

.admin-form {
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 12px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  color: #fff;
}

.admin-form button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(247, 183, 51, 0.9) 100%);
  transition: all 0.3s ease;
}

.admin-form button:hover {
  transform: translateY(-2px);
}

.admin-form .delete-button {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.9) 0%, rgba(255, 100, 100, 0.9) 100%);
  color: white;
}

.admin-form .delete-button:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6666 100%);
}

.register-box .register-btn {
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.register-box .register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

/* ==== Section Headings ==== */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, transparent);
  border-radius: 2px;
}

/* ==== Bets ==== */
.bet {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.6) 0%, rgba(37, 37, 37, 0.6) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.bet:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.15);
}

/* Reset button styles inside .bet to avoid side effects */
.bet form {
  margin: 0;
  padding: 0;
  display: inline;
  background: transparent;
  box-shadow: none;
  border: none;
}

.bet h3 {
  margin-bottom: 0.75rem;
  margin-top: 0;
  color: #ffd700;
  font-size: 1.4rem;
}

.bet p {
  margin: 0.5rem 0;
  color: #e0e0e0;
  line-height: 1.6;
}

.bet button:not(.vote-btn) {
  background-color: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.3s ease;
}

.bet button:not(.vote-btn):hover {
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
}

/* ==== Comments ==== */
.comment-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.comment-box input,
.comment-box textarea {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background-color: rgba(18, 18, 18, 0.8);
  color: #fff;
  font-family: 'Playfair Display', serif;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.comment-box input:focus,
.comment-box textarea:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.comment-box textarea {
  resize: vertical;
  height: 80px;
}

.comment {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-top: 1px dashed rgba(68, 68, 68, 0.5);
  font-size: 0.95rem;
  color: #ddd;
}

.comment strong {
  color: #ffd700;
}

.comments {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(25, 25, 25, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.08);
}

.comments h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.comments ul {
  margin: 0;
  padding: 0;
}

.comments li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comments li:last-child {
  border-bottom: none;
}

/* ==== Notifications ==== */
.notification {
  background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%);
  border-left: 4px solid #ffd700;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.notification:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.notification-content {
  flex-grow: 1;
}

.notification-message {
  margin: 0 0 0.5rem 0;
}

.notification-timestamp {
  color: #888;
  font-size: 0.9em;
}

.delete-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  color: #ff6666;
  transform: scale(1.1);
}

/* ==== Button Style for CTA sections ==== */
.button {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #f7b733 100%);
  color: #121212;
  padding: 1rem 2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
  color: #121212;
}

/* ==== CTA Section Styling ==== */
section.container {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.3) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* ==== Responsive (Mobile) ==== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 2.2rem !important;
  }

  header p {
    font-size: 1rem;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    text-align: center;
  }

  .nav-main {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-user {
    display: none;
  }

  .notifications-text {
    display: none;
  }

  .container {
    padding: 1rem;
  }

  .bet {
    padding: 1rem;
  }

  .bet button:not(.vote-btn) {
    width: 100%;
    margin: 5px 0;
  }

  .comment-box input,
  .comment-box textarea {
    font-size: 16px;
  }

  .login-container {
    padding: 1rem;
  }

  form {
    padding: 1.5rem;
  }

  input,
  button {
    font-size: 1rem;
  }

  .create-cta-button {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  section.container {
    padding: 2rem 1rem;
  }
}

/* ==== Animations ==== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bet {
  animation: fadeIn 0.4s ease-out;
}

.notification {
  animation: fadeIn 0.3s ease-out;
}
