/* Eu-Ronique Documentation Theme */

:root {
  /* Eu-Ronique brand colors */
  --primary-color: #ff6b35;        /* Orange accent */
  --primary-dark: #e55a2b;         /* Darker orange */
  --primary-light: #ff8c5a;        /* Lighter orange */
  --secondary-color: #2c3e50;      /* Dark blue-gray */
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --code-background: #f5f5f5;
  --link-color: #ff6b35;
  --link-hover: #e55a2b;
}

/* Global styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

/* Header/Navigation */
.navbar {
  background-color: var(--secondary-color) !important;
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand:hover {
  color: var(--primary-light) !important;
}

/* Logo styling */
.navbar-brand img,
#logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img,
.navbar-brand:hover #logo {
  transform: scale(1.05);
}

.navbar-nav .nav-link,
.navbar-nav li a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
  padding: 15px 12px;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav li a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav li {
  list-style: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.sidenav {
  background-color: var(--background-alt);
  border-right: 1px solid var(--border-color);
}

.toc .nav > li > a {
  color: var(--text-primary);
  padding: 8px 16px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.toc .nav > li > a:hover {
  background-color: rgba(255, 107, 53, 0.1);
  border-left-color: var(--primary-color);
  color: var(--primary-dark);
}

.toc .nav > li.active > a {
  background-color: rgba(255, 107, 53, 0.15);
  border-left-color: var(--primary-color);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Main content */
.article {
  max-width: 900px;
  padding: 2rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  font-size: 2.5rem;
}

h2 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

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

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

/* Code blocks */
code {
  background-color: var(--code-background);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--code-background);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: var(--text-primary);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

table thead {
  background-color: var(--secondary-color);
  color: #ffffff;
}

table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.05);
}

/* Buttons and badges */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* API documentation specific */
.inheritance {
  background-color: var(--background-alt);
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
  margin: 1rem 0;
}

.inheritance h5 {
  color: var(--primary-dark);
  margin-top: 0;
}

/* Method signatures */
.lang-csharp, .lang-vb {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* Namespace/Class headers */
.level0.summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--background-alt);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

/* Examples section */
#examples {
  background-color: rgba(255, 107, 53, 0.05);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  margin: 1.5rem 0;
}

/* Remarks section */
.markdown.level1.remarks {
  background-color: var(--background-alt);
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
  margin: 1rem 0;
}

/* Search box */
#search-query {
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

#search-query:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color);
}

footer .container {
  max-width: 1200px;
}

footer .row {
  display: flex;
  align-items: center;
}

footer .pull-left,
footer .pull-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .pull-right {
  justify-content: flex-end;
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

footer small {
  font-size: 0.85rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  
  footer .pull-left,
  footer .pull-right {
    justify-content: center;
    margin: 0.5rem 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--primary-color);
}

/* Alert boxes */
.alert-info {
  background-color: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--primary-color);
  color: var(--text-primary);
}

/* Scrollbar styling (webkit browsers) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  .navbar, .sidenav, footer {
    display: none;
  }
  
  .article {
    max-width: 100%;
  }
}
