/* Cencer AI - Modern AI Tools Directory */
/* Premium Light Theme with Blue Gradients */

:root {
  --primary: #2563EB;
  --secondary: #3B82F6;
  --background: #FFFFFF;
  --section-bg: #F8FAFC;
  --text: #0F172A;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --gradient-hover: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system_ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system_ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* Navbar */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text) !important;
}

.navbar-brand .ai {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.06);
}

.navbar-nav .nav-item {
  margin: 0 4px;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.75rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-illustration {
  position: relative;
  z-index: 1;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Floating Cards in Hero */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.floating-card:nth-child(2) { animation-delay: -1.5s; }
.floating-card:nth-child(3) { animation-delay: -3s; }
.floating-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Search Section */
.search-section {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.search-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar .form-control {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  padding: 14px 24px;
  box-shadow: none;
}

.search-bar .form-control:focus {
  box-shadow: none;
}

.search-bar .btn {
  border-radius: 9999px;
  padding-left: 32px;
  padding-right: 32px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.filter-chip {
  background: var(--section-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.trending-searches {
  margin-top: 16px;
  text-align: center;
}

.trending-searches span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-right: 8px;
}

.trending-tag {
  background: var(--section-bg);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 4px;
  cursor: pointer;
  transition: var(--transition);
}

.trending-tag:hover {
  background: var(--primary);
  color: white;
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

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

/* Tool Cards */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-card .logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.tool-card .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-card h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.tool-card .category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 10px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 8px;
}

.tool-card .description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.tool-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
}

.badge-free {
  background: #E0F2FE;
  color: #0369A1;
}

.badge-paid {
  background: #FEF3C7;
  color: #B45309;
}

.tool-card .visit-btn {
  font-size: 0.875rem;
  padding: 6px 18px;
  border-radius: 9999px;
}

/* Category Cards */
.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-card .icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.category-card h5 {
  margin-bottom: 8px;
}

.category-card .count {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Trending Cards */
.trending-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.trending-card .logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
}

.trending-card .content {
  flex: 1;
  min-width: 0;
}

.trending-card .content h6 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.trending-card .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #F59E0B;
  font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

/* News / Blog Cards */
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

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

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card .content {
  padding: 20px;
}

.news-card .meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.news-card h6 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Newsletter */
.newsletter {
  background: var(--section-bg);
  border-radius: var(--radius);
  padding: 48px;
}

.newsletter input {
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 1rem;
}

/* Footer */
footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 60px 0 30px;
}

footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: white;
}

footer .social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: var(--transition);
}

footer .social-icon:hover {
  background: var(--primary);
  color: white;
}

/* Tools Page Specific */
.tools-header {
  background: var(--section-bg);
  padding: 40px 0 30px;
}

.filter-sidebar {
  position: sticky;
  top: 90px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.sort-select {
  border-radius: 9999px;
  padding-left: 18px;
}

/* Tool Detail Modal */
.modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.tool-detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros ul, .cons ul {
  padding-left: 20px;
}

.pros li::marker, .pros ul li {
  color: #10B981;
}

.cons li::marker, .cons ul li {
  color: #EF4444;
}

/* Categories Page */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Blog Page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.featured-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--section-bg);
  border-radius: var(--radius);
  padding: 40px;
}

@media (max-width: 992px) {
  .featured-blog {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info {
  background: var(--section-bg);
  border-radius: var(--radius);
  padding: 40px;
}

/* Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.75rem; }
  .hero { padding: 100px 0 60px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  .section { padding: 60px 0; }
  .hero p { font-size: 1.1rem; }
  .floating-card {
    display: none;
  }
}

@media (max-width: 576px) {
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius);
  }
  .search-bar .form-control {
    width: 100%;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.pagination .page-link {
  border-radius: 50%;
  margin: 0 4px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Misc */
.rating-stars {
  color: #F59E0B;
}

/* SEO friendly hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}