/* Main Styles for Starpower Distributor Website */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --accent-color: #0dcaf0;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Navigation */
.navbar-brand svg {
  fill: currentColor;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff20' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.2;
}

.tech-abstract svg {
  width: 100%;
  height: auto;
  max-height: 300px;
}

/* Cards */
.card {
  border: 1px solid rgba(0, 0, 0, 0.125);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.solution-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.solution-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.icon-wrapper svg {
  width: 40px;
  height: 40px;
}

/* Buttons */
.btn {
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

/* Breadcrumbs */
.breadcrumb {
  background-color: var(--light-color);
  border-radius: 0;
  padding: 1rem 0;
  margin-bottom: 0;
}

/* Detail Pages */
.detail-header {
  background-color: var(--light-color);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-weight: 700;
}

.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.spec-table th {
  width: 30%;
  background-color: rgba(0, 0, 0, 0.03);
}

/* FAQ Section */
.faq-item {
  border-bottom: 1px solid #dee2e6;
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
}

.faq-question.collapsed::after {
  content: "+";
}

.faq-question:not(.collapsed)::after {
  content: "-";
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  margin: 3rem 0;
  border-radius: 8px;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-banner {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-banner .btn {
    margin: 0.5rem;
  }
  
  .detail-header h1 {
    font-size: 1.75rem;
  }
  
  .tech-abstract svg {
    max-height: 200px;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

/* Additional Styles */
.detail-header h1,
.detail-header h2,
.detail-header h3 {
  margin-bottom: 1rem;
}

.product-card h3,
.solution-card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin-bottom: 0;
}

.alert h4,
.card-header h3,
.card-header h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.table th {
  font-weight: 600;
}

.list-group-item-action:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Badge Styles */
.badge {
  font-weight: 500;
}

/* Form Elements */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Navigation Active State */
.navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 500;
}

/* Card Headers */
.card-header {
  background-color: rgba(13, 110, 253, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* List Group Items */
.list-group-item {
  border-color: rgba(0, 0, 0, 0.125);
}

/* Alert Styles */
.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.2);
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
}

/* Table Styles */
.table > :not(caption) > * > * {
  padding: 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(0, 0, 0, 0.02);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

.lead {
  font-weight: 400;
}

/* Spacing */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb,
  .cta-section,
  footer {
    display: none;
  }
  
  .detail-header {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
}