/* SAP Fiori Morning Horizon Theme Styles */

:root {
  /* Morning Horizon Color Palette */
  --sapBrandColor: #0070f2;
  --sapHighlightColor: #0064d9;
  --sapBaseColor: #ffffff;
  --sapShellColor: #354a5f;
  --sapBackgroundColor: #f7f7f7;
  --sapNeutralColor: #6a6d70;
  --sapContentLabelColor: #32363a;
  --sapTextColor: #32363a;
  --sapLinkColor: #0070f2;
  --sapCompanyColor: #427cac;
  --sapTitleColor: #32363a;
  --sapNegativeColor: #b00;
  --sapCriticalColor: #e9730c;
  --sapPositiveColor: #107e3e;
  --sapInformationColor: #0a6ed1;
  --sapSuccessColor: #107e3e;
  --sapWarningColor: #df6e0c;
  --sapErrorColor: #b00;
  --sapNeutralBorderColor: #d9d9d9;
  --sapNeutralElementColor: #ffffff;
  --sapNegativeElementColor: #ffebef;
  --sapCriticalElementColor: #fff8f1;
  --sapPositiveElementColor: #f0f9f0;
  --sapInformationElementColor: #f1f6fe;

  /* Typography */
  --sapFontFamily: '72', '72full', Arial, Helvetica, sans-serif;
  --sapFontSize: 0.875rem;
  --sapFontLargeSize: 1rem;
  --sapFontSmallSize: 0.75rem;
  --sapFontHeader1Size: 3rem;
  --sapFontHeader2Size: 2rem;
  --sapFontHeader3Size: 1.5rem;
  --sapFontHeader4Size: 1.25rem;
  --sapFontHeader5Size: 1.125rem;
  --sapFontHeader6Size: 1rem;

  /* Spacing */
  --sapElement_LineHeight: 2.75rem;
  --sapContent_LineHeight: 1.4;
  --sapElement_Height: 2.25rem;
  --sapElement_Compact_Height: 2rem;
  --sapContent_GridSize: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sapFontFamily);
  font-size: var(--sapFontSize);
  line-height: var(--sapContent_LineHeight);
  color: var(--sapTextColor);
  background-color: var(--sapBackgroundColor);
}

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

/* Header */
.header {
  background-color: var(--sapShellColor);
  color: var(--sapBaseColor);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section:hover {
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
}

.product-title {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  color: var(--sapBaseColor);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--sapBaseColor);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--sapBrandColor);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sapBrandColor), var(--sapCompanyColor));
  color: var(--sapBaseColor);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: var(--sapFontHeader1Size);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: var(--sapFontLargeSize);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-family: var(--sapFontFamily);
  font-size: var(--sapFontSize);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--sapElement_Height);
}

.btn-primary {
  background-color: var(--sapBaseColor);
  color: var(--sapBrandColor);
}

.btn-primary:hover {
  background-color: #f0f0f0;
}

.btn-secondary {
  background-color: transparent;
  color: var(--sapBaseColor);
  border: 2px solid var(--sapBaseColor);
}

.btn-secondary:hover {
  background-color: var(--sapBaseColor);
  color: var(--sapBrandColor);
}

.btn-outline {
  background-color: transparent;
  color: var(--sapBrandColor);
  border: 2px solid var(--sapBrandColor);
}

.btn-outline:hover {
  background-color: var(--sapBrandColor);
  color: var(--sapBaseColor);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--sapBaseColor);
}

.section-title {
  font-size: var(--sapFontHeader2Size);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--sapTitleColor);
}

/* Overview Section */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-text p {
  margin-bottom: 1rem;
  font-size: var(--sapFontLargeSize);
  line-height: 1.6;
}

.overview-features {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 4rem;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.25rem;
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-item h3 {
  font-size: var(--sapFontHeader6Size);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--sapTitleColor);
  line-height: 1.3;
}

.feature-item p {
  color: var(--sapNeutralColor);
  line-height: 1.4;
  margin: 0;
}

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

.benefit-card {
  background-color: var(--sapNeutralElementColor);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--sapBrandColor);
}

