/* Blog Styles */
/* Matching portfolio dark theme with modern blog design */

:root {
  /* Dark theme colors matching portfolio */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --accent-primary: #00ff88;
  --accent-secondary: #00cc6a;
  --text-primary: #ffffff;
  --text-secondary: #7f7f7f;
  --text-muted: #4a4a4a;
  --border-color: #333333;
  --border-light: #444444;
  --success-color: #00ff88;
  --error-color: #ff4444;
  --warning-color: #ffaa00;
  --info-color: #4488ff;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

/* OVERRIDE PORTFOLIO STYLES - FORCE DARK THEME */
body {
  font-family: "Inter", sans-serif !important;
  background: #0a0a0a !important;
  color: #ffffff !important;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  background: transparent !important;
  margin: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Header Styles - Override portfolio header */
header {
  background: #0a0a0a !important;
  border-bottom: 1px solid #1a1a1a !important;
  padding: 1rem 2rem !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

header.scrolled {
  background: #0a0a0a !important;
  box-shadow: 0 2px 20px rgba(0, 255, 136, 0.1) !important;
}

.blog-header,
.post-header {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Logo styling */
#logo {
  display: flex;
  align-items: center;
}

#logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#logo a:hover {
  opacity: 0.8;
}

#logo img {
  height: 40px !important;
  width: auto !important;
  border-radius: 8px;
  animation: none !important;
}

.logo-text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition-normal);
}

.logo-link:hover {
  transform: translateY(-2px);
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Navigation Links - Override portfolio styles */
.nav-links {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li a {
  font-size: 15px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  position: relative;
  padding-bottom: 8px;
  font-weight: 500 !important;
}

.nav-links li a:hover {
  color: #00ff88 !important;
}

.nav-links li a.active {
  color: #00ff88 !important;
}

.nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ff88;
  transform: scaleX(1);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ff88;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-normal);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #00ff88;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ff88;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
  z-index: 2001;
}

.mobile-menu-btn:hover {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0a0a0a !important;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1a1a1a;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.mobile-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  margin: 0;
  padding: 0;
}

.mobile-link {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
  display: block;
  padding: 0.5rem 0;
}

.mobile-link:hover,
.mobile-link.active {
  color: #00ff88 !important;
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #00ff88;
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: #7f7f7f;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.blog-main,
.post-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 100px;
}

/* Blog Filters */
.blog-filters {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-section {
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.clear-search:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.category-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.category-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  color: var(--error-color);
  margin-bottom: 1rem;
}

.error-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
}

.post-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

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

