/*
Theme Name: Pharma UnsaidTalks
Author: UnsaidTalks
Description: Clean, high-performance custom theme for CDSCO pharma database styled with UnsaidTalks branding.
Version: 1.0.0
Text Domain: pharma
*/

:root {
  --orange:       #E68C10;
  --cream:        #FFFEF7;
  --navy:         #0F172A;
  --navy-light:   #1E293B;
  --white:        #FFFFFF;
  --grey-light:   #F8FAFC;
  --grey-dark:    #334155;
  --grey-muted:   #64748B;

  --bg:           var(--white);
  --text:         var(--navy);
  --muted:        var(--grey-muted);
  --accent:       var(--orange);
  --accent-hover: #c27208;
  --accent-glow:  rgba(230, 140, 16, 0.18);
  --border:       #E2E8F0;
  
  --radius:       16px;
  --transition:   all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.04);
  --shadow:       0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-lg:    0 20px 35px -10px rgba(0, 0, 0, 0.08);
  --max-width:    1340px;
}

/* --- Base & Resets --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif !important; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 17px; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* WP Support */
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Layout & Typography */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; letter-spacing: -0.5px; }

/* Dynamic Interactive Highlights */
.highlight {
  color: var(--accent);
  display: inline-block;
  font-weight: 850;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.highlight:hover {
  transform: scale(1.06) translateY(-2px) rotate(-1deg);
  color: #ea580c;
  cursor: pointer;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- Header --- */
.site-header {
  background: #0b0f19;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.logo-dot.white {
  background: var(--white);
}
.site-title-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.site-title-top {
  color: var(--white);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.site-title-sub {
  color: var(--accent);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-item-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.nav-item-sub {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.nav-item-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.main-navigation a:hover .nav-item-main {
  color: var(--accent);
}
.header-buttons-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-header-ghost-orange {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.btn-header-ghost-orange:hover {
  background: rgba(230, 140, 16, 0.08);
  transform: translateY(-1px);
}
.btn-header-ghost-white {
  background: transparent;
  color: var(--white) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.btn-header-ghost-white:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.btn-header-solid-orange {
  background: var(--accent);
  color: var(--white) !important;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(230, 140, 16, 0.2);
}
.btn-header-solid-orange:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 140, 16, 0.35);
}

/* --- Hero --- */
.hero-section { position: relative; background: radial-gradient(circle at 80% 20%, rgba(230, 140, 16, 0.06), transparent 50%), var(--cream); border-bottom: 1px solid var(--border); padding: 80px 0 50px; text-align: center; }
.hero-title { font-size: clamp(42px, 6vw, 64px); font-weight: 850; line-height: 1.15; color: var(--navy); margin-bottom: 16px; letter-spacing: -1.5px; }
.hero-subtitle { font-size: clamp(16px, 2vw, 19px); color: var(--grey-dark); max-width: 850px; margin: 0 auto 30px; line-height: 1.75; }

/* --- UI Components --- */
.hero-eyebrow { font-size: 14px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: inline-block; background: rgba(230, 140, 16, 0.08); padding: 5px 12px; border-radius: 100px; }
.hero-urgency { font-size: 14px; color: var(--grey-dark); margin-top: 16px; display: inline-block; background: rgba(230, 140, 16, 0.04); padding: 6px 16px; border-radius: 6px; border: 1px solid rgba(230, 140, 16, 0.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white) !important; box-shadow: 0 4px 12px rgba(230, 140, 16, 0.2); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(230, 140, 16, 0.3); }
.btn-secondary { background: var(--white); color: var(--navy) !important; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--grey-light); transform: translateY(-1px); }
.btn-whatsapp { background: #25d366; color: var(--white) !important; }
.btn-whatsapp:hover { background: #128c7e; transform: translateY(-1px); }

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Lists & Checklists */
.list-checked { list-style: none; }
.list-checked li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 16px; color: var(--grey-dark); }
.list-checked li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: #dcfce7; color: #166534; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }

/* Table Styles */
.table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); margin: 30px 0; }
.info-table { width: 100%; border-collapse: collapse; text-align: left; }
.info-table th, .info-table td { padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 16px; }
.info-table th { background: #F8FAFC; font-weight: 800; color: var(--navy); width: 30%; border-right: 1px solid var(--border); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* Pricing Cards */
.pricing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: var(--transition); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--accent); border-width: 2px; }
.pricing-card.featured::after { content: 'Best Value'; position: absolute; top: 16px; right: 16px; background: rgba(230, 140, 16, 0.1); color: var(--accent); padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pricing-price { font-size: 44px; font-weight: 900; color: var(--navy); margin: 16px 0; line-height: 1; }
.pricing-features { margin-bottom: 24px; }

/* FAQ & Callout */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.faq-question { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.faq-answer { font-size: 15px; color: var(--grey-dark); line-height: 1.65; }
.callout-card { background: rgba(230, 140, 16, 0.02); border: 2px dashed var(--accent); padding: 24px; border-radius: var(--radius); margin: 24px 0; text-align: center; font-size: 16px; }

/* --- Metrics Grid --- */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: -30px; position: relative; z-index: 10; }
.metric-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.metric-number { font-size: 42px; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.metric-label { font-size: 14px; font-weight: 700; color: var(--grey-dark); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.35; }

/* --- Content Layout --- */
.main-content { padding: 50px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-title { font-size: clamp(28px, 4.5vw, 38px); font-weight: 850; color: var(--navy); position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--accent); border-radius: 2px; }

/* --- Medicines Grid --- */
.drugs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.drug-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.drug-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.drug-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }

/* Badges */
.drug-status-badge { align-self: flex-start; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.drug-status-approved { background: #dcfce7; color: #166534; }
.drug-status-pending { background: #fef9c3; color: #854d0e; }
.drug-status-suspended { background: #fee2e2; color: #991b1b; }

.drug-name { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.drug-class-tag { font-size: 13px; color: var(--accent); background: rgba(230, 140, 16, 0.06); padding: 2px 8px; border-radius: 4px; font-weight: 700; display: inline-block; margin-bottom: 14px; }
.drug-meta-list { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 14px; color: var(--grey-muted); }
.drug-meta-item { display: flex; justify-content: space-between; margin-bottom: 4px; }
.drug-meta-item strong { color: var(--navy); }
.drug-card-footer { background: #fafafa; padding: 14px 24px; border-top: 1px solid var(--border); text-align: right; }
.view-details-link { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

/* --- Single Medicine Page --- */
.single-container { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--grey-dark); margin-bottom: 24px; }
.medicine-profile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.medicine-profile-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 36px; position: relative; }
.medicine-profile-header .drug-status-badge { position: absolute; top: 36px; right: 36px; }
.medicine-profile-title { font-size: 34px; font-weight: 850; margin-bottom: 8px; }
.medicine-profile-body { padding: 36px; }
.medicine-profile-section { margin-bottom: 28px; }
.medicine-profile-section-title { font-size: 19px; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.metadata-box { background: #F8FAFC; padding: 14px; border-radius: 10px; border: 1px solid var(--border); }
.metadata-box-label { font-size: 12px; text-transform: uppercase; font-weight: 800; color: var(--grey-muted); margin-bottom: 4px; }
.metadata-box-val { font-size: 16px; font-weight: 700; color: var(--navy); }
.entry-content { line-height: 1.75; color: var(--grey-dark); font-size: 16px; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.6); padding: 50px 0 30px; font-size: 14px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-widget-title { color: var(--white); font-size: 15px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-about p { line-height: 1.6; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .site-header .container { flex-direction: column; height: auto; padding: 16px; gap: 12px; }
    .main-navigation ul { gap: 16px; }
    .hero-title { font-size: 32px; }
    .search-container { flex-direction: column; border-radius: 8px; padding: 4px; }
    .search-button { padding: 12px; }
    .metadata-grid { grid-template-columns: 1fr; }
    .medicine-profile-header .drug-status-badge { position: relative; top: 0; right: 0; margin-top: 10px; }
    .pricing-card { padding: 28px 20px; }
}
