/*
Theme Name: Becho Rang Bidding
Theme URI: https://github.com/rahulbharwani/becho
Author: Rahul & Umang
Author URI: https://yashwinsupernova.com
Description: A modern, elegant glassmorphic WordPress theme designed for moveout item bidding with Email OTP authentication. Custom crafted for C-1205 Yashwin Supernova.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: becho
*/

/* ==========================================================================
   BID WITH RANG - WordPress Theme Styling
   ========================================================================== */

:root {
  --bg-main: #0B0F17;
  --bg-card: rgba(22, 31, 48, 0.75);
  --bg-card-hover: rgba(30, 42, 64, 0.85);
  --bg-modal: #121A2A;

  --rang-coral: #FF5E3A;
  --rang-orange: #FF9500;
  --rang-amber: #F59E0B;
  --rang-emerald: #10B981;
  --rang-purple: #8B5CF6;
  
  --gradient-rang: linear-gradient(135deg, #FF5E3A 0%, #FF9500 50%, #F59E0B 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  --border-glass: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 149, 0, 0.5);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-glow: 0 10px 30px -10px rgba(255, 94, 58, 0.3);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-bottom: 80px;
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-glow-1 {
  position: fixed;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 94, 58, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-rang);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-rang);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--rang-amber);
}

.auth-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.auth-btn.verified {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--rang-emerald);
}

/* Story Hero Section */
.story-hero {
  margin: 24px 0 32px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.story-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-rang);
}

.story-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill-tag {
  background: rgba(255, 94, 58, 0.12);
  color: var(--rang-coral);
  border: 1px solid rgba(255, 94, 58, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.pill-tag.vj {
  background: rgba(245, 158, 11, 0.12);
  color: var(--rang-amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.pill-tag.date {
  background: rgba(139, 92, 246, 0.12);
  color: var(--rang-purple);
  border-color: rgba(139, 92, 246, 0.25);
}

.story-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.story-subtitle {
  font-size: 15px;
  color: var(--rang-orange);
  font-weight: 600;
  margin-bottom: 20px;
}

.story-content {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.7;
}

.story-highlight-box {
  background: rgba(255, 149, 0, 0.08);
  border-left: 4px solid var(--rang-orange);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 18px 0;
  font-style: italic;
  color: #F1F5F9;
}

.story-expand-btn {
  background: transparent;
  border: none;
  color: var(--rang-orange);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.story-full {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-glass);
}

.story-full.open {
  display: block;
}

/* How it works */
.how-it-works {
  margin-bottom: 32px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
}

.how-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rang-emerald);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.step-card {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-glass);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  background: var(--rang-emerald);
  color: var(--text-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
}

.step-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--gradient-rang);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 149, 0, 0.4);
  box-shadow: var(--shadow-card);
}

/* Blank Image Placeholder Styling */
.product-image-container {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-modal);
}

.product-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-image-container {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
  text-align: center;
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 149, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}

.placeholder-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rang-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.placeholder-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--rang-amber);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #CBD5E1;
}

/* Privacy Compliant Bid Status Box: Displays Ask Price & Total Bids Count Only */
.bid-status-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-item .amount {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--rang-amber);
}

.status-item .bids-count {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--rang-emerald);
  text-align: right;
}

.btn-bid {
  width: 100%;
  background: var(--gradient-rang);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-bid:hover {
  opacity: 0.95;
  transform: scale(1.01);
}

.btn-bid:active {
  transform: scale(0.98);
}

/* Seller Section */
.seller-section {
  display: none;
  margin-bottom: 40px;
}

.seller-section.active {
  display: block;
}

.seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.seller-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.bids-table-wrapper {
  overflow-x: auto;
}

.bids-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bids-table th, .bids-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 14px;
}

.bids-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.bids-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.badge-flat {
  background: rgba(245, 158, 11, 0.15);
  color: var(--rang-amber);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-modal);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

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

.form-input {
  width: 100%;
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--rang-orange);
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

.otp-box-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.otp-digit {
  width: 100%;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--rang-orange);
}

.btn-primary {
  width: 100%;
  background: var(--gradient-rang);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.demo-toast {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--rang-amber);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 10px 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 90;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--rang-orange);
}

.nav-item span.icon {
  font-size: 18px;
}

footer {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

footer strong {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .story-title {
    font-size: 22px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .header-actions .badge-location {
    display: none;
  }
}
