/* Modern Tech Blog Theme - style6.css */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --background-main: #fff;
  --background-light: #f9f9f9;
  --background-dark: #2c3e50;
  --border-color: #eaeaea;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --radius: 5px;
  --header-height: 70px;
}

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

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

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

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

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

button {
  cursor: pointer;
}

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

/* Header */
.site-header {
  background-color: var(--background-main);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.site-logo a {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
}

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

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

.desktop-nav .nav-item {
  margin-left: 25px;
  position: relative;
}

.desktop-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  padding: 5px 0;
  position: relative;
}

.desktop-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.desktop-nav .nav-link:hover:after {
  width: 100%;
}

.search-toggle,
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  display: none;
}

/* Search Bar */
.search-container {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--background-main);
  padding: 15px 0;
  transform: translateY(-100%);
  transition: transform var(--transition-speed);
  z-index: 999;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.search-container.active {
  transform: translateY(0);
}

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

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.search-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color var(--transition-speed);
}

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

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--secondary-color);
  color: white;
  padding: 80px 0;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color var(--transition-speed);
}

.hero-button:hover {
  background-color: var(--accent-color);
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(52, 152, 219, 0.2);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin-bottom: 60px;
}

.main-column {
  background-color: var(--background-main);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

/* Section Styling */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Featured Posts Grid */
.featured-posts {
  margin-bottom: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

.post-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-category {
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
  font-weight: 500;
  z-index: 1;
}

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

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

.post-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.post-card-date {
  display: flex;
  align-items: center;
}

.post-card-date i {
  margin-right: 5px;
}

.post-card-comments {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.post-card-comments i {
  margin-right: 5px;
}

.post-card-excerpt {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.read-more {
  font-weight: 500;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.read-more i {
  margin-left: 5px;
  transition: transform var(--transition-speed);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Latest Posts List */
.latest-posts {
  margin-bottom: 40px;
}

.post-list-item {
  display: flex;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.post-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post-list-image {
  width: 250px;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-right: 25px;
  flex-shrink: 0;
}

.post-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.post-list-item:hover .post-list-image img {
  transform: scale(1.05);
}

.post-list-content {
  flex: 1;
}

.post-list-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-list-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.post-list-excerpt {
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Sidebar Widgets */
.widget {
  background-color: var(--background-main);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.popular-posts-widget .popular-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.popular-posts-widget .popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-right: 15px;
}

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

.popular-post-content {
  flex: 1;
}

.popular-post-title {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.3;
  font-weight: 500;
}

.popular-post-meta {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.categories-widget .category-list {
  list-style: none;
}

.categories-widget .category-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.categories-widget .category-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories-widget .category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding var(--transition-speed);
}

.categories-widget .category-link:hover {
  padding-left: 5px;
}

.tag-cloud-widget .tag-cloud {
  display: flex;
  flex-wrap: wrap;
}

.tag-cloud-widget .tag-link {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  background-color: var(--background-light);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.tag-cloud-widget .tag-link:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.pagination a, 
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: var(--radius);
  background-color: var(--background-main);
  color: var(--text-color);
  font-weight: 500;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination span.current {
  background-color: var(--primary-color);
  color: white;
}

.pagination .next,
.pagination .prev {
  width: auto;
  padding: 0 15px;
}

/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed), padding var(--transition-speed);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-subscribe p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-form {
  display: flex;
}

.subscribe-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.subscribe-button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color var(--transition-speed);
}

.subscribe-button:hover {
  background-color: var(--accent-color);
}

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

/* Article Page Styles */
.article-header {
  margin-bottom: 30px;
}

.article-meta {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-lighter);
}

.article-category {
  background-color: var(--primary-color);
  color: white;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-right: 15px;
}

.article-author {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.article-author i {
  margin-right: 5px;
}

.article-date {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.article-date i {
  margin-right: 5px;
}

.article-comments {
  display: flex;
  align-items: center;
}

.article-comments i {
  margin-right: 5px;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 1rem;
}

.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--background-light);
  font-style: italic;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.article-tag {
  background-color: var(--background-light);
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

.article-share {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--background-light);
  border-radius: var(--radius);
}

.share-title {
  font-weight: 500;
  margin-right: 15px;
}

.share-buttons {
  display: flex;
}

.share-button {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color var(--transition-speed);
}

.share-button:hover {
  background-color: var(--accent-color);
  color: white;
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
  max-width: 45%;
}

.nav-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-bottom: 5px;
}

.nav-title {
  font-weight: 500;
  font-size: 1.1rem;
}

/* Related & Similar Posts Sections */
.related-posts,
.missed-posts {
  margin-top: 50px;
}

.related-grid,
.missed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Go to top button */
.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.go-top.active {
  opacity: 1;
  visibility: visible;
}

.go-top:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid,
  .missed-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 15px 0;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .search-toggle,
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
  }
  
  .search-toggle {
    margin-right: 15px;
  }
  
  .post-list-item {
    flex-direction: column;
  }
  
  .post-list-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .related-grid,
  .missed-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .go-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100%;
  background-color: var(--background-main);
  z-index: 1001;
  overflow-y: auto;
  transition: left var(--transition-speed);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.close-menu {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
}

.mobile-nav {
  padding: 20px;
}

.mobile-nav .nav-list {
  list-style: none;
}

.mobile-nav .nav-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.mobile-nav .nav-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.mobile-nav .nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-color);
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.overlay.active {
  display: block;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--background-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 