@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
/* Premium Design System & Stylesheet - Best AI Network Clone */

:root {
  --primary-color: #0f172a;
  --secondary-color: #4f46e5;
  --success-color: #10b981;
  --alert-color: #ef4444;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.05);
}

.nav-right .btn-signup {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  cursor: pointer;
}

.nav-right .btn-signup:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  max-width: 1250px;
  margin: 50px auto 30px auto;
  padding: 0 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 46px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 35px auto;
}

/* Search Bar */
.search-container {
  max-width: 650px;
  margin: 0 auto 50px auto;
  position: relative;
}

.search-wrapper {
  display: flex;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.search-wrapper:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 16px;
}

.search-wrapper button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.search-wrapper button:hover {
  background: var(--secondary-color);
}

/* Main Grid & Filters */
.main-layout {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px 80px 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar Categories Filter */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-block {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  color: var(--primary-color);
}

.category-list-filter {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-filter-item:hover, .category-filter-item.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--secondary-color);
}

/* Cards Grid */
.tools-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-tag {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

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

/* Tool Card */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.tool-card-ranking {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border-bottom: 2px solid #cbd5e1;
}

.tool-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.tool-title-wrapper {
  flex: 1;
  min-width: 0;
}

.tool-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #eab308;
  margin-top: 2px;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 63px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-featured {
  background: #fef3c7;
  color: #d97706;
}

.badge-free {
  background: #d1fae5;
  color: #059669;
}

.badge-hot {
  background: #fee2e2;
  color: #dc2626;
}

.badge-freemium {
  background: #e0e7ff;
  color: #4f46e5;
}

.badge-latest-ai {
  background: #f1f5f9;
  color: #475569;
}

.tool-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-views {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-visit {
  background: var(--primary-color);
  color: #fff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}

.btn-visit:hover {
  background: var(--secondary-color);
}

/* Category Block Rows (Home Special layout) */
.category-blocks-container {
  max-width: 1250px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

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

.category-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 1px 1px 10px rgba(113, 152, 239, 0.15);
  display: flex;
  flex-direction: column;
}

.category-block-header {
  border-bottom: 2px solid;
  border-image: linear-gradient(89deg, #a0dbfd 1%, #947bed 26%, #fb81b5 51%, #ffbd75 98%) 1;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.category-block-title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.category-block-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.category-block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.category-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.category-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-size: cover;
  flex-shrink: 0;
}

.category-item-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item-link-icon {
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.category-block-item:hover .category-item-link-icon {
  opacity: 1;
  color: var(--secondary-color);
}

.category-block-footer-link {
  display: block;
  text-align: center;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.category-block-footer-link:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn.active, .page-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Breadcrumbs Section */
.breadcrumbs-section {
  background-color: #fff8dc;
  border-bottom: 16px solid #fff2b7;
  padding: 40px 0;
  margin-bottom: 50px;
}

.breadcrumbs-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumbs-path {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.breadcrumbs-path a {
  color: var(--secondary-color);
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.detail-header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.detail-icon-large {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  border: 4px solid rgba(180, 189, 195, 0.5);
  box-shadow: 1px 4px 5px 0 #aad1ff;
  background: #fff;
}

.detail-title-meta h1 {
  font-size: 28px;
  font-weight: 800;
}

/* Detail Grid Layout */
.detail-layout {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px 80px 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.detail-main-content {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.detail-rich-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: var(--primary-color);
}

.detail-rich-text p {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #334155;
  text-align: justify;
}

.detail-rich-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.detail-rich-text li {
  margin-bottom: 8px;
  font-size: 15px;
}

.sidebar-stats-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item-box {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--text-muted);
}

.stat-info-text {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-sidebar-visit {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 15px;
  box-shadow: var(--shadow-md);
}

.btn-sidebar-visit:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Archive Grids (Tutorials & News) */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.archive-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.archive-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.archive-body {
  padding: 24px;
}

.archive-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.archive-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 12px;
}

.archive-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
footer {
  background: #000;
  color: #94a3b8;
  padding: 60px 20px 30px 20px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-about p {
  line-height: 1.7;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1250px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Mobile Sidebar Layout */
@media (max-width: 991px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .hero-section h1 {
    font-size: 36px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 549px) {
  .hero-section h1 {
    font-size: 28px;
  }
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  .detail-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Brand Logo Styling - Premium Tech Style */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}

.logo-icon {
  background: #000000;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.8px;
  transition: var(--transition-smooth);
}

.logo-text span {
  font-weight: 300;
  color: #6366f1;
}

.logo-container:hover .logo-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.logo-container:hover .logo-text {
  color: #a855f7;
}

/* About Intro Section */
.about-intro-section {
  max-width: 1250px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.about-intro-container {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-premium);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-intro-container::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.about-intro-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
  display: inline-block;
  margin-bottom: 12px;
}

.about-intro-text h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.about-intro-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-feature-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.about-feature-item:hover .about-feature-icon {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.about-feature-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.about-feature-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.about-intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-intro-image .image-wrapper {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.about-intro-image .image-wrapper:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: var(--shadow-premium);
}

.about-intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Update responsive styling for about section */
@media (max-width: 991px) {
  .about-intro-container {
    grid-template-columns: 1fr;
    padding: 35px;
    gap: 35px;
  }
  .about-intro-text h2 {
    font-size: 30px;
  }
  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .about-feature-item {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
}

