:root {
  /* Colors from colors-flugs.json */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F7;
  --bg-panel: #FAFAFA;
  
  --text-primary: #2B2B2B;
  --text-secondary: #6F6F6F;
  --text-muted: #9A9A9A;
  --text-inverse: #FFFFFF;
  
  --border-default: #D6D6D6;
  --border-subtle: #E5E5E5;
  --border-focus: #BDBDBD;
  
  --brand-primary: #F25F5C;
  --brand-secondary: #F7C948;
  --brand-accent: #8FB339;
  
  --btn-primary-bg: #F25F5C;
  --btn-primary-text: #FFFFFF;
  --btn-secondary-bg: #F7C948;
  --btn-secondary-text: #1F1F1F;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  /* Override custom.css non-responsive constraint */
  min-width: 0 !important;
}

header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-default);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--brand-primary);
}

.hero {
  background-color: var(--bg-primary);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background-image: radial-gradient(circle at 10% 20%, rgba(242, 95, 92, 0.05) 0%, transparent 20%);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.market-link-section {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.onion-link {
  font-size: 1.2rem;
  font-family: monospace;
  word-break: break-all;
  color: var(--brand-primary);
  font-weight: bold;
  display: block;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-weight: bold;
  transition: transform 0.1s, opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-panel);
}

h2 {
  color: var(--text-primary);
  border-bottom: 2px solid var(--brand-secondary);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.notification-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 2000;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

.notification-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

footer {
  background-color: var(--text-primary);
  color: var(--text-inverse);
  padding: 3rem 0;
  margin-top: 3rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--brand-secondary);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 2px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  header {
    padding: 1rem 0;
    position: sticky;
  }

  .menu-toggle {
    display: flex;
  }
  
  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    background-color: var(--bg-primary);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-default);
  }

  nav ul.active {
    display: flex;
  }
  
  .notification-btn {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }
}
