/* ===========================
   PROSPEKTÜS DETAY SAYFASI
   =========================== */

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .82rem;
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-600);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--green-main); }

.breadcrumb i { width: 14px; height: 14px; color: var(--gray-400); }

.breadcrumb span {
  color: var(--gray-800);
  font-weight: 500;
}

/* Layout */
.detail-main {
  padding: 40px 0 80px;
  background: var(--green-bg);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: flex-start;
}

.detail-layout > *,
.detail-content,
.drug-hero__left,
.section-nav,
.psec,
.psec__body {
  min-width: 0;
}

/* ===========================
   DRUG HERO
   =========================== */
.drug-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 248px;
}

.drug-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -100px;
  right: -60px;
  pointer-events: none;
}

.drug-hero__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.dbadge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.dbadge--cat {
  background: rgba(255,255,255,.15);
  color: #b7e4c7;
  border: 1px solid rgba(255,255,255,.2);
}

.dbadge--rx {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.dbadge--rx i { width: 12px; height: 12px; }

.drug-hero__name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  min-height: 3.4rem;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.drug-hero__subtitle {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.drug-hero__animals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.atag--lg {
  font-size: .82rem;
  padding: 5px 14px 5px 10px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.atag--lg i { width: 14px; height: 14px; }

.drug-hero__icon-box {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.drug-hero__icon-box i { width: 48px; height: 48px; color: rgba(255,255,255,.9); }

/* ===========================
   SECTION NAV (sticky)
   =========================== */
.section-nav {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  padding: 6px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: sticky;
  top: 80px;
  z-index: 10;
}

.snav__link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: normal;
  text-align: center;
}
.snav__link:hover          { color: var(--green-main); background: var(--green-pale); }
.snav__link--active        { background: var(--green-main); color: var(--white); }

/* ===========================
   PROSPEKTÜS SECTIONS
   =========================== */
.psec {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 32px;
  margin-bottom: 20px;
  scroll-margin-top: 160px;
  overflow: hidden;
}

.psec__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--gray-200);
}

.psec__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.psec__icon i { width: 20px; height: 20px; }
.psec__icon--red    { background: #fce4ec; color: #c62828; }
.psec__icon--orange { background: #fff3e0; color: #e07b00; }

.psec__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -.02em;
}

.psec__body { display: flex; flex-direction: column; gap: 14px; }

.psec__body p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.psec__body h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 4px;
}

.psec__body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.ptable thead tr { background: var(--green-bg); }
.ptable th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
}
.ptable td {
  padding: 10px 16px;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-200);
}
.ptable tbody tr:hover { background: var(--green-bg); }

/* List */
.plist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.plist li i { width: 18px; height: 18px; color: var(--green-main); flex-shrink: 0; margin-top: 2px; }
.plist li span strong { color: var(--gray-800); }

