/*--------------------------------------------------------------
# Earthtone Portfolio & Project Pages Styling
# Complete styling for portfolio archive, single project, homepage portfolio, and footer
--------------------------------------------------------------*/

:root {
  /* Earthtone color variables */
  --earthtone-almond: #E3D5C5;
  --earthtone-khaki: #9E9B88;
  --earthtone-ebony: #59614B;
  --earthtone-blackolive: #2D3126;
  --earthtone-black: #000000;
  
  /* Theme shadow and border variables */
  --theme-shadow: rgba(45, 49, 38, 0.15);
  --theme-border: rgba(158, 155, 136, 0.2);
}

/*--------------------------------------------------------------
# Portfolio Archive Page
--------------------------------------------------------------*/
.portfolio-archive {
  padding: 60px 0;
  background-color: var(--theme-secondary-bg, var(--earthtone-khaki));
}

.portfolio-posts {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-post {
  margin-bottom: 4rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--theme-shadow, rgba(45, 49, 38, 0.15));
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--theme-border, rgba(158, 155, 136, 0.2));
}

.portfolio-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(89, 97, 75, 0.2);
  border-color: var(--theme-accent-bg, var(--earthtone-ebony));
}

.post-featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--theme-primary-bg, var(--earthtone-almond));
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-post:hover .post-featured-image img {
  transform: scale(1.05);
}

.gallery-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
}

.post-content {
  padding: 2.5rem;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--theme-accent-text, var(--earthtone-ebony));
  text-decoration: none;
}

.post-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--theme-primary-bg, var(--earthtone-almond));
  border-radius: 12px;
  border-left: 4px solid var(--theme-accent-bg, var(--earthtone-ebony));
}

.post-meta-info > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--theme-secondary-text, var(--earthtone-khaki));
}

.post-meta-info i {
  color: var(--theme-accent-bg, var(--earthtone-ebony));
  font-size: 1rem;
}

.post-excerpt {
  color: var(--theme-secondary-text, var(--earthtone-khaki));
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-technologies {
  margin-bottom: 2rem;
}

.post-technologies h5 {
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: linear-gradient(135deg, var(--theme-accent-bg, var(--earthtone-ebony)), var(--theme-dark-bg, var(--earthtone-blackolive)));
  color: var(--theme-light-text, var(--earthtone-almond));
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
}

.post-footer {
  border-top: 2px solid rgba(158, 155, 136, 0.2);
  padding-top: 2rem;
}

.read-more-btn {
  color: var(--theme-light-text, var(--earthtone-almond));
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--theme-accent-bg, var(--earthtone-ebony)), var(--theme-dark-bg, var(--earthtone-blackolive)));
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(89, 97, 75, 0.3);
}

.read-more-btn:hover {
  background: linear-gradient(135deg, var(--theme-dark-bg, var(--earthtone-blackolive)), var(--theme-accent-bg, var(--earthtone-ebony)));
  color: var(--theme-light-text, var(--earthtone-almond));
  text-decoration: none;
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(89, 97, 75, 0.4);
}

.read-more-btn i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Page Title (Portfolio & Project Pages)
--------------------------------------------------------------*/
.page-title {
  background: linear-gradient(135deg, var(--theme-dark-bg, var(--earthtone-blackolive)), var(--theme-accent-bg, var(--earthtone-ebony)));
  padding: 120px 0;
  color: var(--theme-light-text, var(--earthtone-almond));
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(227, 213, 197, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.page-title h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: var(--theme-light-text, var(--earthtone-almond));
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
}

.breadcrumbs ol li + li {
  padding-left: 12px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 12px;
  color: var(--theme-accent-text, var(--earthtone-ebony));
  content: "/";
  font-weight: bold;
}

.breadcrumbs ol a {
  color: var(--theme-accent-text, var(--earthtone-ebony));
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.breadcrumbs ol a:hover {
  color: var(--theme-light-text, var(--earthtone-almond));
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--earthtone-khaki);
}

/*--------------------------------------------------------------
# Single Project Page
--------------------------------------------------------------*/
.portfolio-single {
  background-color: var(--theme-primary-bg, var(--earthtone-almond));
  padding: 60px 0;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--theme-border, rgba(158, 155, 136, 0.2));
}

.project-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  margin-bottom: 1.5rem;
}

.project-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.project-categories {
  display: flex;
  gap: 0.5rem;
}

.category-badge {
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-secondary-text, var(--earthtone-khaki));
  font-weight: 500;
}

