/* style.css — Custom Cursor Website */

:root {
  --primary: #4f6ef7;
  --primary-hover: #3b5de7;
  --primary-light: #eef1ff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --bg: #f0f2f5;
  --card-bg: #fff;
  --border: #e2e6ea;
  --success: #38a169;
  --radius: 12px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== Header ========== */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
  text-decoration: none;
}

.lang-switcher {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s;
}

.lang-current:hover {
  border-color: var(--primary);
}

.lang-current::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  margin-left: 2px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 120px;
  z-index: 200;
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: background 0.1s;
}

.lang-option:hover {
  background: var(--bg);
  color: var(--text) !important;
  text-decoration: none !important;
}

.lang-option.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #4f6ef7 0%, #7b4dca 100%);
  color: white;
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* ========== Sections ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  font-size: 14px;
  font-weight: 500;
}

/* ========== Pack Cards ========== */
.pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.pack-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pack-card-preview {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: repeating-conic-gradient(#f5f5f5 0% 25%, white 0% 50%) 50% / 16px 16px;
  padding: 16px;
}

.pack-card-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pack-card-info {
  padding: 12px 16px;
}

.pack-card-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.pack-card-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.pack-card-actions {
  padding: 0 16px 12px;
}

.btn-add {
  width: 100%;
  padding: 8px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-add:hover {
  background: var(--primary);
  color: white;
}

.btn-add.added {
  background: var(--success);
  border-color: var(--success);
  color: white;
  cursor: default;
}

.btn-add.no-ext {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

/* ========== Collection Cards ========== */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.collection-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-decoration: none;
}

.collection-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.collection-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.collection-card .pack-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== Category Filter ========== */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-chip {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: capitalize;
}

.cat-chip:hover {
  border-color: var(--primary);
}

.cat-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== Pack Detail ========== */
.pack-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .pack-detail { grid-template-columns: 1fr; }
}

.pack-detail-preview {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 300px;
  background-image: repeating-conic-gradient(#f5f5f5 0% 25%, white 0% 50%);
  background-size: 20px 20px;
}

.pack-detail-preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.pack-detail-preview .cursor-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pack-detail-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pack-detail-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pack-detail-meta .badge {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.btn-add-large {
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  width: 100%;
  max-width: 300px;
}

.btn-add-large:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-add-large.added {
  background: var(--success);
}

/* ========== How to Use ========== */
.how-to-use {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

.how-to-use h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Loading / Empty ========== */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .pack-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 13px; }
}
