/* ============================================
   ECOMEDYA - MAIN CSS (Non-critical)
   Loaded asynchronously for PageSpeed
   ============================================ */

/* 1. Manşet Slider (fs-wrap) */
.fs-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;
  margin: 20px 0;
}

.fs-stage {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ios-bg);
}

.fs-card {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.fs-card:first-child,
.fs-card.active {
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}

.fs-card.next {
  opacity: 0.6;
  transform: translateY(15px) scale(0.96);
  z-index: 4;
}

.fs-card.next-2 {
  opacity: 0.3;
  transform: translateY(30px) scale(0.92);
  z-index: 3;
}

.fs-card.hidden {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

.fs-img-wrap {
  width: 100%;
  height: 50%;
  position: relative;
  overflow: hidden;
  background: #e5e5ea;
}

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

.fs-body {
  padding: 20px;
  height: 50%;
  background: #aec2fd;
  display: flex;
  flex-direction: column;
}

.fs-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  align-self: flex-start;
  background: var(--ios-blue);
}

.fs-title {
  font-size: 19px;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1.2;
  margin: 0 0 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fs-desc {
  font-size: 14px;
  color: #3a3a3c;
  line-height: 1.4;
  margin: 0 0 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.fs-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.fs-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.fs-btn:active { transform: scale(0.96); }

.fs-btn-read {
  background: var(--ios-blue);
  color: white;
}

.fs-btn-read:hover { background: #0051d5; }

.fs-btn-share {
  background: #f2f2f7;
  color: #1d1d1f;
  border: 1px solid #e5e5ea;
}

.fs-nav {
  position: absolute;
  top: 40%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  font-size: 18px;
}

.fs-prev { left: 10px; }
.fs-next { right: 10px; }

.fs-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.fs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c7c7cc;
  cursor: pointer;
  transition: all 0.3s;
}

.fs-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--ios-blue);
}

/* 2. Authors Widget */
.authors-widget-container {
  margin: 20px 0;
  padding: 0 15px;
}

.authors-glass-frame {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 35px;
  padding: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.section-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px 15px;
}

.ios-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ios-see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--ios-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.authors-scroll-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 5px 25px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.authors-scroll-track::-webkit-scrollbar { display: none; }

.author-item {
  min-width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s;
}

.author-item:hover { transform: translateY(-3px); }
.author-item:active { transform: scale(0.92); }

.author-avatar-wrapper {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color, var(--ios-blue)), rgba(255,255,255,0.5));
  margin-bottom: 8px;
}

.author-img,
.author-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: var(--accent-color, var(--ios-blue));
}

.author-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 26px;
}

.author-online-pulse {
  position: absolute;
  bottom: 3px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: var(--ios-green);
  border: 2.5px solid #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-status {
  font-size: 10px;
  font-weight: 800;
  color: var(--ios-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 3. Horoscope Section */
.horoscope-section {
  margin: 20px 0;
  background: linear-gradient(135deg, #6578fd, #b43bc3);
  border-radius: 24px;
  padding: 20px;
  color: #fff;
}

.horoscope-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.horoscope-title {
  font-size: 20px;
  font-weight: 800;
}

.horoscope-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
}

.horoscope-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.horoscope-scroll::-webkit-scrollbar { display: none; }

.horoscope-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}

.horoscope-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.25);
}

.horoscope-icon { font-size: 24px; }
.horoscope-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* 4. News Feed */
.haberler {
  margin: 30px 0;
}

.haberler h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 0 15px;
  letter-spacing: -0.5px;
}

.haber-card {
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.haber-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.haber-card:active { transform: scale(0.98); }

.haber-img {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e5ea;
}

.haber-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.haber-kat {
  color: var(--ios-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.haber-baslik {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c1c1e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.haber-meta {
  color: var(--ios-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

/* 5. Sidebar Widgets */
.sidebar-widget {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pharmacy-widget {
  background: var(--ios-blue);
  color: #fff;
}

.pharmacy-widget h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ios-select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.ios-select option { color: #333; }

.trend-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform 0.2s;
}

.trend-item:hover { transform: translateX(4px); }

.trend-item:last-child { margin-bottom: 0; }

.trend-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.trend-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6. Share Modal */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.share-modal.active {
  display: flex;
  opacity: 1;
}

.share-content {
  width: 100%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal.active .share-content {
  transform: scale(1);
}

.share-preview {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  margin-bottom: 20px;
}

.share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn:hover { transform: translateY(-2px); }

.share-btn-primary {
  background: #fff;
  color: #000;
}

.share-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* 7. Footer */
.footer {
  background: #1c1c1e;
  color: #fff;
  padding: 40px 20px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.footer-logo span { color: var(--ios-blue); }

.footer-desc {
  color: var(--ios-text-secondary);
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 20px;
  font-size: 20px;
}

.footer-social a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid #333;
  width: 100%;
  padding-top: 20px;
  margin-top: 20px;
  color: var(--ios-text-secondary);
  font-size: 12px;
}

/* 8. Responsive Adjustments */
@media (max-width: 540px) {
  .fs-wrap { min-height: 440px; }
  .fs-stage { height: 440px; }
  .fs-title { font-size: 17px; }
  .fs-btn { padding: 10px 12px; font-size: 13px; }
  
  .haber-img {
    width: 90px;
    height: 90px;
  }
  
  .haber-baslik {
    font-size: 15px;
  }
}

/* 9. Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --ios-bg: #000;
    --ios-text: #fff;
    --ios-card: rgba(28, 28, 30, 0.85);
  }
  
  .haber-card,
  .sidebar-widget {
    background: #1c1c1e;
  }
  
  .fs-body { background: #2c2c2e; }
}