.project-date i {
  color: var(--theme-accent-bg, var(--earthtone-ebony));
}

.project-gallery {
  margin-bottom: 3rem;
}

.image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--theme-secondary-bg, var(--earthtone-khaki));
  box-shadow: 0 8px 25px var(--theme-shadow, rgba(45, 49, 38, 0.15));
  transition: all 0.3s ease;
}

.image-container:hover {
  box-shadow: 0 12px 35px rgba(89, 97, 75, 0.2);
  transform: translateY(-2px);
}

.image-container.featured {
  margin-bottom: 2rem;
}

.project-details-single-column {
  max-width: 800px;
  margin: 0 auto;
}

.project-overview-section,
.project-info-section,
.project-tech-section,
.project-links-section {
  background: #ffffff;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--theme-shadow, rgba(45, 49, 38, 0.1));
  border: 1px solid var(--theme-border, rgba(158, 155, 136, 0.2));
}

.project-overview-section h3,
.project-tech-section h4 {
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--theme-accent-bg, var(--earthtone-ebony));
  padding-bottom: 0.5rem;
}

.project-content {
  color: var(--theme-secondary-text, var(--earthtone-khaki));
  line-height: 1.7;
  font-size: 1.1rem;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--theme-primary-bg, var(--earthtone-almond));
  border-radius: 8px;
  border-left: 4px solid var(--theme-accent-bg, var(--earthtone-ebony));
}

.info-item strong {
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  font-weight: 600;
}

.info-item span {
  color: var(--theme-secondary-text, var(--earthtone-khaki));
}

.tech-tags-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.project-btn.primary {
  background: linear-gradient(135deg, var(--theme-accent-bg, var(--earthtone-ebony)), var(--theme-dark-bg, var(--earthtone-blackolive)));
  color: var(--theme-light-text, var(--earthtone-almond));
}

.project-btn.secondary {
  background: transparent;
  color: var(--theme-accent-text, var(--earthtone-ebony));
  border: 2px solid var(--theme-accent-bg, var(--earthtone-ebony));
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
  text-decoration: none;
}

.project-btn.primary:hover {
  color: var(--theme-light-text, var(--earthtone-almond));
}

.project-btn.secondary:hover {
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination-wrapper {
  margin-top: 4rem;
  text-align: center;
}

.pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  justify-content: center;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination span {
  color: var(--theme-accent-text, var(--earthtone-ebony));
  padding: 1rem 1.5rem;
  text-decoration: none;
  border: 2px solid var(--theme-accent-bg, var(--earthtone-ebony));
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination a:hover,
.pagination .current {
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
}

.pagination .current {
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
}

/*--------------------------------------------------------------
# Footer Styling
--------------------------------------------------------------*/
.footer {
  background: linear-gradient(135deg, var(--theme-dark-bg, var(--earthtone-blackolive)) 0%, var(--theme-accent-bg, var(--earthtone-ebony)) 100%);
  color: var(--theme-light-text, var(--earthtone-almond));
  padding: 60px 0 30px 0;
  border-top: 3px solid var(--theme-accent-bg, var(--earthtone-ebony));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--theme-light-text, var(--earthtone-almond));
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--theme-accent-bg, var(--earthtone-ebony));
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section p {
  color: var(--earthtone-khaki);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--earthtone-khaki);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--theme-light-text, var(--earthtone-almond));
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(227, 213, 197, 0.1);
  border: 1px solid var(--earthtone-khaki);
  border-radius: 50%;
  color: var(--theme-light-text, var(--earthtone-almond));
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background: var(--theme-accent-bg, var(--earthtone-ebony));
  border-color: var(--theme-accent-bg, var(--earthtone-ebony));
  color: var(--theme-light-text, var(--earthtone-almond));
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(158, 155, 136, 0.3);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--earthtone-khaki);
  margin: 0;
}

.footer-credits {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(158, 155, 136, 0.8);
}

.footer-credits a {
  color: var(--theme-light-text, var(--earthtone-almond));
  font-weight: 600;
}

/*--------------------------------------------------------------
# Homepage Portfolio Section
--------------------------------------------------------------*/
.homepage-portfolio-posts {
    max-width: 800px;
    margin: 0 auto;
}

.homepage-portfolio-post {
    margin-bottom: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--theme-shadow, rgba(45, 49, 38, 0.15));
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--theme-border, rgba(158, 155, 136, 0.2));
}

