/* ===== ForQua Demo - Custom Styles ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --card-shadow: 0 4px 24px rgba(0,0,0,.08);
  --card-hover-shadow: 0 12px 40px rgba(79,70,229,.18);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.65;
}

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-600 { font-weight: 600; }

/* ===== NAVBAR ===== */
#mainNav {
  background: linear-gradient(135deg, var(--dark) 0%, #2d3748 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  padding: .8rem 0;
}
#mainNav .navbar-brand span { font-size: 1.35rem; color: #fff; letter-spacing: -.5px; }
#mainNav .nav-link { color: rgba(255,255,255,.82) !important; font-size: .9rem; font-weight: 500; transition: color var(--transition); padding: .5rem .9rem; }
#mainNav .nav-link:hover { color: #fff !important; }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: .35rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.7); letter-spacing: 1px; text-transform: uppercase; }

/* ===== SECTIONS ===== */
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .5rem; }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.bg-light-section { background: var(--light-bg); }

/* ===== CATEGORY CARDS ===== */
.category-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); }
.category-card-inner {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
}
.category-icon-wrap {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: var(--primary);
}
.category-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  background-size: cover; background-position: center;
  margin: 0 auto 1rem;
}
.category-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0 0 .25rem; }
.category-count { font-size: .8rem; color: var(--gray); }

/* ===== THEME CARDS ===== */
.theme-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaf0;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); }
.theme-card-img-link { display: block; position: relative; overflow: hidden; height: 210px; background: var(--light-bg); }
.theme-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.theme-card-img-link:hover .theme-card-img { transform: scale(1.04); }
.theme-card-img-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.theme-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--primary);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 50px;
  letter-spacing: .5px;
}
.featured-badge { background: var(--warning); color: var(--dark); }
.theme-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.theme-category-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  padding: .2rem .6rem; border-radius: 50px; margin-bottom: .5rem;
}
.theme-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.theme-card-title a { color: var(--dark); text-decoration: none; }
.theme-card-title a:hover { color: var(--primary); }
.theme-card-desc { font-size: .87rem; color: var(--gray); line-height: 1.55; flex: 1; }
.theme-card-actions { display: flex; gap: .5rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .5rem; }
.cta-sub { font-size: 1rem; opacity: .85; max-width: 500px; margin: 0 auto; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer h5, .footer h6 { color: #fff; }
.footer hr { border-color: rgba(255,255,255,.1); }
.footer-link { color: rgba(255,255,255,.65); text-decoration: none; transition: color var(--transition); }
.footer-link:hover { color: var(--secondary); }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-size: .85rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); color: #fff; }

/* ===== PAGE HERO (small) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #334155 100%);
  color: #fff;
  padding: 2.5rem 0;
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.4); }
.page-hero-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.page-hero-sub { color: rgba(255,255,255,.75); font-size: 1rem; }
.category-hero-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

/* ===== THEME DETAIL ===== */
.gallery-main-img { max-height: 460px; object-fit: cover; width: 100%; }
.gallery-thumbnails { display: flex; gap: .5rem; flex-wrap: wrap; padding: .5rem 0; }
.gallery-thumb { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; border: 2px solid transparent; transition: all var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--primary); }
.theme-no-image { background: var(--light-bg); height: 280px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.theme-tabs .nav-link { font-weight: 600; color: var(--gray); border: none; border-bottom: 2px solid transparent; }
.theme-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.theme-tab-content { min-height: 300px; }
.theme-description { font-size: .97rem; line-height: 1.8; color: #374151; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .5rem 0; border-bottom: 1px solid #f1f5f9; font-size: .95rem; }
.feature-list li:last-child { border-bottom: none; }

/* Demo Access Box */
.demo-access-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); overflow: hidden; }
.demo-access-header { background: #16a34a; color: #fff; padding: .9rem 1.25rem; font-weight: 700; font-size: .95rem; }
.demo-access-body { padding: 1.25rem; }
.demo-info-row { display: flex; align-items: flex-start; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #d1fae5; }
.demo-info-row:last-child { border-bottom: none; }
.demo-info-label { min-width: 130px; font-size: .85rem; font-weight: 600; color: var(--gray); }
.demo-info-value { flex: 1; }
.demo-url-link { color: var(--primary); font-size: .9rem; word-break: break-all; }
.demo-credential { background: var(--dark); color: #10b981; padding: .3rem .7rem; border-radius: 6px; font-size: .9rem; cursor: pointer; }
.demo-notes { background: #fffbeb; border-left: 3px solid var(--warning); padding: .75rem 1rem; font-size: .88rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Quick Demo Creds in panel */
.quick-demo-creds { background: var(--light-bg); border-radius: var(--radius-sm); padding: .9rem; }
.quick-creds-title { font-size: .8rem; font-weight: 700; color: var(--gray); letter-spacing: .5px; margin-bottom: .5rem; }
.quick-cred-row { display: flex; gap: .75rem; align-items: center; margin-bottom: .3rem; font-size: .85rem; }
.quick-cred-row span { min-width: 75px; color: var(--gray); }
.quick-cred-row code { cursor: pointer; background: var(--dark); color: #10b981; padding: .2rem .5rem; border-radius: 5px; font-size: .82rem; }

/* Reviews */
.reviews-list { }
.review-item { padding: 1rem 0; border-bottom: 1px solid #f1f5f9; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-text { font-size: .9rem; color: #374151; margin: 0; line-height: 1.6; }

/* Star Rating Input */
.star-rating-input { display: flex; flex-direction: row-reverse; gap: .2rem; width: fit-content; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.8rem; color: #d1d5db; cursor: pointer; transition: color .15s; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--warning); }

/* Purchase Panel */
.purchase-panel { background: #fff; border: 1px solid #e8eaf0; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.purchase-panel-header { background: var(--light-bg); padding: 1.5rem; border-bottom: 1px solid #e8eaf0; }
.purchase-title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin-bottom: .5rem; }
.purchase-panel-body { padding: 1.5rem; }
.price-display { text-align: center; margin-bottom: 1.25rem; }
.price-old { font-size: 1rem; color: var(--gray); }
.price-discount { display: inline-block; background: #fef3c7; color: #92400e; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 50px; margin-left: .5rem; }
.price-current { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.btn-cart-main { font-size: 1.05rem; font-weight: 700; padding: .85rem; }
.purchase-features-list { list-style: none; padding: 0; margin: 0; }
.purchase-features-list li { padding: .4rem 0; font-size: .88rem; color: #374151; border-bottom: 1px solid #f1f5f9; }
.purchase-features-list li:last-child { border-bottom: none; }

/* Rating stars */
.stars .fa-star, .stars .fa-star-half-alt { font-size: .85rem; }

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 0; margin-bottom: .75rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Empty State */
.empty-state { color: var(--gray); }

/* Copy feedback */
.copy-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--dark); color: #fff;
  padding: .65rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .9rem; z-index: 9999;
  animation: fadeInOut 2s ease forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Button extras */
.btn-xs { font-size: .72rem; padding: .2rem .5rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-number { font-size: 1.6rem; }
  .purchase-panel { position: static !important; }
}
