@charset "utf-8";

/* ======================================================
   FEATURE DETAIL PAGE
====================================================== */

.page-feature-detail {
  background: #fcfcfc;
  padding-top: 80px; /* Header clearance */
}

/* Common Section Layout */
.detail-section {
  padding: 100px 0;
  background-color: #eeeeee;
}

.detail-section:nth-child(even) {
  background-color: #ddd;
}

.detail-section .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.detail-header {
  text-align: center;
  margin-bottom: 50px;
}

.detail-header h2 {
  font-size: 34px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  word-break: keep-all;
}

.detail-header p {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  max-width: 720px;
  margin: 0 auto;
  word-break: keep-all;
}

/* Mockup Browser Window */
.browser-mockup-wrapper {
  max-width: 860px;
  margin: 0 auto 40px;
}

.browser-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e4e6;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9.5;
}

/* Browser Title Bar */
.browser-header {
  background: #f1f3f5;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e4e6;
  user-select: none;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-nav-buttons {
  display: flex;
  gap: 16px;
  color: #868e96;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.browser-nav-btn {
  padding: 2px 6px;
  transition: color 0.2s;
}

.browser-nav-btn:hover {
  color: #343a40;
}

/* Browser Content / Screens */
.browser-content {
  flex: 1;
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
}

.screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
}

.screen-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.browser-content .mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dashboard Mockup Layout Elements */
.demo-dashboard {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 10px;
}

.demo-dashboard-title {
  font-size: 16px;
  font-weight: 700;
  color: #343a40;
}

.demo-dashboard-badge {
  font-size: 11px;
  padding: 4px 8px;
  background: #e3faf2;
  color: #0ca678;
  border-radius: 4px;
  font-weight: 600;
}

.demo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.demo-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.demo-card-label {
  font-size: 11px;
  color: #868e96;
  margin-bottom: 4px;
}

.demo-card-value {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
}

.demo-card-value.red { color: var(--red); }
.demo-card-value.green { color: #0ca678; }

.demo-table-wrapper {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  flex: 1;
  overflow-y: auto;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.demo-table th {
  background: #f1f3f5;
  color: #495057;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #dee2e6;
}

.demo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
}

/* Alert center screen styling */
.demo-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-left: 4px solid var(--red);
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.demo-alert-item.warning {
  border-left-color: #ff922b;
}

.demo-alert-item.info {
  border-left-color: #339af0;
}

.demo-alert-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 2px 6px;
  border-radius: 3px;
}

.demo-alert-item.warning .demo-alert-badge {
  background: #ff922b;
}

.demo-alert-item.info .demo-alert-badge {
  background: #339af0;
}

.demo-alert-content {
  flex: 1;
  font-size: 12px;
  color: #343a40;
}

.demo-alert-time {
  font-size: 11px;
  color: #adb5bd;
}

