/* Product Page Styles */

/* Product Hero Section */
.product-hero {
  padding: 120px 0 80px;
  color: white;
  text-align: center;
}

.product-hero .hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-hero .hero-content h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
}

.product-hero .hero-content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Product Page Layout */
.product-page {
  padding: 60px 0;
  min-height: calc(100vh - 300px);
}

.product-page .container {
  display: flex;
  gap: 40px;
}

/* Sidebar Navigation */
.product-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-nav {
  background: var(--gray-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar-nav .nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-dark);
  border-radius: 6px;
  margin-bottom: 4px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  background: white;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
  background: var(--primary-color);
  color: white;
  border-left-color: var(--accent-color);
}

/* Product Content */
.product-content {
  flex: 1;
}

.product-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.product-section:last-child {
  border-bottom: none;
}

.product-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.product-section .lead {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

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

.feature-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid var(--border-color);
}

/* Screenshot Section */
.screenshot-section {
  margin-top: 40px;
}

.screenshot-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.screenshot-large {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

.info-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-color);
}

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

.info-box ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.info-box ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.info-box.highlight {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-left-color: var(--accent-color);
}

.info-box.highlight h4 {
  color: var(--accent-color);
}

.info-box.highlight ul li:before {
  color: var(--accent-color);
}

.info-link {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Account Types */
.account-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.account-type-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.account-type-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.account-type-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.account-type-card ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.account-type-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}

.account-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Log Features */
.log-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.log-feature {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.log-feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.log-feature p {
  color: #666;
  margin-bottom: 16px;
}

.log-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.log-details {
  margin-top: 40px;
}

.log-details h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Extended Features */
.extended-feature {
  margin-bottom: 40px;
}

.extended-feature h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.extended-feature p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.extended-feature ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.extended-feature ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.extended-feature ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
}

.extended-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.count-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.count-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.custom-cmd-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.custom-cmd-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Schedule Features */
.schedule-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.schedule-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.schedule-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.schedule-item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.schedule-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* API Section */
.api-section {
  margin-top: 40px;
}

.api-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.api-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
}

.api-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.api-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.api-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Itinerary Section */
.itinerary-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.itinerary-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.feature-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Evaluation Features */
.evaluation-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.evaluation-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent-color);
}

.evaluation-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.evaluation-card p {
  color: #666;
  line-height: 1.6;
}

.api-demo {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 30px 0;
}

.api-demo h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.api-demo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.contact-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.contact-box h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.contact-box p {
  color: #666;
  margin-bottom: 20px;
}

/* API Docs */
.api-docs {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.api-info {
  margin-bottom: 30px;
}

.api-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.api-detail {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.api-detail:last-child {
  border-bottom: none;
}

.api-detail code {
  background: var(--gray-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary-color);
}

.api-example {
  margin: 30px 0;
}

.api-example h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.api-example-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.json-example {
  margin: 30px 0;
}

.json-example h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.code-block {
  background: #1a1a2e;
  color: #a8b2d1;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  color: inherit;
}

/* Query Features */
.query-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.query-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.query-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #00b894, #00a085);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 16px;
}

.query-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.query-card p {
  color: #666;
  font-size: 14px;
}

.api-usage {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 30px 0;
}

.api-usage h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

/* Rules Features */
.rules-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.rule-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.rule-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.rule-item p {
  color: #666;
  margin-bottom: 16px;
}

.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.rule-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Integration Section */
.integration-section {
  margin-top: 40px;
}

.integration-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.integration-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.integration-box {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 150px;
}

.integration-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.integration-box p {
  color: #666;
  font-size: 14px;
}

.integration-box.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.integration-box.active h4,
.integration-box.active p {
  color: white;
}

.integration-arrow {
  font-size: 32px;
  color: var(--primary-color);
  font-weight: bold;
}

.integration-note {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-page .container {
    flex-direction: column;
  }

  .product-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }

  .sidebar-nav .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .product-hero .hero-content h1 {
    font-size: 36px;
  }

  .product-hero .hero-content h2 {
    font-size: 22px;
  }

  .product-hero .hero-content p {
    font-size: 16px;
  }

  .product-section h2 {
    font-size: 26px;
  }

  .feature-grid,
  .account-types,
  .schedule-features,
  .api-pair,
  .detail-images,
  .query-features,
  .rules-features {
    grid-template-columns: 1fr;
  }

  .integration-diagram {
    flex-direction: column;
  }

  .integration-arrow {
    transform: rotate(90deg);
  }
}
