/* Modern Editorial Redesign CSS for LS Studio */
:root {
  --primary-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif-font: 'Cormorant Garamond', Georgia, serif;
  --bg-color: #f5f1e9;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(197, 160, 89, 0.22);
  --border-strong: rgba(78, 115, 66, 0.3);
  --text-dark: #1a261c;
  --text-muted: #5e6d62;
  --brand-green: #4e7342;
  --brand-green-hover: #3d5c33;
  --brand-gold: #c5a059;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 30px -8px rgba(45, 60, 48, 0.12);
  --shadow-lg: 0 20px 40px -12px rgba(45, 60, 48, 0.18);
}

/* Base Body Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--primary-font);
  background: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(78, 115, 66, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(197, 160, 89, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(245, 241, 233, 0.5) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 1. Editorial Hero Header */
.editorial-hero {
  position: relative;
  width: 100%;
  background: #f7f4ee;
}

.hero-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #1a261c;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editorial-hero:hover .hero-img {
  transform: scale(1.025);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(245, 241, 233, 0.95) 100%);
  pointer-events: none;
}

/* Floating Profile Info */
.hero-floating-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 10px 20px;
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(78, 115, 66, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.avatar-ring:hover {
  transform: scale(1.05);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(78, 115, 66, 0.1);
  border: 1px solid rgba(78, 115, 66, 0.25);
  color: var(--brand-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.brand-title {
  font-family: var(--serif-font);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 500px;
  font-style: italic;
}

/* 2. Main Content Wrapper */
.main-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 3. Quick Action Ribbon */
.quick-action-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .quick-action-ribbon {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.quick-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green);
}

.quick-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f8f6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.quick-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. Editorial Store Feature Card */
.editorial-store-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 244, 238, 0.95) 100%);
  border: 1.5px solid var(--border-subtle);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  text-transform: uppercase;
}

.store-headline {
  font-family: var(--serif-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.store-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.address-banner {
  background: #ffffff;
  border: 1.5px solid var(--brand-gold);
  border-left: 5px solid var(--brand-gold);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.address-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.address-details {
  display: flex;
  flex-direction: column;
}

.address-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.address-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.adv-card {
  background: #ffffff;
  border: 1.5px solid rgba(78, 115, 66, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.adv-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.adv-text {
  font-size: 0.83rem !important;
  font-weight: 700 !important;
  color: #1a261c !important;
  line-height: 1.35 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 5. Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 -4px 0;
}

.section-divider span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  background: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

/* 6. Links Editorial Grid */
.links-editorial-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 580px) {
  .links-editorial-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Boutique Link Card */
.boutique-card {
  background: #ffffff;
  border: 1.5px solid rgba(78, 115, 66, 0.18);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.boutique-card:hover {
  background: #ffffff;
  border-color: var(--brand-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.boutique-card:hover .arrow-icon {
  transform: translateX(4px);
  color: var(--brand-green);
}

.card-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.platform-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f7f5ef;
  border: 1px solid rgba(78, 115, 66, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.platform-icon-circle svg {
  width: 22px;
  height: 22px;
}

/* Icon colors */
.icon-telegram { color: #0088cc; }
.icon-instagram { color: #e1306c; }
.icon-viber { color: #7360f2; }
.icon-whatsapp { color: #25d366; }
.icon-tiktok { color: #000000; }
.icon-youtube { color: #ff0000; }
.icon-globe { color: var(--brand-green); }
.icon-phone { color: #16a34a; }
.icon-email { color: #ea580c; }
.icon-shop { color: var(--brand-gold); }

.card-meta-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-main-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.card-sub-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.card-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.badge-tag {
  background: linear-gradient(135deg, #4e7342 0%, #3b5a30 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(78, 115, 66, 0.25);
}

.arrow-icon {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Skeleton Loading */
.skeleton-card {
  width: 100%;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.4) 100%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer */
.app-footer {
  padding: 16px 20px 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
}

.admin-auth-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.admin-auth-link:hover {
  opacity: 1;
  text-decoration: underline;
}
