/* Azure WAF Workshop - Custom Styles */

:root {
  --md-primary-fg-color: #0078D4;
  --md-accent-fg-color: #00BCF2;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f2d4d 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 120, 212, 0.3);
  color: #ffffff !important;
}

.hero p,
.hero strong,
.hero a:not(.md-button) {
  color: #e0e0e0 !important;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #00BCF2, #0078D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Deploy button */
.deploy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0078D4, #106EBE);
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.deploy-button:hover {
  background: linear-gradient(135deg, #106EBE, #005A9E);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
  color: white !important;
}

.deploy-button img {
  height: 20px;
}

/* Module card grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.module-card {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1.2rem;
  border-left: 4px solid var(--md-accent-fg-color);
  transition: all 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-left-color: #0078D4;
}

.module-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.module-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Lab cards */
.lab-card {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1.2rem;
  margin: 0.5rem 0;
  border-left: 4px solid #107C10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lab-card.optional {
  border-left-color: #FFB900;
}

.lab-card.new {
  border-left-color: #00BCF2;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-core {
  background: rgba(16, 124, 16, 0.2);
  color: #4CAF50;
}

.badge-optional {
  background: rgba(255, 185, 0, 0.2);
  color: #FFB900;
}

.badge-new {
  background: rgba(0, 188, 242, 0.2);
  color: #00BCF2;
}

/* Architecture diagram */
.architecture-box {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
  overflow-x: auto;
}

/* Key takeaway boxes */
.takeaway {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 188, 242, 0.05));
  border-radius: 8px;
  padding: 1rem 1.5rem;
  border-left: 4px solid #0078D4;
  margin: 1rem 0;
}

/* Step counter */
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--md-accent-fg-color);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
}

/* Stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--md-accent-fg-color);
}

.stat-card .label {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Script info box */
.script-info {
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

/* Navigation improvements */
.md-nav__link--active {
  font-weight: 700 !important;
}

/* Footer override */
.md-footer-meta {
  background: var(--md-default-bg-color);
}
