/* ============================================
   AnyPDF – Premium Overrides
   Enhances base style.css with premium polish
   ============================================ */

/* Override: Use same font */
body.premium-tool-page {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */
header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.navbar {
  max-width: 1280px !important;
  padding: 0.875rem 2rem !important;
}

.logo span {
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i {
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-medium) !important;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

.btn-signup {
  background: var(--gradient-primary) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-primary) !important;
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35) !important;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.tool-page-hero,
.hero {
  background: var(--gradient-hero) !important;
  padding: 5rem 1.5rem 3.5rem !important;
  position: relative;
}

.tool-page-hero::before,
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top center, rgba(79, 70, 229, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-icon {
  background: var(--bg-card) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.1) !important;
  color: var(--primary-color) !important;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-page-hero h1,
.hero h1 {
  color: var(--text-dark) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.tool-page-hero p,
.hero p {
  color: var(--text-light) !important;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.upload-container,
.split-options,
.protect-options,
.options-box,
.selected-files-container,
.process-container {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  max-width: 620px;
  margin: 0 auto;
}

.upload-container:hover {
  border-color: rgba(79, 70, 229, 0.3) !important;
  transform: translateY(-3px);
}

/* Tool Cards */
.tool-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  transition: var(--transition) !important;
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
  box-shadow: var(--shadow-lg) !important;
}

.tool-icon {
  color: var(--primary-color) !important;
}

.tool-info h3 {
  color: var(--text-dark) !important;
}

.tool-info p {
  color: var(--text-light) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-upload,
.btn-select-huge,
.btn-convert,
.btn-action {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: var(--shadow-primary) !important;
  transition: var(--transition) !important;
  letter-spacing: -0.01em;
}

.btn-upload:hover,
.btn-select-huge:hover,
.btn-convert:hover,
.btn-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4) !important;
}

.btn-drive,
.btn-dropbox {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-md);
}

.btn-drive:hover,
.btn-dropbox:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  background: var(--primary-light) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(79, 70, 229, 0.15) !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge.popular {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: rgba(234, 88, 12, 0.15) !important;
}

/* ============================================
   FILE ITEMS
   ============================================ */
.file-item {
  background: var(--bg-body) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-md) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text-dark) !important;
  border-top: none !important;
  padding: 4rem 2rem 2rem !important;
}

.footer-content {
  max-width: 1280px;
}

.footer-section h4 {
  color: #f1f5f9 !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul li a {
  color: #94a3b8 !important;
}

.footer-section ul li a:hover {
  color: #e2e8f0 !important;
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
}

/* ============================================
   DESCRIPTION SECTIONS
   ============================================ */
.tool-description-section {
  background: var(--bg-card);
}

.tool-description-section h2 {
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  color: var(--text-dark) !important;
}

.feature-card p {
  color: var(--text-light) !important;
}

.feature-card i {
  color: var(--primary-color) !important;
}

/* Steps */
.step-card {
  background: var(--bg-body) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg);
  color: var(--text-dark) !important;
}

.step-number {
  background: var(--gradient-primary) !important;
  color: white !important;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-primary);
}

.step-card h3 {
  color: var(--text-dark) !important;
}

.step-card p {
  color: var(--text-light) !important;
}

/* ============================================
   INPUTS
   ============================================ */
input[type="text"],
input[type="password"],
textarea,
select {
  background: var(--bg-body) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.language-selector:hover {
  background-color: var(--primary-light);
}

.icon-globe {
  color: var(--text-light);
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 1;
}

.language-selector:hover .icon-globe {
  color: var(--primary-color);
}

#google_translate_element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  overflow: hidden;
}

.goog-te-gadget-simple {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px dashed var(--border-color) !important;
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ============================================
   EXPLORE OTHER TOOLS SECTION
   ============================================ */
.tools-section {
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--bg-body);
}

.tools-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tool-card a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.tool-card a:hover {
  text-decoration: underline;
}

/* ============================================
   ADSENSE SEO BLOCK
   ============================================ */
#adsense-seo-block {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border-color) !important;
}

#adsense-seo-block h2 {
  color: var(--primary-color) !important;
}

#adsense-seo-block h3 {
  color: var(--text-dark) !important;
}

#adsense-seo-block h4 {
  color: var(--text-dark) !important;
}

#adsense-seo-block p {
  color: var(--text-light) !important;
}

/* ============================================
   MOBILE
   ============================================ */
.menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .language-selector {
    margin-right: 0.75rem;
  }

  .tool-page-hero,
  .hero {
    padding: 3rem 1rem 2.5rem !important;
  }

  .tools-section h2 {
    font-size: 1.75rem;
  }
}
