/* Slug Page Styles */

/* Additional styles for the dynamic broker section */
.brokers-section {
  margin: 3rem 0;
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-radius: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

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

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

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.company-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.company-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.placeholder-content svg {
  opacity: 0.9;
}

.placeholder-content span {
  font-size: 0.875rem;
  font-weight: 500;
}

.company-content {
  padding: 1.5rem;
}

.company-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.company-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.company-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Loading and Error States */
.loading-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-content {
  max-width: 400px;
  color: #dc2626;
}

.error-content svg {
  margin-bottom: 1rem;
  color: #dc2626;
}

.retry-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background: var(--secondary-color);
}

/* Modern Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.header-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.header-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Animations */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Content Layout */
.content-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-bottom: 3rem;
}

.content-article {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.content-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.content-body h1, .content-body h2, .content-body h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.content-body h1 { font-size: 2rem; }
.content-body h2 { font-size: 1.75rem; }
.content-body h3 { font-size: 1.5rem; }

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body ul, .content-body ol {
  margin: 1.5rem 0;
  padding-right: 2rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.content-body a:hover {
  border-bottom-color: var(--primary-color);
}

.content-body blockquote {
  background: var(--bg-secondary);
  border-right: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 2rem;
}

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

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.75rem;
  background: var(--bg-secondary);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-right: 2.5rem;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  right: 0.75rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }

  .header-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .content-article {
    padding: 2rem;
  }

  .content-body {
    font-size: 1rem;
  }
  
  .sidebar-card {
    padding: 1.5rem;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.5rem 0.5rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }

  .content-article {
    padding: 1.5rem;
  }

  .sidebar-card {
    padding: 1rem;
  }

  .meta-item {
    font-size: 0.8rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}
