/* Screenshot Styles for Documentation Page */

/* Base screenshot styling */
.screenshot-base {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
  transition: all 0.3s ease;
}

/* Floating with Glow */
.screenshot-glow {
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(52, 144, 220, 0.3);
  border: 2px solid rgba(52, 144, 220, 0.2);
}

.screenshot-glow:hover {
  box-shadow: 0 0 30px rgba(52, 144, 220, 0.5);
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .screenshot-base {
    margin: 10px 0;
  }
}

/* Utility classes for different sizes */
.screenshot-small {
  max-width: 300px;
}

.screenshot-medium {
  max-width: 500px;
}

.screenshot-large {
  max-width: 700px;
}

.screenshot-full {
  max-width: 100%;
}

/* Alignment helpers */
.screenshot-left {
  margin-left: 0;
  margin-right: auto;
}

.screenshot-center {
  margin-left: auto;
  margin-right: auto;
}

/* Code Block Styles */
.code-block {
  margin: 20px 0;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f6f8fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e4e8;
}

.code-language {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-title {
  font-size: 13px;
  opacity: 0.9;
}

.code-content {
  margin: 0;
  padding: 16px;
  background-color: #ffffff;
  border: none;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #24292e;
  overflow-x: auto;
  white-space: pre;
}

.code-content code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  border: none;
}

/* Syntax highlighting for VBA */
.language-vba {
  color: #24292e;
}

/* Responsive code blocks */
@media (max-width: 768px) {
  .code-header {
    padding: 10px 12px;
    font-size: 13px;
  }

  .code-content {
    padding: 12px;
    font-size: 13px;
  }

  .code-language {
    font-size: 11px;
    padding: 3px 6px;
  }

  .code-title {
    font-size: 12px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .code-block {
    background-color: #0d1117;
    border-color: #30363d;
  }

  .code-content {
    background-color: #161b22;
    color: #c9d1d9;
  }

  .code-header {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  }
}
