/* ==========================================
   SHUBHARI STORE - PRIVACY POLICY STYLES
   Theme: Vibrant Emerald & Forest Green
   ========================================== */

:root {
  /* Color Palette - Light Mode (Green Theme) */
  --bg-primary: #f4fbf7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --text-primary: #062c1e;
  --text-secondary: #1e4636;
  --text-muted: #4b7a66;
  --text-inverse: #ffffff;

  --accent-primary: #059669; /* Emerald Green */
  --accent-hover: #047857;  /* Deep Emerald */
  --accent-light: #e6f7f0;  /* Mint Tint */
  --accent-border: #a7f3d0;
  
  --brand-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  
  --badge-bg: #e6f7f0;
  --badge-text: #047857;
  --badge-border: #a7f3d0;

  --warning-bg: #fffbeb;
  --warning-text: #b45309;
  --warning-border: #fde68a;

  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --danger-border: #fca5a5;

  --border-color: #d1fae5;
  --border-focus: #10b981;
  
  --shadow-sm: 0 1px 3px rgba(5, 150, 105, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(5, 150, 105, 0.08), 0 2px 4px -2px rgba(5, 150, 105, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(5, 150, 105, 0.12), 0 8px 10px -6px rgba(5, 150, 105, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode (Emerald Dark Theme) */
  --bg-primary: #05140e;
  --bg-surface: #0a2218;
  --bg-surface-elevated: #113426;
  --bg-glass: rgba(10, 34, 24, 0.88);
  
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --text-inverse: #05140e;

  --accent-primary: #34d399; /* Mint Green */
  --accent-hover: #10b981;
  --accent-light: rgba(52, 211, 153, 0.14);
  --accent-border: rgba(52, 211, 153, 0.3);

  --brand-gradient: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%);

  --badge-bg: rgba(52, 211, 153, 0.15);
  --badge-text: #34d399;
  --badge-border: rgba(52, 211, 153, 0.3);

  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-text: #fbbf24;
  --warning-border: rgba(251, 191, 36, 0.3);

  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-text: #fca5a5;
  --danger-border: rgba(252, 165, 165, 0.3);

  --border-color: #143d2c;
  --border-focus: #34d399;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.6);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.print-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.print-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.nav-delete-btn {
  background: var(--accent-primary);
  color: white !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav-delete-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* Hero Section */
.hero-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Key Notice Callout */
.notice-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.notice-content p {
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
}

/* Page Layout */
.page-layout {
  max-width: 1280px;
  margin: 2rem auto 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

/* Table of Contents Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  text-decoration: none;
}

.toc-link.active {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

/* Main Content Area */
.content-area {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.policy-section {
  margin-bottom: 3rem;
  scroll-margin-top: 110px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-num {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.policy-section ul, .policy-section ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

.policy-section li {
  margin-bottom: 0.5rem;
}

/* Highlights Grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.highlight-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.highlight-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.highlight-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Payment Policy Card - Special Green Highlight */
.payment-policy-box {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
}

.payment-policy-box h3 {
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Action Callout Card in Section 7 */
.action-callout-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.action-callout-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.action-callout-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.btn-action-primary {
  background: var(--accent-primary);
  color: white !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ==========================================
   ACCOUNT DELETION FORM STYLES
   ========================================== */
.deletion-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.deletion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.deletion-header-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.deletion-header-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.deletion-header-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.deletion-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label span.required {
  color: #ef4444;
  margin-left: 0.2rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.deletion-submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.deletion-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.deletion-submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.form-recipient-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 1rem;
  justify-content: center;
  text-align: center;
}

.form-recipient-note i {
  color: var(--accent-primary);
  font-size: 1rem;
}

/* Success Alert Modal Banner */
.form-success-banner {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-success-banner.show {
  display: block;
}

.form-success-banner h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-success-banner p {
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
  color: var(--badge-text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact Card */
.contact-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-details h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item-details p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
  
  .content-area {
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0.85rem 1rem;
  }
  
  .hero-section {
    padding: 2.5rem 1rem 1.75rem 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .content-area {
    padding: 1.5rem 1rem;
  }
  
  .payment-policy-box {
    padding: 1.25rem;
  }

  .theme-toggle-btn span, .print-btn span {
    display: none;
  }
  
  .deletion-card {
    padding: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .site-header, .sidebar, .theme-toggle-btn, .print-btn, .nav-delete-btn, .back-to-top, .search-box, .deletion-card {
    display: none !important;
  }
  
  .page-layout {
    display: block;
    margin: 0;
    padding: 0;
  }
  
  .content-area {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .payment-policy-box {
    border: 1px solid #000;
    background: #f9f9f9;
  }
}
