/* Admin Portal Specific Styles */

.adminportal-main {
  padding-top: 70px;
  min-height: 100vh;
}

/* Admin API Documentation Styles */
.api-documentation {
  padding: 4rem 0;
  background: #f8fafc;
  margin: 4rem 0;
}

.api-features {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.api-category {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.api-category h3 {
  color: #1a202c;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid #4299e1;
}

.endpoint-method {
  background: #4299e1;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 50px;
  text-align: center;
}

.endpoint-path {
  font-family: 'Courier New', monospace;
  color: #2d3748;
  font-weight: 600;
  flex: 1;
  min-width: 300px;
}

.endpoint-desc {
  color: #718096;
  font-size: 0.95rem;
  flex: 2;
}

.api-highlight {
  background: #edf2f7;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.api-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.api-highlight li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.api-highlight li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: bold;
}

.api-authentication {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.api-authentication h3 {
  color: #1a202c;
  margin-bottom: 1rem;
}

.api-authentication pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 1rem;
}

.api-authentication code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin-bottom: 6rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Overview */
.features-overview {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-details {
  list-style: none;
  padding: 0;
}

.feature-details li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Portal Preview Section */
.portal-preview {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.preview-content {
  margin-top: 3rem;
}

.preview-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.preview-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.preview-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.preview-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.preview-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.preview-text p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Screenshots Section */
.screenshots-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.screenshot-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.screenshot-image {
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.screenshot-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-image img {
  transform: scale(1.05);
}

/* Screenshot Mockups */
.screenshot-mockup {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  min-height: 250px;
}

.mockup-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.mockup-status {
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 500;
}

.mockup-content {
  padding: 1.5rem;
}

/* Dashboard Mockup */
.dashboard-mockup .mockup-chart-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mockup-chart.large {
  flex: 2;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  position: relative;
}

.mockup-chart.small {
  flex: 1;
  height: 40px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 4px;
  opacity: 0.8;
}

.mockup-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Groups Mockup */
.mockup-table {
  width: 100%;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.table-row.header {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 0.75rem;
  margin: -0.25rem -0.25rem 0.5rem;
  border-radius: 4px;
}

.status-active {
  color: var(--success-color);
  font-weight: 500;
}

/* Routing Mockup */
.routing-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.flow-node {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.flow-node.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.flow-node.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.flow-node.fallback {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.flow-arrow {
  color: var(--text-light);
  font-weight: bold;
}

.routing-config {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 6px;
}

.config-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.config-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* Security Mockup */
.security-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid;
}

.alert-item.blocked {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.alert-item.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
}

.alert-item.info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

.alert-icon {
  font-size: 1.1rem;
}

.alert-text {
  flex: 1;
  font-size: 0.85rem;
}

.alert-time {
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Analytics Mockup */
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.summary-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.provider-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.provider-item span:first-child {
  min-width: 60px;
  font-weight: 500;
}

.usage-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

/* Config Mockup */
.config-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-group {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 6px;
}

.config-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.config-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.toggle.enabled {
  color: var(--success-color);
  font-size: 1.2rem;
}

.rate-settings {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.screenshot-placeholder::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  opacity: 0.3;
}

.screenshot-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.screenshot-placeholder h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.screenshot-placeholder p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 250px;
}

.screenshot-caption {
  padding: 2rem;
}

.screenshot-caption h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.screenshot-caption p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.screenshots-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.screenshots-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.cta-section .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cta-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-note p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .preview-features {
    grid-template-columns: 1fr;
  }
  
  .preview-feature {
    flex-direction: column;
    text-align: center;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .screenshot-placeholder {
    padding: 3rem 1.5rem;
    min-height: 150px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .features-overview,
  .portal-preview,
  .screenshots-section,
  .benefits-section {
    padding: 4rem 0;
  }
  
  .feature-card,
  .benefit-card {
    padding: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}