/* Custom styles for Flutter Fake Filler documentation */

:root {
  --theme-color: #0175C2;
  --theme-color-secondary: #42A5F5;
  --theme-color-tertiary: #E3F2FD;
}

/* Cover page styling */
.cover {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-secondary) 100%);
}

.cover h1 {
  color: white;
  font-size: 3.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cover p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
}

.cover .cover-main > p:last-child a {
  background: white;
  color: var(--theme-color);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cover .cover-main > p:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Sidebar styling */
.sidebar {
  background: #fafafa;
  border-right: 1px solid #eee;
}

.sidebar-nav > ul > li > a {
  color: #666;
  font-weight: 500;
}

.sidebar-nav > ul > li.active > a {
  color: var(--theme-color);
  font-weight: 600;
}

/* Content area */
.content {
  padding-top: 20px;
}

/* Code blocks */
pre[data-lang] {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

pre[data-lang]::before {
  background: var(--theme-color);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  position: relative;
  top: -1px;
}

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

table th {
  background: var(--theme-color-tertiary);
  color: var(--theme-color);
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
}

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

/* Alerts and callouts */
.tip {
  background: #e8f5e8;
  border-left: 4px solid #4caf50;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.danger {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--theme-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: var(--theme-color-secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--theme-color);
  border: 2px solid var(--theme-color);
}

.btn-outline:hover {
  background: var(--theme-color);
  color: white;
}

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

.feature-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-card h3 {
  color: var(--theme-color);
  margin-top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .cover h1 {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Search box styling */
.search {
  border-bottom: 1px solid #eee;
  padding: 20px;
}

.search input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Navigation */
.app-nav {
  background: white;
  border-bottom: 1px solid #eee;
}

.app-nav li a {
  color: var(--theme-color);
  font-weight: 500;
}

.app-nav li a:hover {
  color: var(--theme-color-secondary);
}

/* Footer */
.docsify-pagination-container {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 40px;
}

/* Copy code button */
.docsify-copy-code-button {
  background: var(--theme-color);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
}

.docsify-copy-code-button:hover {
  background: var(--theme-color-secondary);
}

/* Zoom plugin */
.medium-zoom-overlay {
  background: rgba(0,0,0,0.8);
}

/* Print styles */
@media print {
  .cover,
  .sidebar,
  .app-nav,
  .docsify-copy-code-button {
    display: none;
  }
  
  .content {
    margin: 0;
    padding: 0;
  }
}
