/* PickHub Design System & Premium Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color System */
  --primary: #f26419;
  --primary-rgb: 242, 100, 25;
  --primary-hover: #e05307;
  
  --secondary: #33658a;
  --dark: #0f172a;
  --dark-accent: #1e293b;
  --light: #f8fafc;
  --light-accent: #e2e8f0;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Base Styles */
html, body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fafbfc;
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header & Glassmorphism Navigation */
.navbar-custom {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-text span {
  color: var(--primary);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

/* Global Container & Footer */
main {
  flex: 1;
}

.footer-custom {
  background: var(--dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 2rem;
  font-style: italic;
}

/* Premium Layout Elements */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--dark) 30%, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Cards & Grid system */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-accent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.product-card-img-wrapper {
  background: var(--light);
  height: 240px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--dark);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffb400;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  height: 4.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--light-accent);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-display {
  display: flex;
  flex-direction: column;
}

.price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.price-sale {
  color: var(--dark);
  font-weight: 800;
  font-size: 1.3rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-tab {
  background: #fff;
  border: 1px solid var(--light-accent);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* Public Product Detail page */
.detail-container {
  max-width: 1100px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.detail-img-box {
  background: #fff;
  border: 1px solid var(--light-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  box-shadow: var(--shadow-sm);
}

.detail-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-accent);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffb400;
}

.detail-price-box {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-price {
  display: flex;
  flex-direction: column;
}

.save-badge {
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 100, 25, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 100, 25, 0.5);
  color: #fff;
}

/* Pros and Cons Columns */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pros-box {
  background: var(--success-bg);
  border-left: 5px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

.pros-box h4 {
  color: var(--success);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.cons-box {
  background: var(--error-bg);
  border-left: 5px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

.cons-box h4 {
  color: var(--error);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.pros-cons-list {
  padding-left: 1.2rem;
  margin: 0;
}

.pros-cons-list li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Features Block */
.features-section {
  background: #fff;
  border: 1px solid var(--light-accent);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  margin-top: 4rem;
}

.features-section h3 {
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.features-list li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.6;
}

.features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Admin Dashboard Workstation Layout */
.admin-container {
  max-width: 1400px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-form-card {
  background: #fff;
  border: 1px solid var(--light-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.admin-preview-card {
  background: #fff;
  border: 1px solid var(--light-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Live Reactive Tabs */
.preview-tabs {
  display: flex;
  border-bottom: 2px solid var(--light-accent);
  margin-bottom: 2rem;
  gap: 1rem;
}

.preview-tab {
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  bottom: -2px;
  transition: var(--transition);
}

.preview-tab:hover {
  color: var(--primary);
}

.preview-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.preview-pane {
  display: none;
}

.preview-pane.active {
  display: block;
}

/* Code Copy Block styling */
.code-block-wrapper {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
}

.code-pre {
  color: #f8fafc;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  margin: 0;
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-copy-code {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-copy-code:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Pinterest Visual Pin Canvas mockup */
.pinterest-canvas-mockup {
  width: 320px;
  height: 480px;
  background: linear-gradient(135deg, #718096, #2d3748);
  border-radius: var(--radius-md);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: #fff;
}

.pin-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.pin-header {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pin-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.pin-logo span {
  color: var(--primary);
}

.pin-badge {
  background: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.pin-img-wrapper {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pin-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pin-footer {
  z-index: 2;
  margin-top: auto;
}

.pin-title-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.pin-cta-text {
  background: #fff;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Pin customizer tools */
.pin-customizer-tools {
  max-width: 320px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pin-bg-select {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-accent);
  font-size: 0.9rem;
}

/* Styled Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Blogger Content preview card styling */
.blogger-preview-render {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2rem;
  background: #f7fafc;
  max-height: 600px;
  overflow-y: auto;
}

/* Instagram caption container styling */
.insta-caption-container {
  background: #f8fafc;
  border: 1px solid var(--light-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  position: relative;
  max-height: 480px;
  overflow-y: auto;
}