
:root {
  --primary: #0a0e27;
  --secondary: #1a1f3a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --success: #10b981;
  --light: #f8fafc;
  --muted: #94a3b8;
  --dark: #020617;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
}

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

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* HERO SECTION */
.blog-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.blog-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-hero-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
}

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

.blog-hero-content p {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* FILTER SECTION */
.blog-filter {
  background: var(--secondary);
  padding: 30px 0;
  position: sticky;
  top: 134px;
  z-index: 100;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-categories {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  gap: 10px;
  max-width: 300px;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--light);
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box i {
  color: var(--accent);
}

/* FEATURED POST */
.featured-section {
  background: var(--primary);
  padding-top: 80px;
}

.featured-post {
  background: var(--secondary);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.featured-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  border-color: var(--accent);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.featured-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.featured-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--accent);
}

.featured-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--light);
}

.featured-content p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: gap 0.3s ease;
}

.featured-post:hover .read-more {
  gap: 15px;
}

/* BLOG GRID */
.blog-posts {
  background: var(--dark);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
}

.blog-card {
  background: var(--secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.blog-image {
  width: 100%;
  height: 240px;
  background: var(--gradient-accent);
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--light);
  line-height: 1.4;
}

.blog-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-details span {
  display: block;
  font-size: 0.85rem;
}

.author-name {
  color: var(--light);
  font-weight: 600;
}

.post-date {
  color: var(--muted);
}

.read-time {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* LOAD MORE */
.load-more-section {
  text-align: center;
  padding: 60px 0;
  background: var(--dark);
}

.btn {
  padding: 16px 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

/* NEWSLETTER */
.newsletter {
  background: var(--primary);
  padding: 80px 0;
}

.newsletter-box {
  background: var(--gradient-accent);
  padding: 60px;
  border-radius: 24px;
  text-align: center;
}

.newsletter-box h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.newsletter-box p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background: white;
  color: var(--accent);
  padding: 16px 40px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
footer {
  background: var(--dark);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

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

.footer-about h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-about p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--light);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-image { min-height: 350px; }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .blog-hero-content h1 { font-size: 2.5rem; }
  .featured-content { padding: 30px; }
  .featured-content h2 { font-size: 1.8rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .blog-hero-content h1 { font-size: 2rem; }
  .filter-categories { width: 100%; }
  .filter-btn { flex: 1; text-align: center; }
  .newsletter-box { padding: 40px 20px; }
}
