/* Base Styles */
:root {
  --primary-color: #e74c3c;
  --secondary-color: #c0392b;
  --accent-color: #2ecc71;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --background: #fff;
  --light-background: #f9f9f9;
  --border-color: #eaeaea;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-background);
}

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

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

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

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* Header Styles */
header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  z-index: 99;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.nav-links a:hover, .nav-links a.active {
  background-color: var(--light-background);
  color: var(--primary-color);
}

.nav-links a i {
  margin-right: 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Featured Post */
.featured-post {
  margin: 1px 0;
}

.featured-post-content {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.featured-post-content:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
}

.featured-image {
  position: relative;
  height: 400px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.featured-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--lighter-text);
}

.featured-text .post-meta {
  color: rgba(255, 255, 255, 0.8);
}

.post-meta span i {
  margin-right: 5px;
}

/* Posts Grid */
.section-header {
  margin: 40px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.post-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.post-image {
  position: relative;
  height: 180px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 15px;
}

.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-color);
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: white;
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.category-card:hover .category-icon {
  color: white;
}

.category-card h3 {
  font-size: 1.2rem;
}

/* Category Page */
.category-header {
  background-color: var(--background);
  padding: 30px;
  border-radius: var(--border-radius);
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.no-posts {
  text-align: center;
  padding: 50px 0;
  color: var(--light-text);
}

/* Single Post Page */
.post-article {
  background-color: var(--background);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.post-header {
  margin-bottom: 20px;
}

.post-category a {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.post-featured-image {
  margin: 20px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
  margin: 30px 0 15px;
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.like-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-background);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.like-button:hover, .like-button.liked {
  background-color: var(--accent-color);
  color: white;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-buttons span {
  color: var(--light-text);
}

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-background);
  color: var(--text-color);
  transition: var(--transition);
}

.share-buttons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.related-posts h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.related-posts h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 100px 0;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.error-page p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: var(--background);
  padding: 50px 0 20px;
  margin-top: 50px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--light-text);
  font-size: 0.9rem;
}

.footer-links h3, .footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: var(--light-text);
}

.footer-links a:hover {
  color: var(--primary-color);
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-background);
  color: var(--text-color);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--lighter-text);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .featured-image {
    height: 350px;
  }
  
  .featured-text h1 {
    font-size: 1.8rem;
  }
  
  .post-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--background);
    width: 100%;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .featured-text h1 {
    font-size: 1.5rem;
  }
  
  .post-title {
    font-size: 1.8rem;
  }
  
  .post-actions {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-image {
    height: 250px;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
}

.logo-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo-link:hover {
  color: var(--primary-color);
} 