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

/* Main Content */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ff5757, #ff8a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.example-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 87, 87, 0.1);
}

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

.example-title {
  color: #ff5757;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.example-icon {
  font-size: 1.5rem;
  color: #ff5757;
}

.try-button {
  background: linear-gradient(45deg, #ff5757, #ff6b6b);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.try-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 87, 87, 0.3);
}

.example-description {
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.code-container {
  position: relative;
  background: #001325;
  border-radius: 10px;
  overflow: hidden;
  margin: 5px auto;
}

.code-header {
  background: rgba(255, 87, 87, 0.1);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 87, 87, 0.2);
}

.code-header span {
  color: #ff5757;
  font-weight: 600;
  font-size: 12px;
}

.copy-btn {
  background: rgba(255, 87, 87, 0.2);
  color: #ff5757;
  border: none;
  margin-bottom: 2px;
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(255, 87, 87, 0.3);
}

code {
  color: #e17055;
}

.code-block {
  padding: 20px;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  color: #e6e6e6;
}

.code-block pre {
  margin: 0;
}

/* Category Sections */
.category-section {
  margin: 60px 0;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff5757;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #ff5757, #ff6b6b);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    padding: 20px;
  }

  .example-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* Syntax Highlighting */
.hljs-keyword {
  color: #ff5757;
}

.hljs-string {
  color: #a8e6cf;
}

.hljs-number {
  color: #ffb347;
}

.hljs-comment {
  color: #888;
}

.hljs-attr {
  color: #74b9ff;
}

.hljs-literal {
  color: #fd79a8;
}

.hljs-function {
  color: #ffeaa7;
}

/* Demo Modal Styles (placeholder for actual CoolAlert integration) */
.demo-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
}

.demo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
}

.demo-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.demo-icon.success {
  background: linear-gradient(45deg, #00b894, #00cec9);
}

.demo-icon.error {
  background: linear-gradient(45deg, #e17055, #d63031);
}

.demo-icon.warning {
  background: linear-gradient(45deg, #fdcb6e, #e17055);
}

.demo-icon.info {
  background: linear-gradient(45deg, #74b9ff, #0984e3);
}

.demo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
}

.demo-text {
  margin-bottom: 25px;
  opacity: 0.9;
}

.demo-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.demo-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-btn.primary {
  background: linear-gradient(45deg, #ff5757, #ff6b6b);
  color: white;
}

.demo-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