.homepage-portfolio-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(89, 97, 75, 0.2);
    border-color: var(--theme-accent-bg, var(--earthtone-ebony));
}

.homepage-portfolio-post .post-featured-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/1;
    background: var(--theme-primary-bg, var(--earthtone-almond));
}

.homepage-portfolio-post .post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage-portfolio-post:hover .post-featured-image img {
    transform: scale(1.05);
}

.homepage-portfolio-post .post-content {
    padding: 2rem;
}

.homepage-portfolio-post .post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.homepage-portfolio-post .post-title a {
    color: var(--theme-primary-text, var(--earthtone-blackolive));
    text-decoration: none;
    transition: color 0.3s ease;
}

.homepage-portfolio-post .post-title a:hover {
    color: var(--theme-accent-text, var(--earthtone-ebony));
    text-decoration: none;
}

.homepage-portfolio-post .post-categories {
    font-size: 0.85rem;
    color: var(--theme-secondary-text, var(--earthtone-khaki));
    margin-bottom: 1rem;
}

.homepage-portfolio-post .post-categories strong {
    color: var(--theme-primary-text, var(--earthtone-blackolive));
}

.homepage-portfolio-post .post-excerpt {
    color: var(--theme-secondary-text, var(--earthtone-khaki));
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.homepage-portfolio-post .post-meta {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--theme-primary-bg, var(--earthtone-almond));
    border-left: 4px solid var(--theme-accent-bg, var(--earthtone-ebony));
    border-radius: 8px;
}

.homepage-portfolio-post .post-meta .technologies {
    color: var(--theme-primary-text, var(--earthtone-blackolive));
    font-size: 0.85rem;
}

.homepage-portfolio-post .post-footer {
    border-top: 2px solid rgba(158, 155, 136, 0.2);
    padding-top: 1.5rem;
}

.homepage-portfolio-post .read-more-btn {
    color: var(--theme-accent-text, var(--earthtone-ebony));
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--theme-accent-bg, var(--earthtone-ebony));
    border-radius: 25px;
}

.homepage-portfolio-post .read-more-btn:hover {
    background: var(--theme-accent-bg, var(--earthtone-ebony));
    color: var(--theme-light-text, var(--earthtone-almond));
    text-decoration: none;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
}

.homepage-portfolio-post .read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.homepage-portfolio-post .read-more-btn:hover i {
    transform: translateX(3px);
}

/* View All Projects Button */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-accent-bg, var(--earthtone-ebony)), var(--theme-dark-bg, var(--earthtone-blackolive)));
    border: none;
    color: var(--theme-light-text, var(--earthtone-almond));
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(89, 97, 75, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-dark-bg, var(--earthtone-blackolive)), var(--theme-accent-bg, var(--earthtone-ebony)));
    color: var(--theme-light-text, var(--earthtone-almond));
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(89, 97, 75, 0.4);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/*--------------------------------------------------------------
# Empty State
--------------------------------------------------------------*/
.empty-state {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h3 {
  color: var(--theme-primary-text, var(--earthtone-blackolive));
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--theme-secondary-text, var(--earthtone-khaki));
}

.empty-state .btn {
  background: linear-gradient(135deg, var(--theme-accent-bg, var(--earthtone-ebony)), var(--theme-dark-bg, var(--earthtone-blackolive)));
  color: var(--theme-light-text, var(--earthtone-almond));
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.empty-state .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
  text-decoration: none;
  color: var(--theme-light-text, var(--earthtone-almond));
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .portfolio-archive {
    padding: 40px 0;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 1.7rem;
  }
  
  .post-excerpt {
    font-size: 1rem;
  }
  
  .post-meta-info {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .read-more-btn {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .page-title {
    padding: 80px 0;
  }
  
  .page-title h1 {
    font-size: 2.5rem;
  }
  
  .project-title {
    font-size: 2rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-overview-section,
  .project-info-section,
  .project-tech-section,
  .project-links-section {
    padding: 1.5rem;
  }
  
  .project-info-grid {
    grid-template-columns: 1fr;
  }
  
  .project-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .project-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social-links {
    justify-content: center;
  }
  
  /* Homepage Portfolio Responsive */
  .homepage-portfolio-post .post-title {
    font-size: 1.3rem;
  }
  
  .homepage-portfolio-post .post-content {
    padding: 1.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.4rem;
  }
  
  .tech-tags {
    justify-content: center;
  }
  
  .tech-tags-horizontal {
    justify-content: center;
  }
  
  .page-title h1 {
    font-size: 2rem;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
}