/* Custom CSS for Mattermost PDF Dekont Parser Plugin Documentation */

/* Root variables */
:root {
  --primary-color: #1e74fd;
  --secondary-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --border-color: #dee2e6;
  --text-muted: #6c757d;
  --code-bg: #f1f3f4;
  --gradient-primary: linear-gradient(135deg, #1e74fd 0%, #0056b3 100%);
}

/* Typography improvements */
.fs-9 {
  font-size: 3rem !important;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.fs-6 {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.fw-300 {
  font-weight: 300;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 116, 253, 0.3);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.fs-5 {
  font-size: 1.125rem;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

/* Navigation improvements */
.breadcrumb {
  background: var(--light-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li {
  font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Page navigation */
.page-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  padding: 0.75rem 1.25rem;
  background: var(--light-color);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Table improvements */
table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

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

tr:nth-child(even) td {
  background: var(--light-color);
}

/* Code blocks */
code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--dark-color);
}

pre {
  background: var(--dark-color);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-supported {
  background: var(--secondary-color);
  color: white;
}

.status-progress {
  background: var(--warning-color);
  color: var(--dark-color);
}

.status-planned {
  background: var(--border-color);
  color: var(--text-muted);
}

/* Alert boxes */
.alert {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.alert-info {
  background: #e7f3ff;
  border-color: var(--primary-color);
  color: #004085;
}

.alert-success {
  background: #d4edda;
  border-color: var(--secondary-color);
  color: #155724;
}

.alert-warning {
  background: #fff3cd;
  border-color: var(--warning-color);
  color: #856404;
}

.alert-danger {
  background: #f8d7da;
  border-color: var(--danger-color);
  color: #721c24;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(30, 116, 253, 0.4);
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* Responsive design */
@media (max-width: 768px) {
  .fs-9 {
    font-size: 2rem !important;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 0.875rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
}

/* Syntax highlighting improvements */
.highlight {
  background: var(--dark-color);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.highlight pre {
  margin: 0;
  background: transparent;
}

/* Custom header styling */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-weight: 700;
  color: var(--primary-color) !important;
}

.site-nav .page-link {
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.site-nav .page-link:hover {
  color: var(--primary-color);
}

/* Footer styling */
.site-footer {
  background: var(--dark-color);
  color: white;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--primary-color);
}

.site-footer a:hover {
  color: white;
}

/* Emoji and icon styling */
.emoji {
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
}

/* Print styles */
@media print {
  #back-to-top,
  .page-nav,
  .breadcrumb {
    display: none;
  }
  
  .btn {
    border: 1px solid var(--dark-color) !important;
    color: var(--dark-color) !important;
    background: transparent !important;
  }
}