/* Map Screen styling */
.demo-map-area {
  flex: 1;
  position: relative;
  background-color: #e9ecef;
  background-image: radial-gradient(#ced4da 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}

.demo-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 2px;
  background: #dee2e6;
}

.demo-map-cell {
  background: #e9ecef;
  position: relative;
  overflow: hidden;
}

.demo-map-title {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  z-index: 5;
}

.demo-map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.demo-map-pin .dot {
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(207,0,11,0.5);
  animation: pulse-red 2s infinite;
}

.demo-map-pin.green .dot {
  background: #0ca678;
  box-shadow: 0 0 6px rgba(12,166,120,0.5);
  animation: pulse-green 2s infinite;
}

.demo-map-pin .label {
  background: #212529;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}

/* Circular chart, battery styling */
.demo-score-center {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
}

.demo-radial-score {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-radial-score svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.demo-radial-score circle {
  fill: none;
  stroke-width: 12px;
}

.demo-radial-score circle.bg {
  stroke: #e9ecef;
}

.demo-radial-score circle.val {
  stroke: #0ca678;
  stroke-dasharray: 440;
  stroke-dashoffset: 44; /* 90% score */
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.demo-radial-text {
  position: absolute;
  text-align: center;
}

.demo-radial-number {
  font-size: 32px;
  font-weight: 800;
  color: #212529;
}

.demo-radial-label {
  font-size: 11px;
  color: #868e96;
}

.demo-score-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-bar-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #495057;
}

.demo-bar-track {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.demo-bar-fill {
  height: 100%;
  background: #0ca678;
  border-radius: 4px;
}

.demo-bar-fill.orange { background: #fd7e14; }
.demo-bar-fill.blue { background: #339af0; }

/* Carbon screen styling */
.demo-carbon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  flex: 1;
}

.demo-carbon-box {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-carbon-title {
  font-size: 13px;
  font-weight: 700;
  color: #495057;
  margin-bottom: 8px;
}

.demo-carbon-tree-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ebfbee;
  border-radius: 8px;
  color: #2b8a3e;
}

.demo-carbon-tree-icon {
  font-size: 32px;
}

/* EV Battery screen styling */
.demo-battery-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.demo-battery-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-battery-level {
  font-size: 48px;
  font-weight: 800;
  color: #0ca678;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.demo-battery-level span {
  font-size: 20px;
  font-weight: 600;
  color: #868e96;
}

.demo-battery-indicator {
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.demo-battery-fill {
  height: 100%;
  background: linear-gradient(90deg, #12b886, #0ca678);
  border-radius: 6px;
}

/* CSS Keyframe animations for mockups */
@keyframes pulse-red {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-green {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Cards Grid Area below mockups */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.cards-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: #fff;
  border: 1px solid #e6ebef;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #d1d9e0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.feature-card.active {
  border-color: var(--red);
  background: #fffdfd;
  box-shadow: 0 12px 24px rgba(207, 0, 11, 0.06);
}

.card-icon {
  flex: 0 0 40px;
  height: 40px;
  background: #f1f3f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.feature-card:hover .card-icon {
  background: #e9ecef;
}

.feature-card.active .card-icon {
  background: #fff0f1;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #868e96;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s;
}

.feature-card.active .card-icon svg {
  stroke: var(--red);
}

.card-text {
  flex: 1;
}

.card-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.feature-card.active .card-text strong {
  color: var(--red);
}

.card-text p {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  word-break: keep-all;
}


/* ======================================================
   RESPONSIVENESS (MEDIA QUERIES)
====================================================== */

@media (max-width: 991px) {
  .detail-section {
    padding: 70px 0;
  }
  
  .detail-header h2 {
    font-size: 28px;
  }
  
  .browser-window {
    aspect-ratio: 16 / 10;
  }
  
  .cards-grid {
    gap: 16px;
  }
  
  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-feature-detail {
    padding-top: 50px;
  }
  
  .detail-section {
    padding: 50px 0;
  }
  
  .detail-header {
    margin-bottom: 30px;
  }
  
  .detail-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .detail-header p {
    font-size: 14px;
  }
  
  .browser-window {
    aspect-ratio: 16 / 11;
  }
  
  .cards-grid, .cards-grid.three-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature-card {
    padding: 16px;
  }
  
  .demo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .demo-radial-score {
    width: 100px;
    height: 100px;
  }
  
  .demo-radial-number {
    font-size: 22px;
  }
  
  .demo-carbon-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-battery-container {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   하단 목록 링크 바 (블로그 상세 페이지와 동일한 일관적 스타일링)
====================================================== */
.page-feature-detail .detail-footer-bar {
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬 */
  align-items: center;
  margin-top: 50px;
  padding: 30px 20px 60px;
  border-top: 1px solid #cbd5e1; /* 구분선 */
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.page-feature-detail .btn-back-list {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.page-feature-detail .btn-back-list svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.75;
  position: relative;
  top: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-feature-detail .btn-back-list:hover svg {
  opacity: 1.0;
  transform: translateX(-2px);
}

.page-feature-detail .btn-back-list:hover {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 4px;
}
