/* TRACE Documentation Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --trace-orange: #FF4D00;
  --trace-dark: #1a1a1a;
  --trace-gray: #f5f5f5;
  --trace-text: #333;
  --trace-light-gray: #e0e0e0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--trace-text);
  background: #fff;
}

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

/* Header */
.page-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0 2.5rem 0;
  text-align: center;
  border-bottom: 3px solid var(--trace-orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-logo {
  margin-bottom: 1rem;
}

.header-logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.project-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--trace-orange);
}

.project-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0;
}

/* Main Content */
.main-content {
  padding: 3rem 0;
  min-height: 60vh;
}

/* Logo Container */
.logo-container {
  text-align: center;
  margin: 2rem 0 3rem 0;
  padding: 2rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 12px;
}

.logo-container img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 77, 0, 0.1));
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--trace-dark);
  margin: 2rem 0 1rem 0;
  border-bottom: 3px solid var(--trace-orange);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--trace-orange);
  margin: 2.5rem 0 1rem 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--trace-dark);
  margin: 2rem 0 0.8rem 0;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

a {
  color: var(--trace-orange);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 2px solid var(--trace-light-gray);
  margin: 2rem 0;
}

/* Section Navigation Cards */
.section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.section-nav-item {
  background: #fff;
  border: 2px solid var(--trace-light-gray);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-nav-item:hover {
  border-color: var(--trace-orange);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.2);
  transform: translateY(-4px);
  text-decoration: none;
}

.section-nav-item h3 {
  color: var(--trace-orange);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.section-nav-item p {
  color: var(--trace-text);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Breadcrumb Navigation */
.nav-breadcrumb {
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #666;
}

.nav-breadcrumb a {
  color: var(--trace-orange);
  text-decoration: none;
  font-weight: 500;
}

.nav-breadcrumb a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1.5rem 2rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Code Blocks */
code {
  background: var(--trace-gray);
  color: var(--trace-orange);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Consolas', monospace;
}

pre {
  background: var(--trace-dark);
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #2a2a2a;
}

pre code {
  background: transparent;
  color: #fff;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th {
  background: var(--trace-orange);
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border: 1px solid var(--trace-light-gray);
}

table tr:nth-child(even) {
  background: #f9f9f9;
}

table tr:hover {
  background: #f5f5f5;
}

/* Footer */
.site-footer {
  background: var(--trace-gray);
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--trace-orange);
  text-align: center;
  color: #666;
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: var(--trace-orange);
  font-weight: 500;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .page-header {
    padding: 2rem 0;
  }

  .header-logo img {
    height: 45px;
  }

  .project-name {
    font-size: 1.75rem;
  }

  .project-tagline {
    font-size: 0.95rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .logo-container img {
    max-width: 200px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-nav-item {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .header-logo img {
    height: 40px;
  }

  .project-name {
    font-size: 1.5rem;
  }

  .project-tagline {
    font-size: 0.9rem;
  }

  .logo-container {
    padding: 1rem 0;
  }

  .section-nav-item {
    padding: 1.25rem;
  }
}