.benefit-card h3 {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sapTitleColor);
}

.benefit-card p {
  color: var(--sapNeutralColor);
  line-height: 1.5;
}

/* Excercises Section */
.steps {
  display: grid;
  gap: 2rem;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--sapNeutralElementColor);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--sapBrandColor);
  color: var(--sapBaseColor);
  border-radius: 50%;
  font-size: var(--sapFontHeader5Size);
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--sapTitleColor);
}

.step-content p {
  margin-bottom: 1rem;
  color: var(--sapNeutralColor);
}

.step-content code {
  display: inline-block;
  background-color: var(--sapBackgroundColor);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: var(--sapFontSmallSize);
  color: var(--sapTextColor);
  border: 1px solid var(--sapNeutralBorderColor);
}

/* Getting Started Section */
.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.getting-started-card {
  background-color: var(--sapNeutralElementColor);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.getting-started-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.getting-started-card h3 {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sapTitleColor);
}

.getting-started-card p {
  font-size: 1rem;
  color: var(--sapNeutralColor);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Documentation Section */
.documentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.doc-card {
  background-color: var(--sapNeutralElementColor);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.doc-card h3 {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sapTitleColor);
}

.doc-card p {
  color: var(--sapNeutralColor);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.doc-link {
  color: var(--sapLinkColor);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.doc-link:hover {
  color: var(--sapHighlightColor);
}

/* Footer */
.footer {
  background-color: var(--sapShellColor);
  color: var(--sapBaseColor);
  padding-bottom: 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: var(--sapFontHeader6Size);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sapBaseColor);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #b8c4d1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--sapBaseColor);
}

.footer-bottom {
  border-top: 1px solid #4a5d73;
  padding-top: 1rem;
  text-align: center;
  color: #b8c4d1;
}

/* Content Styling */
h3 {
  font-size: var(--sapFontHeader4Size);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--sapTitleColor);
}

h4 {
  font-size: var(--sapFontHeader5Size);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--sapTitleColor);
}

/* Lists */
ol, ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

ol li, ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--sapTextColor);
}

ol li ol, ul li ul, ol li ul, ul li ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* Note styles */
.warning-note {
  background-color: var(--sapCriticalElementColor);
  border-left: 4px solid var(--sapWarningColor);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
  font-weight: 500;
  color: var(--sapTextColor);
}

.info-note {
  background-color: var(--sapInformationElementColor);
  border-left: 4px solid var(--sapInformationColor);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
  font-weight: 500;
  color: var(--sapTextColor);
}

.success-note {
  background-color: var(--sapPositiveElementColor);
  border-left: 4px solid var(--sapPositiveColor);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
  font-weight: 500;
  color: var(--sapTextColor);
}

/* Links */
a {
  color: var(--sapLinkColor);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sapHighlightColor);
  text-decoration: underline;
}

/* Images */
.screenshot {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--sapNeutralBorderColor);
}

.icon {
  display: inline;
  width: 1em;
  height: auto;
}

/* Code Snippets */
.code-snippet {
  white-space: pre;
  min-width: 100%;
}

/* Copy to Clipboard */
.code-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--sapNeutralElementColor);
  border: 1px solid var(--sapNeutralBorderColor);
  border-radius: 0.25rem;
  padding: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sapBrandColor);
  transition: all 0.2s ease;
  opacity: 0.8;
  z-index: 1;
}

.copy-btn:hover {
  background-color: var(--sapBrandColor);
  color: var(--sapBaseColor);
  opacity: 1;
  transform: scale(1.05);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  transition: opacity 0.2s ease;
}

.copy-btn.copied {
  background-color: var(--sapPositiveColor);
  border-color: var(--sapPositiveColor);
  color: var(--sapBaseColor);
}

.copy-btn.copied:hover {
  background-color: var(--sapPositiveColor);
  color: var(--sapBaseColor);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: var(--sapFontHeader2Size);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .benefits-grid,
  .sample-projects-grid,
  .documentation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--sapFontHeader3Size);
  }
  
  .section-title {
    font-size: var(--sapFontHeader3Size);
  }
}