.plist--red li i { color: #c62828; }

/* Warning box */
.pwarning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .88rem;
  color: #5d4037;
}
.pwarning i { width: 20px; height: 20px; color: #f9a825; flex-shrink: 0; margin-top: 1px; }
.pwarning p { line-height: 1.6; }

.pwarning--red {
  background: #fce4ec;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.pwarning--red i { color: #c62828; }

/* Info box */
.pinfo-box {
  display: flex;
  gap: 12px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .88rem;
  color: var(--green-dark);
}
.pinfo-box i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.pinfo-box p { line-height: 1.6; }

/* Dose cards */
.dose-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dose-card {
  background: var(--green-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dose-card__animal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
}
.dose-card__animal i { width: 16px; height: 16px; }

.dose-card__dose {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-main);
  letter-spacing: -.04em;
  line-height: 1;
}

.dose-card__info {
  font-size: .82rem;
  color: var(--gray-600);
}

.dose-card__duration {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-top: 4px;
}

/* Side effects grid */
.side-effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.se-item {
  border-radius: var(--radius);
  padding: 16px;
  border: 1.5px solid;
}
.se-item--common    { background: #fff8e1; border-color: #ffe082; }
.se-item--rare      { background: #e8f5e9; border-color: #a5d6a7; }
.se-item--very-rare { background: #fce4ec; border-color: #f48fb1; }

.se-freq {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.se-item--common    .se-freq { color: #f57f17; }
.se-item--rare      .se-freq { color: #2e7d32; }
.se-item--very-rare .se-freq { color: #c62828; }

.se-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-item ul li {
  font-size: .82rem;
  color: var(--gray-800);
}

/* Storage grid */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.storage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: var(--green-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 14px;
}
.storage-item i      { width: 28px; height: 28px; color: var(--green-main); }
.storage-item strong { font-size: .88rem; color: var(--gray-800); }
.storage-item span   { font-size: .78rem; color: var(--gray-600); }

/* ===========================
   SIDEBAR
   =========================== */
.detail-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.scard {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 20px;
  min-width: 0;
}

.scard--quick-mobile {
  display: none;
  margin-bottom: 20px;
}

.scard__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-600);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.scard__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scard__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  gap: 12px;
}

.scard__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-400);
  min-width: 0;
}
.scard__label i { width: 14px; height: 14px; }

.scard__row strong { color: var(--gray-800); font-weight: 600; font-size: .82rem; text-align: right; overflow-wrap: anywhere; }
.text-green { color: var(--green-main) !important; }

/* Animals in sidebar */
.scard__animals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.sanimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.sanimal__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-pale);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sanimal__icon i { width: 26px; height: 26px; }
.sanimal span { font-size: .78rem; font-weight: 600; color: var(--gray-600); text-align: center; word-break: break-word; }

/* Actions */
.scard--actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
}

.sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.sbtn i { width: 16px; height: 16px; }

.sbtn--primary  { background: var(--green-main); color: var(--white); border-color: var(--green-main); }
.sbtn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.sbtn--secondary { background: var(--white); color: var(--green-main); border-color: var(--green-light); }
.sbtn--secondary:hover { background: var(--green-pale); }

.sbtn--ghost { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }
.sbtn--ghost:hover { background: var(--gray-200); }

/* Warning card */
.scard--warning {
  background: #fff8e1;
  border-color: #ffe082;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.scard__warning-icon i { width: 20px; height: 20px; color: #f9a825; }
.scard--warning p { font-size: .8rem; color: #5d4037; line-height: 1.6; }

/* Related drugs */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  color: inherit;
}
.related-item:hover { border-color: var(--green-light); background: var(--green-pale); }

.related-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.related-item__icon i { width: 18px; height: 18px; }

.related-item > div { flex: 1; }
.related-item > div strong { display: block; font-size: .85rem; color: var(--gray-800); }
.related-item > div span  { font-size: .75rem; color: var(--gray-400); }
.related-item > i { width: 16px; height: 16px; color: var(--gray-400); }

/* ===========================
   WHERE TO BUY
   =========================== */
.where-to-buy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wtb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--green-bg);
}

.wtb-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wtb-item__icon i { width: 20px; height: 20px; }
.wtb-item__icon--red { background: #fce4ec; color: #c62828; }

.wtb-item--no { background: #fafafa; }

.wtb-item > div strong { display: block; font-size: .88rem; color: var(--gray-800); margin-bottom: 2px; }
.wtb-item > div span  { font-size: .78rem; color: var(--gray-600); }

/* ===========================
   FAQ (details/summary)
   =========================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--green-light); }

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
  background: var(--white);
  transition: background var(--transition);
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q i { width: 16px; height: 16px; color: var(--green-main); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] .faq-item__q { background: var(--green-pale); }
.faq-item[open] .faq-item__q i { transform: rotate(90deg); }

.faq-item__a {
  padding: 14px 18px 16px 44px;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

/* ===========================
   PRINT
   =========================== */
@media print {
  .header, .breadcrumb-bar, .section-nav,
  .detail-sidebar, .footer { display: none !important; }
  .detail-layout { grid-template-columns: 1fr; }
  .psec { border: 1px solid #ddd; break-inside: avoid; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .scard--quick-mobile { display: block; }
  .scard--quick-desktop { display: none; }
  .scard--actions { flex-direction: row; padding: 20px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); }
  .sbtn { flex: 1; }
}

@media (max-width: 768px) {
  .drug-hero { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .drug-hero__icon-box { display: none; }
  .drug-hero__name { font-size: 2rem; line-height: 1.08; min-height: 0; }
  .dbadge { font-size: .68rem; padding: 5px 10px; }
  .dose-cards         { grid-template-columns: 1fr; }
  .side-effects-grid  { grid-template-columns: 1fr; }
  .storage-grid       { grid-template-columns: 1fr 1fr; }
  .section-nav        { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .snav__link         { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .psec               { padding: 22px; }
  .faq-item__a        { padding-left: 18px; }
  .scard__animals     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .detail-main        { padding: 24px 0 56px; }
  .drug-hero          { padding: 24px; }
  .drug-hero__name    { font-size: 1.8rem; min-height: 0; }
  .drug-hero__subtitle { font-size: .84rem; }
  .section-nav        { grid-template-columns: 1fr; }
  .scard__animals     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scard--actions     { flex-direction: column; }
  .storage-grid       { grid-template-columns: 1fr; }
  .scard__row         { align-items: flex-start; gap: 12px; }
  .scard__row strong  { max-width: 58%; }
  .breadcrumb i       { display: none; }
}
