/* ===== Book Thief Product Page Styles (Naver-style) ===== */

/* Hero */
.bt-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  min-height: auto;
}

.bt-hero-bg { display: none; }

.bt-hero-content {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
}

.bt-hero-icon img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bt-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.bt-hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.bt-hero-tagline {
  font-size: 18px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.bt-hero-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  font-weight: 400;
}

.bt-hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bt-hero-buttons .store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 42px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.bt-hero-buttons .store-btn:hover {
  background: #000;
  box-shadow: var(--shadow);
}

.bt-hero-buttons .store-btn small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 0.7;
  line-height: 1.2;
}

.bt-hero-buttons .store-btn strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.bt-hero-buttons .store-btn svg {
  width: 20px;
  height: 20px;
}

.bt-apk-btn {
  background: var(--bg-page) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.bt-apk-btn:hover {
  background: #eaedf0 !important;
}

/* Features Grid */
.bt-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bt-feature-card {
  background: var(--bg-page);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.bt-feature-card:hover {
  border-color: #d0d3d6;
  box-shadow: var(--shadow);
}

.bt-feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--green);
}

.bt-feature-icon svg {
  width: 100%;
  height: 100%;
}

.bt-feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.bt-feature-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* Download Section */
.bt-download-section {
  background: var(--bg-page);
}

.bt-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.bt-download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
}

.bt-download-card:hover {
  border-color: #d0d3d6;
  box-shadow: var(--shadow);
}

.bt-download-card strong {
  font-size: 14px;
}

.bt-download-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Links Grid */
.bt-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bt-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.bt-link-card:hover {
  border-color: #d0d3d6;
  box-shadow: var(--shadow);
  color: var(--green);
}

.bt-link-card svg {
  flex-shrink: 0;
  color: var(--green);
}

/* Footer Info */
.bt-footer-info {
  margin: 12px 0;
  line-height: 1.8;
}

.bt-footer-info p {
  color: var(--text-muted);
  font-size: 12px;
}

.bt-footer-info a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.bt-footer-info a:hover {
  color: var(--green);
}

/* ===== Legal Page Styles ===== */
.bt-legal-page {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.bt-legal-page h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.bt-legal-page .bt-legal-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.bt-legal-page h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.bt-legal-page h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 6px;
}

.bt-legal-page p,
.bt-legal-page li {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.bt-legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.bt-legal-page .bt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.bt-legal-page .bt-back-link:hover {
  opacity: 0.8;
}

/* ===== Code Entry Page ===== */
.bt-code-form {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.bt-code-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.bt-code-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: var(--transition);
  outline: none;
}

.bt-code-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.1);
}

.bt-code-form button {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.bt-code-form button:hover {
  background: var(--green-dark);
}

.bt-code-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  display: none;
}

#result.success {
  display: block;
  background: var(--green-light);
  color: #0d6832;
  border: 1px solid #b8e6c8;
}

#result.error {
  display: block;
  background: #fff0f0;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* ===== Library Section ===== */
.bt-library-section {
  background: #fff;
}

.bt-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bt-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bt-filter-tab {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.bt-filter-tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.bt-filter-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.bt-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  min-width: 200px;
  transition: var(--transition);
}

.bt-search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.08);
}

.bt-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.bt-search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  color: var(--text);
}

/* Book Grid */
.bt-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bt-book-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.bt-book-card:hover {
  border-color: #d0d3d6;
  box-shadow: var(--shadow);
}

.bt-book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-page);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bt-book-card:hover .bt-book-cover img {
  transform: scale(1.03);
}

.bt-book-info {
  padding: 14px;
}

.bt-book-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-book-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bt-book-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-book-phrase {
  font-size: 11px;
  color: var(--green);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-load-more-wrap {
  text-align: center;
  margin-top: 28px;
  display: none;
}

.bt-no-results {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 48px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .bt-features-grid {
    grid-template-columns: 1fr;
  }

  .bt-download-grid {
    grid-template-columns: 1fr;
  }

  .bt-links-grid {
    grid-template-columns: 1fr;
  }

  .bt-code-form {
    padding: 24px 18px;
  }

  .bt-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bt-search-box {
    min-width: unset;
  }

  .bt-book-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .bt-book-info {
    padding: 10px;
  }

  .bt-book-title {
    font-size: 12px;
  }

  .bt-hero-content {
    padding: 48px 20px 40px;
  }

  .bt-hero h1 {
    font-size: 28px;
  }
}
