/*
Theme Name: Bizzrickness
Description: A minimal business blog theme for Markets, News, and Blog categories with card-based layout
Author: Bizzrickness Team
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: #404040;
  /* Changed background from grey to cream color */
  background: #faf8f5;
  position: relative;
}

/* Keeping dot pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Increased dot size from 1px to 1.2px (20% bigger) */
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop container with side margins like financial websites */
@media (min-width: 769px) {
  .container {
    max-width: 1080px; /* Reduced max-width by 20% from 900px to 1080px */
    margin: 0 auto;
    padding: 0 2.4rem; /* Reduced padding from 3rem to 2.4rem */
  }

  .main-content {
    /* Simplified background for main content */
    background: #ffffff;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
  position: relative;
}

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

.site-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000000; /* Changed color to black */
  text-decoration: none; /* Removed underline */
}

.site-title:hover {
  color: #000000; /* Keep black on hover */
}

/* Added hamburger menu for mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #404040;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

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

.main-nav a {
  text-decoration: none;
  color: #404040;
  font-weight: 400;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #ff1493; /* Changed from violet to hot pink */
}

/* Main content */
.main-content {
  padding: 2rem 0;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #404040;
  padding-bottom: 0.5rem;
}

/* Remove pink line for desktop only */
@media (min-width: 769px) {
  .section-title {
    border-bottom: none;
  }
}

/* Article cards */
.articles-grid {
  display: grid;
  gap: 1.5rem;
}

/* Updated desktop layout to match reference design with content left, image right */
@media (min-width: 769px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.article-card {
  /* Added glass effect with backdrop blur and semi-transparent background */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Desktop card layout like reference image - content left, image right */
@media (min-width: 769px) {
  .article-card {
    display: flex;
    /* Enhanced glass effect for desktop */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.article-card:hover {
  transform: translateY(-2px);
  /* Enhanced hover effect for glass cards */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.4);
}

.article-card-content {
  padding: 1rem;
}

/* Desktop content area takes more space, image positioned right */
@media (min-width: 769px) {
  .article-card-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .article-image {
    width: 160px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #e5e5e5;
    order: 2; /* Move image to right */
  }
}

.article-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #404040;
}

.article-title a {
  text-decoration: none;
  color: inherit;
}

.article-title a:hover {
  color: #ff1493;
}

/* Desktop title styling to match reference */
@media (min-width: 769px) {
  .article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #2c2c2c;
  }
}

.article-meta {
  font-size: 0.875rem;
  color: #808080;
  margin-bottom: 0.5rem;
}

.article-excerpt {
  font-size: 0.875rem;
  color: #606060;
  line-height: 1.5;
}

/* Desktop excerpt styling to match reference design */
@media (min-width: 769px) {
  .article-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
}

/* Desktop meta and category positioning at bottom */
@media (min-width: 769px) {
  .article-meta {
    font-size: 0.85rem;
    color: #999999;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
  }
}

.category-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #666666;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  text-decoration: none;
}

/* Desktop category badge styling */
@media (min-width: 769px) {
  .category-badge {
    background: #f5f5f5;
    color: #555555;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
  }
}

/* Single post styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

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

.post-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #404040;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.875rem;
  color: #808080;
  margin-bottom: 1rem;
}

.post-thumbnail {
  margin-bottom: 2rem;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #404040;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem 0;
  color: #404040;
}

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Archive header */
.archive-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* Mobile layout */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .article-card {
    display: flex;
    gap: 0.64rem;
    /* Added glass effect for mobile cards */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.64rem;
    margin-bottom: 0.51rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    flex-direction: row; /* Ensure horizontal layout */
  }

  .article-card:hover {
    transform: none;
    /* Subtle hover effect for mobile glass cards */
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  .article-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: #e5e5e5;
    order: 2; /* Move image to right */
  }

  .article-card-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 1; /* Keep content on left */
  }

  .article-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.34rem;
    line-height: 1.3;
  }

  .article-excerpt {
    display: none; /* No description in mobile */
  }

  .article-meta {
    font-size: 0.75rem;
    color: #999999;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .category-badge {
    background: #f0f0f0;
    color: #666666;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    text-decoration: none;
  }

  .section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.68rem;
    color: #404040;
    border-bottom: none;
    padding-bottom: 0;
  }

  .section {
    margin-bottom: 1.28rem;
  }

  .more-button {
    background: #404040;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
  }

  .more-button:hover {
    background: #333333;
  }

  .container {
    padding: 0 0.85rem;
  }

  .main-content {
    padding: 0.64rem 0;
  }

  .post-title {
    font-size: 2rem;
    font-weight: 600;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 2rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .post-content h3 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.5rem 0;
  }

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

  .post-content p {
    margin-bottom: 1rem;
  }

  .post-content img {
    border-radius: 0.25rem;
    margin: 0.75rem 0;
  }
}

/* Footer */
.site-footer {
  /* Changed footer background from #f5f5f5 to match body cream background */
  background: #faf8f5;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: #808080;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #404040;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
}

.pagination a:hover {
  background: #ff1493; /* Changed from violet to hot pink */
  color: white;
}

.pagination .current {
  background: #ff1493; /* Changed from violet to hot pink */
  color: white;
}
