/* ================================
   TuerMeister - Blog Page Styles
   Theme: Wood & Craft (Brown + Beige)
   ================================ */

/* === Blog Hero Section === */
.tm-blog-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #F5F1ED 0%, #E8DFD8 100%);
  overflow: hidden;
}

.tm-blog-hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.tm-blog-hero-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(121, 85, 72, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatCircle 20s ease-in-out infinite;
}

.tm-blog-hero-circle-small {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 168, 106, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: floatCircle 15s ease-in-out infinite reverse;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 30px) scale(1.05); }
}

/* Breadcrumb */
.tm-blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.tm-breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tm-breadcrumb-link:hover {
  color: var(--primary-brown);
}

.tm-breadcrumb-separator {
  display: flex;
  align-items: center;
  color: var(--gray-medium);
  opacity: 0.6;
}

.tm-breadcrumb-current {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
}

/* Hero Content */
.tm-blog-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.tm-blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 64, 55, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 24px;
}

.tm-blog-hero-badge img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.2);
}

.tm-blog-hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tm-blog-hero-title-main {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tm-blog-hero-title-accent {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-blog-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Hero Stats */
.tm-blog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tm-blog-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(93, 64, 55, 0.1);
  transition: all 0.3s ease;
}

.tm-blog-stat:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tm-blog-stat img {
  filter: sepia(0.8) hue-rotate(-10deg) saturate(1.5);
  opacity: 0.8;
}

.tm-blog-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-blog-stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-brown);
  line-height: 1;
}

.tm-blog-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* === Blog Main Content === */
.tm-blog-main {
  padding: 80px 0;
  background: var(--bg-primary);
}

/* Blog Articles Grid */
.tm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.tm-article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tm-article-link-wrapper {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Article Image */
.tm-article-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
}

.tm-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-article-card:hover .tm-article-image {
  transform: scale(1.08);
}

.tm-article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tm-article-placeholder img {
  opacity: 0.3;
  filter: sepia(1) hue-rotate(-10deg) saturate(1.2);
}

.tm-article-category {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-brown);
  border: 1px solid rgba(93, 64, 55, 0.2);
}

.tm-article-category img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.3);
}

/* Article Content */
.tm-article-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex: 1;
}

.tm-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--beige-medium);
}

.tm-article-date,
.tm-article-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.tm-article-date img,
.tm-article-read-time img {
  opacity: 0.6;
  filter: sepia(0.5) hue-rotate(-10deg);
}

.tm-article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.tm-article-card:hover .tm-article-title {
  color: var(--primary-brown);
}

.tm-article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.tm-article-footer {
  margin-top: auto;
}

.tm-article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
  transition: gap 0.3s ease;
}

.tm-article-card:hover .tm-article-read-more {
  gap: 12px;
}

.tm-article-read-more img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.2);
  transition: transform 0.3s ease;
}

.tm-article-card:hover .tm-article-read-more img {
  transform: translateX(4px);
}

/* === Pagination === */
.tm-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.tm-pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--beige-medium);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tm-pagination-btn:hover {
  background: var(--primary-brown);
  border-color: var(--primary-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tm-pagination-btn img {
  filter: sepia(0.5) hue-rotate(-10deg);
  transition: filter 0.3s ease;
}

.tm-pagination-btn:hover img {
  filter: brightness(0) invert(1);
}

.tm-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--beige-medium);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tm-pagination-number:hover,
.tm-pagination-active {
  background: var(--primary-brown);
  border-color: var(--primary-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tm-pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-medium);
}

/* === Popular Articles Section === */
.tm-blog-popular {
  margin-bottom: 80px;
  padding: 60px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: var(--radius-xl);
}

.tm-popular-header {
  text-align: center;
  margin-bottom: 48px;
}

.tm-popular-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 64, 55, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 16px;
}

.tm-popular-header-badge img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.3);
}

.tm-popular-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tm-popular-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.tm-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-popular-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.tm-popular-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.tm-popular-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.tm-popular-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tm-popular-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: var(--radius-md);
}

.tm-popular-icon img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.3);
}

.tm-popular-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-wood) 100%);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.tm-popular-badge img {
  filter: brightness(0) invert(1);
}

.tm-popular-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.tm-popular-card:hover .tm-popular-card-title {
  color: var(--primary-brown);
}

