/* ============================================
   TOPICKR.ONLINE - Main Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #d97706; color: var(--white); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  gap: 0.4rem;
}

.nav-search input {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  width: 160px;
  font-family: var(--font);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0f2157 0%, #1a56db 60%, #2563eb 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--white);
}

.stat-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--white);
}

.hero-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.hero-card h3 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.25rem; }
.hero-card p { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin: 0; }

.rating-stars { color: var(--accent); font-size: 0.9rem; }

/* ---- SECTION STYLES ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.card-img {
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe, #c7d7fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 1.25rem; }

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.card h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ---- COMPARISON TABLE ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg); }

.badge-best {
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.check { color: var(--success); }
.cross { color: #ef4444; }

/* ---- TIPS SECTION ---- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.tip-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.tip-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tip-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.tip-card p { font-size: 0.825rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---- NEWSLETTER ---- */
.newsletter {
  background: linear-gradient(135deg, #0f2157, #1a56db);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 { color: var(--white); margin-bottom: 0.75rem; }
.newsletter p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ---- FOOTER ---- */
footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { color: var(--white); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-family: var(--font);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0f2157, #1a56db);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--white);
}

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

/* ---- LEGAL PAGES ---- */
.legal-content { padding: 3.5rem 0 5rem; }

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-content p { color: #374151; line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { color: #374151; line-height: 1.8; font-size: 0.95rem; margin-bottom: 0.3rem; }

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p { margin: 0; color: var(--primary-dark); font-size: 0.9rem; }

.warning-box {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.warning-box p { margin: 0; color: #92400e; font-size: 0.9rem; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-info-card h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-item strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-item span { font-size: 0.82rem; color: var(--text-muted); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- ABOUT ---- */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.team-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.team-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---- SITEMAP ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.sitemap-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  font-family: var(--font);
}

.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 0.5rem; }
.sitemap-section a { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.sitemap-section a:hover { color: var(--primary); }
.sitemap-section a::before { content: '→'; font-size: 0.75rem; color: var(--primary); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: rgba(255,255,255,0.85);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: none;
  border-top: 3px solid var(--primary);
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 0.85rem; line-height: 1.6; margin: 0; }
.cookie-inner a { color: var(--accent); }

.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-cookie-accept { background: var(--primary); color: var(--white); padding: 0.5rem 1.2rem; border-radius: var(--radius-sm); border: none; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,0.6); padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; cursor: pointer; font-family: var(--font); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- AFFILIATE NOTICE ---- */
.affiliate-notice {
  background: #fef9ec;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: #78350f;
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.75rem; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0.75rem;
  }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.fw-600 { font-weight: 600; }
.show { display: block !important; }
