/*
Theme Name: Linksee Child
Template: astra
Version: 1.0.0
Description: Professional AI tools directory theme for linksee.wtf
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f13;
  color: #e8e8f0;
  margin: 0;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== HIDE DEFAULT ASTRA STUFF ===== */
.ast-above-header, .ast-below-header,
.ast-hfb-header .site-header-section,
.main-header-bar,
#masthead, .ast-masthead-custom-menu-items,
.ast-search-icon, .ast-mobile-menu-buttons { display: none !important; }

.hfb-header, .site-header { display: none !important; }

/* ===== CUSTOM NAV ===== */
#ls-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 2rem;
}

#ls-header .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

#ls-header .logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#ls-header .logo span { color: #fff; -webkit-text-fill-color: #fff; }

#ls-header nav { display: flex; gap: 2rem; align-items: center; }
#ls-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
#ls-header nav a:hover { color: #fff; }

.nav-submit-btn {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s !important;
}
.nav-submit-btn:hover { opacity: 0.85; }

/* ===== HERO ===== */
#ls-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(168,85,247,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              #0f0f13;
  padding: 80px 2rem 60px;
  text-align: center;
}

#ls-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  color: #c084fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

#ls-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 auto 1.2rem;
  max-width: 780px;
  color: #fff;
}

#ls-hero h1 .highlight {
  background: linear-gradient(135deg, #a855f7, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#ls-hero p.subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* Search box */
.ls-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.ls-search-wrap input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.ls-search-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.ls-search-wrap input:focus {
  border-color: rgba(168,85,247,0.6);
  background: rgba(255,255,255,0.09);
}
.ls-search-wrap .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}

/* Stats row */
.ls-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.ls-stat { text-align: center; }
.ls-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.ls-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

/* ===== CATEGORY PILLS ===== */
#ls-categories {
  background: #0f0f13;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#ls-categories .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.cat-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.5);
  color: #c084fc;
}
.cat-pill.active { background: rgba(168,85,247,0.2); }

/* ===== MAIN CONTENT AREA ===== */
#ls-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Section heading */
.ls-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.ls-section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}
.ls-section-head a {
  font-size: 0.82rem;
  color: #a855f7;
  font-weight: 600;
}
.ls-section-head a:hover { color: #c084fc; }

/* ===== FEATURED TOOLS (big cards) ===== */
.ls-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.tool-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.4rem;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.tool-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(168,85,247,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(168,85,247,0.1);
}
.tool-card:hover::before { opacity: 1; }

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-card-meta { flex: 1; min-width: 0; }
.tool-card-meta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.badge-writing { background: rgba(168,85,247,0.2); color: #c084fc; }
.badge-image { background: rgba(236,72,153,0.2); color: #f472b6; }
.badge-video { background: rgba(239,68,68,0.2); color: #f87171; }
.badge-coding { background: rgba(16,185,129,0.2); color: #34d399; }
.badge-productivity { background: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-research { background: rgba(59,130,246,0.2); color: #60a5fa; }
.badge-audio { background: rgba(6,182,212,0.2); color: #22d3ee; }
.badge-business { background: rgba(99,102,241,0.2); color: #818cf8; }

.tool-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-stars {
  display: flex;
  gap: 2px;
  align-items: center;
  font-size: 0.8rem;
  color: #fbbf24;
}
.tool-stars span { color: rgba(255,255,255,0.4); margin-left: 0.3rem; font-size: 0.75rem; }

.tool-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a855f7;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.tool-cta:hover {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.6);
}

/* ===== TRENDING (horizontal list) ===== */
.ls-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.trending-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.trending-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.trending-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trending-info { flex: 1; min-width: 0; }
.trending-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.15rem;
}
.trending-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-arrow {
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ===== CATEGORIES GRID ===== */
.ls-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.cat-card {
  padding: 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.cat-card .cat-emoji { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.cat-card h3 { font-size: 0.85rem; font-weight: 700; color: #fff; margin: 0 0 0.2rem; }
.cat-card span { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* ===== NEWSLETTER ===== */
#ls-newsletter {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
#ls-newsletter h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.5px;
}
#ls-newsletter p { color: rgba(255,255,255,0.55); margin: 0 auto 1.5rem; max-width: 420px; }

.nl-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button {
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nl-form button:hover { opacity: 0.85; }

/* ===== FOOTER ===== */
#ls-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem 2rem;
}
#ls-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand .logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.7rem;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }

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

/* ===== ASTRA CONTENT AREA OVERRIDE ===== */
.entry-content, .ast-article-single, .single-page-content,
.site-content, #primary, #content, .content-area { padding: 0 !important; }
.ast-container { max-width: none !important; padding: 0 !important; }
.site-content .ast-container { padding: 0 !important; }
.entry-header, .entry-footer, .ast-breadcrumbs-wrapper,
.post-navigation, .comments-area { display: none !important; }

/* Override Astra page/post wrapper */
.ast-single-post .entry-content { padding: 0 !important; }
article.page { background: transparent; }

/* Fix body layout */
.hfb-wrap { background: #0f0f13 !important; }
#page { background: #0f0f13 !important; }
.ast-above-header-bar, .ast-primary-header-bar, .ast-below-header-bar { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #ls-hero { padding: 50px 1.2rem 40px; }
  #ls-header .logo { font-size: 1.2rem; }
  #ls-header nav { gap: 1rem; }
  #ls-header nav a:not(.nav-submit-btn) { display: none; }
  .ls-featured-grid { grid-template-columns: 1fr; }
  .ls-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .nl-form { flex-direction: column; }
  .ls-stats { gap: 1.5rem; }
}