.tm-popular-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.tm-popular-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--beige-medium);
}

.tm-popular-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.tm-popular-date img {
  opacity: 0.6;
  filter: sepia(0.5) hue-rotate(-10deg);
}

.tm-popular-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--beige-light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tm-popular-card:hover .tm-popular-arrow {
  background: var(--primary-brown);
  transform: translateX(4px);
}

.tm-popular-arrow img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.2);
  transition: filter 0.3s ease;
}

.tm-popular-card:hover .tm-popular-arrow img {
  filter: brightness(0) invert(1);
}

/* === CTA Section === */
.tm-blog-cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-wood) 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  overflow: hidden;
}

.tm-cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
}

.tm-cta-shape-1,
.tm-cta-shape-2,
.tm-cta-shape-3 {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
}

.tm-cta-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
  animation: floatShape 20s ease-in-out infinite;
}

.tm-cta-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.tm-cta-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.1); }
}

.tm-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.tm-cta-left {
  color: var(--white);
}

.tm-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tm-cta-badge img {
  filter: brightness(0) invert(1);
}

.tm-cta-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: inherit;
}

.tm-cta-subtitle {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
}

.tm-cta-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.tm-cta-feature img {
  filter: brightness(0) invert(1);
}

.tm-cta-right {
  display: flex;
  justify-content: flex-end;
}

.tm-cta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tm-cta-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
  border-radius: 50%;
}

.tm-cta-card-icon img {
  filter: sepia(1) hue-rotate(-10deg) saturate(1.3);
}

.tm-cta-card-header {
  margin-bottom: 24px;
}

.tm-cta-card-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tm-cta-phone {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tm-cta-phone:hover {
  color: var(--accent-wood);
}

.tm-cta-divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.tm-cta-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--beige-medium);
}

.tm-cta-divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tm-cta-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tm-cta-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: var(--primary-brown);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.tm-cta-form-btn:hover {
  background: var(--accent-wood);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tm-cta-form-btn img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.tm-cta-form-btn:hover img {
  transform: translateX(4px);
}

/* === Responsive Design === */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .tm-blog-hero {
    padding: 120px 0 60px;
  }

  .tm-blog-hero-title-main,
  .tm-blog-hero-title-accent {
    font-size: 40px;
  }

  .tm-blog-grid,
  .tm-popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .tm-cta-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tm-cta-right {
    justify-content: center;
  }

  .tm-blog-popular {
    padding: 40px;
  }

  .tm-popular-title {
    font-size: 32px;
  }

  .tm-cta-title {
    font-size: 32px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .tm-blog-hero {
    padding: 100px 0 50px;
  }

  .tm-blog-hero-title-main,
  .tm-blog-hero-title-accent {
    font-size: 32px;
  }

  .tm-blog-hero-subtitle {
    font-size: 16px;
  }

  .tm-blog-hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tm-blog-main {
    padding: 60px 0;
  }

  .tm-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tm-article-image-wrapper {
    height: 200px;
  }

  .tm-blog-pagination {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tm-pagination-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .tm-pagination-number {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .tm-blog-popular {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .tm-popular-title {
    font-size: 28px;
  }

  .tm-popular-subtitle {
    font-size: 15px;
  }

  .tm-popular-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tm-blog-cta {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  .tm-cta-content {
    gap: 32px;
  }

  .tm-cta-title {
    font-size: 28px;
  }

  .tm-cta-subtitle {
    font-size: 15px;
  }

  .tm-cta-card {
    padding: 28px;
  }
}

/* Very Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
  .tm-blog-hero {
    padding: 90px 0 40px;
  }

  .tm-blog-hero-title-main,
  .tm-blog-hero-title-accent {
    font-size: 28px;
  }

  .tm-blog-hero-subtitle {
    font-size: 15px;
  }

  .tm-blog-main {
    padding: 50px 0;
  }

  .tm-article-content {
    padding: 20px;
  }

  .tm-article-title {
    font-size: 18px;
  }

  .tm-blog-popular {
    padding: 28px 16px;
  }

  .tm-popular-title {
    font-size: 24px;
  }

  .tm-popular-card {
    padding: 24px;
  }

  .tm-blog-cta {
    padding: 32px 20px;
  }

  .tm-cta-title {
    font-size: 24px;
  }

  .tm-cta-card {
    padding: 24px;
  }
}
