/* User-friendly styling for docs.vros.cat */

/* Larger, more readable fonts */
:root {
  --md-text-font-size: 1.1rem;
  --md-code-font-size: 0.95rem;
}

/* Hero section styling */
.md-hero {
  background: linear-gradient(135deg, #6A1B9A 0%, #4A148C 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.md-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.md-hero .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Call-to-action buttons */
.md-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  margin: 0.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.md-button--primary {
  background: #00BCD4;
  color: white;
}

.md-button--primary:hover {
  background: #00ACC1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.md-button--secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.md-button--secondary:hover {
  background: white;
  color: #6A1B9A;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-card h3 {
  color: var(--md-primary-fg-color);
  margin-top: 0;
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Screenshots and videos */
.screenshot {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin: 2rem 0;
  max-width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 2rem 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Installation steps */
.install-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.install-steps li {
  margin: 2rem 0;
  padding-left: 3rem;
  position: relative;
  counter-increment: step-counter;
}

.install-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--md-primary-fg-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Compatibility table */
.compatibility-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.compatibility-table table {
  width: 100%;
  border-collapse: collapse;
}

.compatibility-table th {
  background: var(--md-primary-fg-color);
  color: white;
  padding: 1rem;
  text-align: left;
}

.compatibility-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.compatibility-table .supported {
  color: #4CAF50;
  font-weight: bold;
}

.compatibility-table .unsupported {
  color: #F44336;
  font-weight: bold;
}

/* Plugin marketplace */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.plugin-card {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.plugin-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.plugin-card-content {
  padding: 1.5rem;
}

.plugin-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.plugin-rating {
  color: #FFC107;
  margin-bottom: 0.5rem;
}

.plugin-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
}

/* FAQ styling */
.faq-item {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--md-code-bg-color);
  border-radius: 8px;
}

.faq-question {
  font-weight: 600;
  color: var(--md-primary-fg-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Developer portal callout */
.developer-callout {
  background: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

.developer-callout h3 {
  color: white;
  margin-top: 0;
}

.developer-callout .md-button {
  background: white;
  color: #3F51B5;
}

.developer-callout .md-button:hover {
  background: #f5f5f5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .md-hero h1 {
    font-size: 2rem;
  }
  
  .md-hero .subtitle {
    font-size: 1.2rem;
  }
  
  .feature-grid,
  .plugin-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better spacing for content */
.md-content {
  max-width: 1200px;
  margin: 0 auto;
}

.md-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.md-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Announcement banner */
.md-announce {
  background: linear-gradient(90deg, #00BCD4 0%, #00ACC1 100%);
  color: white;
}

.md-announce a {
  color: white;
  text-decoration: underline;
}

/* Search highlighting */
.md-search-result mark {
  background-color: #FFEB3B;
  color: inherit;
}