.no-image {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-date,
.post-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-more {
  background: var(--border-color);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-bottom: 2rem;
}

.pagination-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Post Content Styles */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.breadcrumb .separator {
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: var(--text-primary);
}

.post-header-content {
  margin-bottom: 3rem;
  text-align: center;
}

.post-author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.author-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.post-reading-time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-featured-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.post-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.post-body h1 {
  font-size: 2rem;
}

.post-body h2 {
  font-size: 1.5rem;
}

.post-body h3 {
  font-size: 1.3rem;
}

.post-body h4 {
  font-size: 1.1rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.post-body code {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.post-body pre {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.post-body a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.post-body a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Table of Contents */
.table-of-contents {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.table-of-contents a:hover {
  color: var(--accent-primary);
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-tags h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-list .tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.tags-list .tag:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.share-section {
  margin-bottom: 2rem;
}

.share-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.share-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.facebook:hover {
  background: #4267b2;
  color: white;
  border-color: #4267b2;
}

.share-btn.copy:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-posts h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-post {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.related-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-image {
  height: 150px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.related-content {
  padding: 1rem;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-excerpt {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-date {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Back to Blog */
.back-to-blog {
  text-align: center;
  margin: 3rem 0;
}

/* Footer - Override portfolio footer */
footer,
.custom-footer {
  background: #0a0a0a !important;
  border-top: 1px solid #1a1a1a !important;
  margin-top: 4rem !important;
  padding: 2rem !important;
  text-align: center !important;
  width: 100% !important;
}

.footer-bottom {
  text-align: center !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}

.footer-bottom p {
  color: #7f7f7f !important;
  font-size: 0.9rem !important;
  margin: 0.5rem 0 !important;
}

/* Original footer styles for other use cases */
.blog-footer,
.post-footer-page {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-info h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-info p {
  color: #7f7f7f;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #7f7f7f;
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.social-links a:hover {
  color: #00ff88;
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: var(--transition-normal);
  z-index: 2000;
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  color: var(--accent-primary);
}

.toast span {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.error-toast {
  border-color: var(--error-color);
  background: rgba(255, 68, 68, 0.05);
}

.error-toast i {
  color: var(--error-color);
}

/* Animation Classes */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Print Styles */
@media print {
  .blog-header,
  .post-header,
  .mobile-nav,
  .share-section,
  .related-posts,
  .blog-footer,
  .post-footer-page {
    display: none;
  }

  .post-body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .post-title {
    font-size: 18pt;
  }

  .post-body h1 {
    font-size: 16pt;
  }

  .post-body h2 {
    font-size: 14pt;
  }

  .post-body h3 {
    font-size: 12pt;
  }
}

/* ============================================= */
/* RESPONSIVE DESIGN - MOBILE STYLES */
/* ============================================= */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem !important;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .blog-main,
  .post-main {
    padding: 1.5rem;
    padding-top: 100px;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav-links {
    display: none !important;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block !important;
  }

  /* Header adjustments */
  header {
    padding: 1rem !important;
  }

  #logo img {
    height: 35px !important;
  }

  .logo-text {
    font-size: 14px !important;
  }

  /* Hero section */
  .blog-hero {
    padding: 5rem 1rem 3rem 1rem;
    margin-top: 70px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Main content */
  .blog-main,
  .post-main {
    padding: 1rem;
    padding-top: 80px;
  }

  /* Blog filters */
  .blog-filters {
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
  }

  .category-filters {
    justify-content: flex-start;
  }

  .category-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Posts grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card {
    margin-bottom: 0;
  }

  .post-image {
    height: 180px;
  }

  .post-content {
    padding: 1.25rem;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  /* Post detail page */
  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .post-header-content {
    margin-bottom: 2rem;
  }

  .post-header-content .post-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .post-featured-image img {
    height: 250px;
  }

  .post-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .post-body h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem 0;
  }

  .post-body h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
  }

  .post-body h3 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.75rem 0;
  }

  .post-body h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
  }

  .post-body p {
    margin-bottom: 1.25rem;
  }

  .post-body blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .post-body pre {
    padding: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
  }

  .post-body code {
    font-size: 0.85rem;
  }

  /* Share buttons */
  .share-buttons {
    justify-content: center;
    gap: 0.4rem;
  }

  .share-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Related posts */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-image {
    height: 120px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-left {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }

  /* Toast notifications */
  .toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }

  /* Loading and error states */
  .loading-state,
  .empty-state,
  .error-state {
    padding: 3rem 1rem;
  }

  .empty-icon,
  .error-icon {
    font-size: 3rem;
  }

  .empty-state h3,
  .error-state h3 {
    font-size: 1.25rem;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 0.75rem !important;
  }

  #logo img {
    height: 30px !important;
  }

  .logo-text {
    font-size: 13px !important;
  }

  .mobile-menu-btn {
    font-size: 20px;
    padding: 0.4rem;
  }

  /* Mobile nav */
  .mobile-nav {
    padding: 1.5rem;
  }

  .mobile-nav-header {
    margin-bottom: 2rem;
  }

  .mobile-nav-links {
    gap: 1.25rem;
  }

  .mobile-link {
    font-size: 1.1rem !important;
  }

  /* Hero */
  .blog-hero {
    padding: 4rem 0.75rem 2.5rem 0.75rem;
  }

  .hero-content {
    padding: 0 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  /* Main content */
  .blog-main,
  .post-main {
    padding: 0.75rem;
    padding-top: 70px;
  }

  /* Blog filters */
  .blog-filters {
    padding: 0.75rem;
  }

  .search-box input {
    padding: 0.65rem 2.5rem 0.65rem 2rem;
    font-size: 0.85rem;
  }

  .category-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  /* Posts grid */
  .posts-grid {
    gap: 1.25rem;
  }

  .post-image {
    height: 160px;
  }

  .post-content {
    padding: 1rem;
  }

  .post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .post-excerpt {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  /* Post detail */
  .breadcrumb {
    font-size: 0.75rem;
  }

  .post-header-content .post-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .post-meta {
    font-size: 0.7rem;
  }

  .post-featured-image img {
    height: 200px;
  }

  .post-body {
    font-size: 0.95rem;
  }

  .post-body h1 {
    font-size: 1.35rem;
  }

  .post-body h2 {
    font-size: 1.2rem;
  }

  .post-body h3 {
    font-size: 1.05rem;
  }

  .post-body h4 {
    font-size: 0.95rem;
  }

  .post-body pre {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .post-body blockquote {
    padding: 0.75rem;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .share-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  /* Related posts */
  .related-posts h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .related-image {
    height: 100px;
  }

  .related-content {
    padding: 0.75rem;
  }

  .related-title {
    font-size: 0.9rem;
  }

  .related-excerpt {
    font-size: 0.75rem;
  }

  /* Footer */
  .footer-bottom p {
    font-size: 0.8rem !important;
  }

  /* Toast */
  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* Loading states */
  .loading-state,
  .empty-state,
  .error-state {
    padding: 2.5rem 0.75rem;
  }

  .loading-spinner {
    width: 35px;
    height: 35px;
  }

  .empty-icon,
  .error-icon {
    font-size: 2.5rem;
  }

  .empty-state h3,
  .error-state h3 {
    font-size: 1.15rem;
  }

  .empty-state p,
  .error-state p {
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  #logo img {
    height: 28px !important;
  }

  .logo-text {
    font-size: 12px !important;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .post-image {
    height: 140px;
  }

  .post-featured-image img {
    height: 180px;
  }

  .posts-grid {
    gap: 1rem;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .blog-hero {
    padding: 3rem 1rem 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .post-featured-image img {
    height: 300px;
  }
}

/* Fix for mobile menu overflow */
@media (max-width: 768px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
