/*
Theme Name: AI Tools Daily v2
Theme URI: https://aitoolsdaily.net
Author: AI Tools Daily Team
Description: Professional AI tools review theme - v2
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: aitoolsdaily
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ========== TOKENS ========== */
:root {
  --navy:      #0B1120;
  --navy2:     #131F35;
  --blue:      #2563EB;
  --blue-lt:   #EFF6FF;
  --blue-md:   #DBEAFE;
  --blue-bright:#3B82F6;
  --white:     #FFFFFF;
  --bg:        #F8FAFC;
  --body:      #334155;
  --slate:     #1E293B;
  --meta:      #64748B;
  --border:    #E2E8F0;
  --radius:    10px;
  --shadow:    0 2px 16px rgba(37,99,235,0.08);
  --shadow-lg: 0 8px 32px rgba(37,99,235,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7; color: var(--body); background: var(--bg); }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--slate); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; color: var(--slate); line-height: 1.3; font-weight: 700; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 20px;
}

/* LOGO */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.25), 0 4px 12px rgba(37,99,235,0.2);
  flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; color: #fff; }
.logo-main em { color: var(--blue-bright); font-style: normal; }
.logo-sub { font-size: 10px; color: #64748B; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.main-nav a {
  font-size: 13.5px; font-weight: 600;
  color: #94A3B8;
  padding: 7px 13px; border-radius: 6px;
  transition: all 0.18s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.main-nav a.active { color: #fff; background: var(--blue); }

/* SEARCH */
.nav-search-form { display: flex; align-items: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 7px; padding: 6px 12px; gap: 7px; transition: all 0.2s; }
.nav-search-form:focus-within { border-color: var(--blue); background: rgba(255,255,255,0.1); }
.nav-search-form input { border: none; background: none; color: #fff; font-size: 13px; outline: none; width: 150px; font-family: 'Inter', sans-serif; }
.nav-search-form input::placeholder { color: #475569; }
.search-icon { color: #475569; font-size: 13px; flex-shrink: 0; }

/* ========== HERO ========== */
.hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 800px 500px at 60% 40%, rgba(37,99,235,0.12) 0%, transparent 60%);
  padding: 72px 0 64px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 5%, var(--blue) 40%, var(--blue-bright) 60%, transparent 95%); }
.hero-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.35); color: #93C5FD; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); color: #fff; margin-bottom: 18px; }
.hero h1 span { color: #60A5FA; }
.hero p { font-size: 17px; color: #94A3B8; max-width: 500px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--blue); color: #fff; padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: 14px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-primary:hover { background: #1D4ED8; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-secondary { background: rgba(255,255,255,0.07); color: #CBD5E1; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,0.12); transition: all 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ========== CATEGORY BAR ========== */
.cat-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.cat-bar-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; overflow-x: auto; scrollbar-width: none; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-link { display: flex; align-items: center; gap: 6px; padding: 15px 18px; font-size: 13.5px; font-weight: 600; color: var(--meta); border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.18s; }
.cat-link:hover { color: var(--slate); border-bottom-color: var(--blue-md); }
.cat-link.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ========== SECTION HEADER ========== */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sec-title { font-size: 21px; font-weight: 700; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ''; width: 4px; height: 22px; background: var(--blue); border-radius: 2px; display: inline-block; }
.sec-more { font-size: 13px; font-weight: 600; color: var(--blue); }

/* ========== ARTICLE CARDS ========== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acard { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.28s; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-md); }
.acard-img { width: 100%; height: 192px; object-fit: cover; }
.acard-ph { width: 100%; height: 192px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.acard-body { padding: 18px; }
.acard-cat { display: inline-block; background: var(--blue-lt); color: var(--blue); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.acard-title { font-size: 16.5px; font-weight: 700; color: var(--slate); line-height: 1.4; margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard-title a { color: inherit; }
.acard-title a:hover { color: var(--blue); }
.acard-excerpt { font-size: 13.5px; color: var(--meta); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--meta); }
.acard-read { color: var(--blue); font-weight: 700; font-size: 13px; }
.acard-read:hover { color: var(--slate); }

/* ========== MAIN LAYOUT ========== */
.main-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 44px 0; }
.content-col { min-width: 0; }

/* ========== SIDEBAR ========== */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.widget-head { background: var(--navy); padding: 13px 18px; }
.widget-title { font-size: 14px; font-weight: 700; color: #fff; }
.widget-body { padding: 16px 18px; }
.widget-about { text-align: center; }
.widget-about .w-icon { font-size: 44px; margin-bottom: 10px; }
.widget-about p { font-size: 13.5px; color: var(--meta); line-height: 1.65; }
.cat-widget-list { list-style: none; }
.cat-widget-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list a { color: var(--body); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cat-widget-list a:hover { color: var(--blue); }
.cat-widget-list .cnt { background: var(--blue-lt); color: var(--blue); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.nl-dark { background: var(--navy); border-color: var(--navy); }
.nl-dark .widget-head { background: var(--blue); }
.nl-dark .widget-body { background: var(--navy); }
.nl-desc { font-size: 13.5px; color: #64748B; margin-bottom: 13px; line-height: 1.6; }
.nl-inp { width: 100%; padding: 9px 13px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #fff; font-size: 13.5px; margin-bottom: 8px; outline: none; font-family: 'Inter', sans-serif; }
.nl-inp::placeholder { color: #334155; }
.nl-btn { width: 100%; background: var(--blue); color: #fff; border: none; padding: 9px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; }
.nl-btn:hover { background: #1D4ED8; }

/* ========== SINGLE POST ========== */
.post-container { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.post-head { padding: 32px 36px 0; }
.post-cat-badge { display: inline-block; background: var(--blue-lt); color: var(--blue); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-title { font-size: clamp(24px, 4vw, 36px); color: var(--slate); line-height: 1.25; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--meta); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 0; }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 0; }
.post-body { padding: 32px 36px 36px; font-size: 16.5px; line-height: 1.85; color: var(--body); }
.post-body h2 { font-size: 24px; color: var(--slate); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-lt); }
.post-body h3 { font-size: 19px; color: var(--slate); margin: 28px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-body li { margin-bottom: 7px; }
.post-body strong { color: var(--slate); font-weight: 700; }
.post-body a { color: var(--blue); border-bottom: 1px solid var(--blue-md); }
.post-body a:hover { color: var(--slate); }
.post-body blockquote { border-left: 4px solid var(--blue); background: var(--blue-lt); padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 17px; color: var(--slate); }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; border-radius: var(--radius); overflow: hidden; }
.post-body th { background: var(--navy); color: #fff; padding: 11px 14px; text-align: left; font-size: 13px; font-weight: 700; }
.post-body td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.post-body tr:nth-child(even) td { background: var(--bg); }
.post-body tr:hover td { background: var(--blue-lt); }

/* ========== VERDICT/RATING BOX ========== */
.verdict-box { background: var(--navy); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; }
.verdict-score { font-size: 48px; font-weight: 800; color: var(--blue-bright); line-height: 1; }
.verdict-label { font-size: 13px; color: #64748B; margin-top: 4px; }

/* ========== RELATED POSTS ========== */
.related-posts { padding: 32px 36px; border-top: 1px solid var(--border); background: var(--bg); }
.related-title { font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.related-title::before { content: ''; width: 4px; height: 20px; background: var(--blue); border-radius: 2px; display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; }
.related-card:hover { border-color: var(--blue-md); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card-img { width: 100%; height: 130px; object-fit: cover; }
.related-card-ph { width: 100%; height: 130px; background: linear-gradient(135deg, var(--navy), var(--navy2)); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.related-card-body { padding: 14px; }
.related-card-cat { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.related-card-title { font-size: 13.5px; font-weight: 700; color: var(--slate); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-title a { color: inherit; }
.related-card-title a:hover { color: var(--blue); }

/* ========== BREADCRUMB ========== */
.breadcrumb { font-size: 13px; color: var(--meta); padding: 12px 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); font-weight: 500; }
.breadcrumb-sep { color: var(--border); }

/* ========== PAGINATION ========== */
.atd-pagi { display: flex; justify-content: center; gap: 6px; margin: 44px 0; }
.atd-pagi a, .atd-pagi span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); color: var(--body); transition: all 0.18s; }
.atd-pagi a:hover { border-color: var(--blue); color: var(--blue); }
.atd-pagi .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ========== PAGE ========== */
.page-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin: 36px 0; }
.page-wrap h1 { font-size: 30px; color: var(--slate); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--blue-lt); }
.page-body { font-size: 16px; line-height: 1.8; }
.page-body p { margin-bottom: 16px; }

/* ========== FOOTER ========== */
.site-footer { background: var(--navy); margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 36px; }
.footer-brand p { font-size: 13.5px; color: #334155; line-height: 1.7; margin-top: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-badge { width: 32px; height: 32px; background: var(--blue); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.footer-logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.footer-logo-text em { color: var(--blue-bright); font-style: normal; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--blue-bright); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #334155; font-size: 13.5px; transition: color 0.18s; }
.footer-col ul a:hover { color: #9CA3AF; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 12.5px; color: #1E293B; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #1E293B; }
.footer-bottom-links a:hover { color: #9CA3AF; }

/* ========== 404 ========== */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-size: 100px; font-weight: 800; color: var(--blue-lt); font-family: 'Space Grotesk', sans-serif; }
.error-page h2 { font-size: 26px; color: var(--slate); margin: 10px 0 12px; }
.error-page p { color: var(--meta); margin-bottom: 24px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar-col { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 12px 16px; height: auto; flex-wrap: wrap; gap: 10px; }
  .main-nav { display: none; }
  .nav-search-form input { width: 120px; }
  .hero { padding: 44px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .post-head { padding: 16px 16px 0; }
  .post-body { padding: 16px 16px 20px; font-size: 15px; }
  .related-posts { padding: 16px; }
  .post-title { font-size: 22px !important; }
  .post-meta { gap: 10px; font-size: 12px; padding: 10px 16px; }
  .post-cat-badge { margin: 0 0 0 16px; }
  .main-wrap { padding: 24px 0; }
}
