/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #0e1f44;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: rgba(24, 35, 58, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #334155;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
}



.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #5eead4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: #334155;
  color: #f1f5f9;
}

.subscribe-btn {
  background: #5eead4;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.subscribe-btn:hover {
  background: #1869e2;
}

/* Breadcrumb Styles */
.breadcrumb-section {
  background: #09003f;
  padding: 1rem 0;
  border-bottom: 1px solid #334155;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #94a3b8;
}

.breadcrumb-link {
  color: #94a3b8;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #ec4899;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: #cbd5e1;
}

/* Main Content Styles */
.main-content {
  padding: 2rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

/* Article Styles */
.article {
  background: #1e293b;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
}
.article-content img{
  width: 600px;
  border-radius: 10px;

}

.featured-illustration {
  margin-bottom: 2rem;
  text-align: center;
}

.illustration-container {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
}

.browser-mockup {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #334155;
}

.browser-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #334155;
}

.browser-buttons {
  display: flex;
  gap: 0.5rem;
}

.browser-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-btn.close {
  background: #ef4444;
}

.browser-btn.minimize {
  background: #f59e0b;
}

.browser-btn.maximize {
  background: #10b981;
}

.browser-title {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.875rem;
}

.browser-content {
  padding: 2rem;
}

.dropdown-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 0.875rem;
}
.form-group img{
  width: 220px;
  border-radius: 5px;
  position: relative;
  left: 15%;
}

.dropdown {
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #334155;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.dropdown option {
  color: #e5e7eb;
  background: #334155;
}

.illustration-caption {
  color: #94a3b8;
  font-size: 0.875rem;
  font-style: italic;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag.javascript {
  background: #451a03;
  color: #fbbf24;
  border: 1px solid #92400e;
}

.tag.php {
  background: #1e1b4b;
  color: #a5b4fc;
  border: 1px solid #3730a3;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.article-date,
.article-comments {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-item .category-link .category-name{
  color: rgb(9, 128, 179);
  text-decoration: none;
}
.category-item .category-link .category-count {
  color: rgb(9, 128, 179);
  text-decoration: none;
}

.title-dot {
  width: 8px;
  height: 8px;
  background: #ff1188;
  border-radius: 50%;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 2px;
  font-size: 0.875rem;
  background: #334155;
  color: #e5e7eb;
  position: relative;
  right: 7%;

}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  outline: none;
  border-color: #7c2852;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.search-btn {
  background: #2dedf7;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  right: 8%;
}

.search-btn:hover {
  background: #09729f;
}

.author-card {
  text-align: center;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid #475569;
}

.author-card .author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.author-bio {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link.facebook {
  background: #1877f2;
}
.social-link.twitter {
  background: #1da1f2;
}
.social-link.instagram {
  background: #e4405f;
}
.social-link.linkedin {
  background: #0077b5;
}
.social-link.youtube {
  background: #ff0000;
}
.social-link.pinterest {
  background: #bd081c;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.recent-post:hover {
  background: #334155;
}

.post-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #475569;
}

.post-info {
  flex: 1;
}

.post-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.post-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}


 /* Footer */
        .footer {
            background-color: #111827;
            border-top: 1px solid #374151;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .footer-description {
            color: #9ca3af;
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-links a {
            color: #9ca3af;
            font-size: 1.25rem;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: #5eead4;
        }

        .footer-title {
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #5eead4;
        }

        .footer-contact {
            list-style: none;
            color: #9ca3af;
        }

        .footer-contact li {
            margin-bottom: 0.5rem;
        }

        .footer-bottom {
            border-top: 1px solid #374151;
            padding-top: 2rem;
            text-align: center;
            color: #9ca3af;
        }



/* Responsive Design */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .article-content img{
  width: 300px;
  border-radius: 10px;

}

  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .form-group img{
  width: 220px;
  border-radius: 5px;
  position: relative;
  left: 6%;
}
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .article {
    padding: 1.5rem;
  }

  .browser-content {
    padding: 1rem;
  }

  .illustration-container {
    padding: 1rem;
  }
}






@media (max-width: 821px) {
  
  .article-content img{
  width: 200px;
  border-radius: 10px;

}
 .header{
  position: relative;
  
}
}
@media (max-width: 1025px) {
  
  .article-content img{
  width: 200px;
  border-radius: 10px;

}
.subscribe-btn{
  display: none;
}
}
