/* ==========================================================================
   BLOOMEOR PRODUCTS PORTFOLIO CSS
   Apple-Inspired Premium Design System & Grid
   ========================================================================== */

:root {
  --brand-red: #e30000;
  --brand-red-dark: #b50000;
  --brand-red-light: #ff2a2a;
  --brand-red-soft: rgba(227, 0, 0, 0.08);
  --brand-red-glow: rgba(227, 0, 0, 0.15);
  
  /* System Neutral Tokens */
  --bg-light: #f5f5f7;
  --surface-light: rgba(255, 255, 255, 0.85);
  --ink-light: #1d1d1f;
  --muted-light: #86868b;
  --line-light: rgba(0, 0, 0, 0.08);
  
  --bg-dark: #000000;
  --surface-dark: rgba(22, 22, 23, 0.82);
  --ink-dark: #f5f5f7;
  --muted-dark: #86868b;
  --line-dark: rgba(255, 255, 255, 0.08);
  
  /* Active Theme Variables */
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --ink: var(--ink-light);
  --muted: var(--muted-light);
  --line: var(--line-light);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --ink: var(--ink-dark);
  --muted: var(--muted-dark);
  --line: var(--line-dark);
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.pr-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pr-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.pr-eyebrow {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.pr-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}

.pr-hero-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

/* ==========================================================================
   FILTER TABS / NAVIGATION
   ========================================================================== */

.pr-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  padding: 0 24px;
}

.pr-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 99px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}

[data-theme="dark"] .pr-tabs {
  background: rgba(255, 255, 255, 0.04);
}

.pr-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 99px;
  cursor: pointer;
  outline: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.pr-tab:hover {
  color: var(--ink);
}

.pr-tab.active {
  background: #ffffff;
  color: var(--brand-red);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .pr-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

/* ==========================================================================
   PRODUCT BENTO GRID
   ========================================================================== */

.pr-grid-section {
  padding: 20px 0 100px;
  background: var(--bg);
}

.pr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.pr-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pr-card.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.pr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 0, 0, 0.18);
}

[data-theme="dark"] .pr-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 42, 42, 0.18);
}

/* Card Content Area */
.pr-card-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pr-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pr-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.035);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  object-fit: contain;
}

[data-theme="dark"] .pr-card-icon {
  background: rgba(44, 44, 46, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pr-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pr-card-meta {
  display: flex;
  flex-direction: column;
}

.pr-card-meta .category {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
}

.pr-card-meta h2 {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
}

.pr-tagline {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pr-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Features Pill List */
.pr-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.pr-feature-pill {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .pr-feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: #c7c7cc;
}

/* Action Links */
.pr-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pr-btn-primary {
  background: #1d1d1f;
  color: #ffffff !important;
}

.pr-btn-primary:hover {
  background: #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pr-btn-secondary {
  color: var(--brand-red) !important;
  font-weight: 600;
}

.pr-btn-secondary:hover {
  opacity: 0.85;
}

.pr-btn-secondary span {
  font-size: 1.1em;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.pr-btn-secondary:hover span {
  transform: translateX(3px);
}

/* Card Visual Area (Laptop Frame for Video) */
.pr-card-visual {
  background: rgba(0, 0, 0, 0.02);
  border-left: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pr-card-visual {
  background: rgba(255, 255, 255, 0.01);
}

.pr-laptop-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 4px solid #1a1a1b;
  background: #000;
  aspect-ratio: 16/10;
  position: relative;
}

.pr-laptop-frame video,
.pr-laptop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   COMPANION MOBILE APPS SECTION
   ========================================================================== */

.pr-companion-section {
  padding: 80px 0 120px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.pr-companion-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  padding: 0 24px;
}

.pr-companion-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.pr-companion-header p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.pr-companion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pr-companion-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pr-companion-card.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.pr-companion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(227, 0, 0, 0.14);
}

[data-theme="dark"] .pr-companion-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 42, 42, 0.14);
}

.pr-app-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.035);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .pr-app-icon {
  background: rgba(44, 44, 46, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pr-companion-card:hover .pr-app-icon {
  transform: scale(1.05);
}

.pr-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pr-companion-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pr-app-badge {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.pr-app-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.pr-app-details {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pr-app-details li {
  font-size: 0.8rem;
  color: var(--ink);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.pr-app-details li::before {
  content: "•";
  color: var(--brand-red);
  font-weight: bold;
  position: absolute;
  left: 4px;
  top: -1px;
}

/* ==========================================================================
   BOTTOM CTA SECTION
   ========================================================================== */

.pr-cta {
  background: var(--bg);
  padding: 80px 0 140px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.pr-cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.pr-cta h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.pr-cta p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

.pr-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVENESS OVERRIDES
   ========================================================================== */

@media (max-width: 968px) {
  .pr-card {
    grid-template-columns: 1fr;
  }
  
  .pr-card-visual {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 30px;
  }
  
  .pr-companion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pr-card-info {
    padding: 30px;
  }
  
  .pr-companion-grid {
    grid-template-columns: 1fr;
  }
  
  .pr-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .pr-cta-actions .pr-btn {
    width: 100%;
    max-width: 260px;
  }
}
