﻿/* ============================================
   Avanafil247.com - Improved Shared Styles
   Clean, maintainable foundation for all languages
   ============================================ */

/* Reset for true full-width sections (header + footer) */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

:root {
  --primary: #2C5E2C;
  --primary-dark: #1a3c34;
  --accent: #FF6600;
  --bg: #f8f9f8;
  --card-bg: #ffffff;
  --text: #333;
  --text-light: #555;
  --border: #e0e0e0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 0 0 0;           /* no margins on any side for full width elements */
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

/* Header */
.top-header {
  position: relative;
  width: 100%;
  height: 256px; /* 25% taller */
  background: linear-gradient(rgba(44, 94, 44, 0.32), rgba(30, 70, 55, 0.48)),
              url('../images/header-main.jpg') center/cover no-repeat;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-left img {
  width: 54px;
  height: 48px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.brand {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand .com {
  color: var(--accent);
}

.header-nav {
  display: flex;
  gap: 5px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-nav a:hover {
  background: rgba(255,255,255,0.18);
}

.header-tagline {
  font-size: 11.5px;
  color: #c8d8c8;
  margin-top: 1px;
  letter-spacing: 0.5px;
}

.header-nav .order-btn {
  background: rgba(255,255,255,0.2);
}

.header-nav a.active {
  background: rgba(255,255,255,0.25);
}

/* Language Flags */
.lang-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.28);
  padding: 5px 8px;
  border-radius: 5px;
}

.lang-flags img {
  width: 23px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-flags img.active {
  border: 2px solid var(--primary);
  background: #e8f0e8;
  box-shadow: 0 0 0 1px var(--primary-dark);
}

.lang-flags img:hover {
  transform: scale(1.15);
}

/* Main Layout - Responsive Foundation */
.page-container {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 20px;
  display: flex;
  gap: 18px;
}

.left-column {
  width: 200px;
  flex-shrink: 0;
}

.left-column .menu-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.main-area {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ============================================
   RESPONSIVE LAYOUT - Desktop + Mobile
   ============================================ */

@media (max-width: 900px) {
  .page-container {
    flex-direction: column;
    gap: 16px;
  }

  .left-column {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .left-column .menu-box {
    width: 100%;
    margin-bottom: 0;
    padding: 13px 15px;
  }
}

@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }

  .left-column {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .left-column .menu-box {
    padding: 8px 10px;
    font-size: 12.5px;
    margin-bottom: 0;
  }

  .left-column .menu-box .title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .left-column .menu-box .links a {
    font-size: 12px;
    display: block;
  }
}

@media (max-width: 480px) {
  .left-column {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .left-column .menu-box {
    padding: 6px 8px;
  }
}

  .left-column .menu-box .title {
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .main-area {
    padding: 16px 12px;
  }

  .main-area h1 {
    font-size: 19px;
  }

  .main-area p,
  .main-area li {
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* Popular Topics / Category grid centering on mobile */
  .main-area .category-grid,
  .articles-preview .category-grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .main-area .category-card,
  .articles-preview .category-card {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

.main-area h1 {
  font-size: 26px;
  margin-top: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

/* Responsive tables - makes wide tables scroll horizontally on mobile */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 20px;
}

.table-responsive table {
  min-width: 480px; /* reduced to keep Viagra/Cialis columns visible without excessive scroll */
  width: 100%;
}

/* Make comparison tables better on mobile */
@media (max-width: 600px) {
  .table-responsive table {
    min-width: 460px;
    font-size: 12px;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 5px 6px;
    white-space: normal; /* allow some wrapping to reduce horizontal scroll */
  }

  /* Keep first column (Characteristic) a bit more prominent */
  .table-responsive td:first-child,
  .table-responsive th:first-child {
    font-weight: 600;
    min-width: 90px;
  }
}

/* Root page specific tweak */
.index-page .main-area h1 {
  font-size: 24px;
  line-height: 1.3;
}

.main-area h2 {
  font-size: 18px;
  color: var(--primary);
  margin-top: 32px;
  font-weight: 600;
  border-bottom: 2px solid #e8f0e8;
  padding-bottom: 6px;
}

.main-area h3 {
  font-size: 17px;
  color: var(--primary);
  margin: 24px 0 8px;
}

/* Specific call-to-action heading */
.cta-heading {
  margin: 24px 0 6px;
  color: #2C5E2C;
  font-size: 18px;
}

.main-area p {
  margin-bottom: 16px;
}

.updated-note {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  margin-bottom: 16px;
}

.accent-link {
  color: #2C5E2C;
  font-weight: 600;
}

/* FAQ question paragraphs */
.faq-question {
  margin-bottom: 12px;
}

/* Sidebar Menu Boxes */
.menu-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.menu-box .title {
  background: var(--primary);
  color: white;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.menu-box .links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid var(--primary);
  background: #fafafa;
  transition: all 0.15s;
}

.menu-box .links a:hover {
  background: #f0f4f0;
  border-left-color: var(--accent);
  padding-left: 13px;
}

.sidebar-active {
  background: #f0f4f0;
  border-left-color: #FF6600;
}

.menu-box .trust-badges {
  padding: 8px 10px;
  background: #fafafa;
  font-size: 11px;
}

.payment-icon {
  height: 28px;
  margin-bottom: 6px;
  display: block;
}

.badge-text {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
}

.badge-small-text {
  font-size: 10.5px;
  color: #555;
  margin-top: 4px;
}

.shipping-row {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipping-label {
  font-size: 11px;
  color: #1a3c34;
  font-weight: 500;
}

.trust-logo {
  height: 26px;
  margin: 4px 0;
}

.shipping-desc {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
}

.payment-label {
  color: #b8d0b8;
  font-size: 12px;
  margin-right: 4px;
}

.sepa-row {
  margin-top: 4px;
  font-size: 11px;
  color: #b8d0b8;
}

.footer-logo-gap {
  gap: 14px;
}

.eu-block {
  color: #b8d0b8;
  font-size: 12px;
  line-height: 1.3;
}

.discreet-text {
  font-size: 11px;
}

.check {
  color: #d8e8d8;
}

.menu-box .trust-badges .badge {
  display: inline-block;
  background: #e8f0e8;
  color: var(--primary-dark);
  padding: 1px 6px;
  border-radius: 2px;
  margin: 1px;
  font-weight: 600;
  font-size: 10px;
}

.menu-box .trust-badges .crypto {
  background: #f5e8d3;
  color: #8B5A2B;
}

/* Specific badge styles extracted from inline */
.crypto-badge {
  background: #f5e8d3;
  color: #8B5A2B;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 11px;
}

.sepa-badge {
  background: #2C5E2C;
  color: white;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 10px;
}

/* EU Shipping indicator in sidebar */
.eu-shipping {
  background: #003399;
  color: #FFCC00;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
  display: inline-block;
  box-shadow: 0 0 0 1px #002266;
}

/* Sidebar customer review box */
.sidebar-review {
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: #fafafa;
}

/* Trust Bar & Process */
.trust-bar {
  background: #e8f5e9;
  border-left: 5px solid var(--primary);
  padding: 12px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--primary-dark);
}

.process {
  background: #f0f7f0;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
}

.process ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

.step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.step-num {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.category-card {
  background: #f8f9f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 13px;
  font-size: 13px;
  transition: all 0.2s;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(44,94,44,0.1);
}

.category-card h4 {
  margin: 0 0 5px;
  font-size: 13.5px;
  color: var(--primary-dark);
}

.category-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
}

/* Make entire category cards clickable without underlines */
.category-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.comparison-table th {
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background: #fafafa;
}

.comparison-table thead tr {
  background: #f0f7f0;
}

/* Footer */
footer {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 20px;
  font-size: 12.5px;
  color: #666;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ============================================
   RESPONSIVE - Mobile & Tablet Friendly
   ============================================ */

/* Clean responsive sidebar + layout */
@media (max-width: 768px) {
  .top-header {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 150px; /* 25% taller header on mobile */
  }

  .header-content {
    padding-left: 12px;
    padding-right: 12px;
    min-height: 138px;
  }

  /* Footer full width on mobile */
  .footer,
  .footer-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-container {
    flex-direction: column;
    gap: 16px;
  }

  .left-column {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .left-column .menu-box {
    width: 100%;
    padding: 8px 10px;
    font-size: 12.5px;
    margin-bottom: 0;
  }

  .left-column .menu-box .title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .left-column .menu-box .links a {
    font-size: 12px;
    display: block;
    padding: 1px 0;
  }
}

@media (max-width: 480px) {
  .left-column {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .left-column .menu-box {
    padding: 6px 8px;
  }
}

/* ============================================
   Professional Footer (matching original width & spacing)
   ============================================ */

.site-footer {
  /* Footer is now controlled by the outer wrapper div in the HTML for full-bleed */
  background: transparent;
  color: #d8e8d8;
  font-size: 13px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 6px;         /* 20% smaller */
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;                     /* match original */
  align-items: center;           /* match original */
  justify-content: space-between;
  padding-bottom: 6px;           /* 20% smaller */
  border-bottom: 1px solid rgba(216, 232, 216, 0.15);
}

.footer-logos .logo-group {
  display: flex;
  align-items: center;
  gap: 10px;                     /* match original */
  flex-wrap: wrap;
}

.footer-logos img {
  height: 21px;                  /* 20% smaller */
  filter: brightness(0.95);
  transition: transform 0.2s;
}

.footer-logos img:hover {
  transform: scale(1.05);
}

.footer-logos .crypto-badges {
  display: flex;
  gap: 5px;
  margin-left: 4px;
}

.footer-logos .crypto-badges span {
  background: #3a5f3a;
  color: #f0d9a0;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 6px;               /* 20% smaller */
  font-size: 12.5px;
}

.footer-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-trust img {
  height: 16px;                  /* 20% smaller */
}

.footer-legal {
  margin-top: 6px;               /* 20% smaller */
  padding-top: 5px;              /* 20% smaller */
  border-top: 1px solid rgba(216, 232, 216, 0.12);
  font-size: 11.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #a8c0a8;
}

.footer-legal a {
  color: #a8c0a8;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Small utility margins used in content */
.mb-20 {
  margin-bottom: 20px;
}

.mt-16 {
  margin-top: 16px;
}

/* ============================================
   Modern Language Switcher (Globe + Dropdown)
   Little country flags + native names, click to open
   ============================================ */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.28);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12.5px;
    line-height: 1.1;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.38);
}

.lang-switcher-btn .globe {
    font-size: 13px;
}

.lang-switcher-btn .chevron {
    font-size: 10px;
    margin-left: 1px;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #1f3a2f;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    min-width: 195px;
    padding: 6px 0;
    z-index: 200;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

/* Mobile: make language dropdown open to the right (left-aligned) so it stays on screen */
@media (max-width: 768px) {
    .lang-dropdown {
        left: 0;
        right: auto;
        min-width: 170px;
    }
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #e8f0e8;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.lang-option:hover {
    background: rgba(255,255,255,0.08);
}

.lang-option.active {
    background: rgba(46, 125, 50, 0.28);
    color: white;
    font-weight: 500;
}

.lang-option img {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 1px;
    border: 1px solid rgba(255,255,255,0.3);
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}


