/*
Theme Name: BeautyTech Lite
Theme URI: https://beautytech-japan.com
Author: BeautyTech Dev
Description: 女性のための美容家電・ガジェット専門レビュー向けの軽量WordPressテーマ
Version: 3.0.0
Text Domain: beautytech-lite
*/

:root {
  /* SWELL風カラーパレット */
  --bt-primary: #d67ca8;
  /* メインピンク */
  --bt-secondary: #f9e9ef;
  /* 淡いピンク背景 */
  --bt-accent: #e9b4c9;
  /* アクセントピンク */
  --bt-text-primary: #333333;
  /* メインテキスト */
  --bt-text-secondary: #777777;
  /* サブテキスト */
  --bt-white: #ffffff;
  --bt-gray-light: #f8f9fa;
  --bt-gray-border: #e5e7eb;

  /* 影・効果 */
  --bt-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --bt-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --bt-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* 角丸 */
  --bt-radius-sm: 8px;
  --bt-radius: 12px;
  --bt-radius-lg: 16px;

  /* 余白 */
  --bt-spacing-xs: 0.5rem;
  --bt-spacing-sm: 1rem;
  --bt-spacing: 1.5rem;
  --bt-spacing-lg: 2rem;
  --bt-spacing-xl: 3rem;
  --bt-spacing-2xl: 5rem;

  /* トランジション */
  --bt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 旧変数との互換性 */
  --bt-light-pink: var(--bt-secondary);
  --bt-rose-gold: var(--bt-primary);
  --bt-dark-gray: var(--bt-text-primary);
  --bt-border: var(--bt-gray-border);
}

/* Google Fontsを読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bt-text-primary);
  background-color: var(--bt-white);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 英字にPoppinsを適用 */
:lang(en) {
  font-family: 'Poppins', sans-serif;
}

.container,
.bt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bt-main {
  flex: 1;
  min-width: 0;
}

/* Home page specific adjustments */
.home .bt-main,
.front-page .bt-main {
  padding-top: 0 !important;
}

.bt-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(200, 123, 163, 0.1);
  box-shadow: 0 2px 8px rgba(200, 123, 163, 0.05);
  display: block !important;
  /* Force display override critical.css */
}

a {
  color: var(--bt-rose-gold);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--bt-text-primary);
  letter-spacing: 0.02em;
}

/* ==========================================
   SWELL風ヘッダースタイル
========================================== */
.bt-header {
  background: var(--bt-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--bt-transition);
}

.bt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.bt-logo-area {
  flex-shrink: 0;
}

.bt-site-title {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bt-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--bt-transition);
}

.bt-site-title:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* グローバルナビゲーション */
.bt-global-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.bt-global-nav li {
  position: relative;
}

.bt-global-nav a {
  color: var(--bt-text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--bt-transition);
  display: inline-block;
}

.bt-global-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bt-primary), var(--bt-accent));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-global-nav a:hover {
  color: var(--bt-primary);
}

.bt-global-nav a:hover::after,
.bt-global-nav .current-menu-item>a::after {
  width: 100%;
}

.bt-global-nav .current-menu-item>a {
  color: var(--bt-primary);
  font-weight: 500;
}

/* ==========================================
   SWELL風ヒーローエリア
========================================== */
.bt-hero-swell {
  background: linear-gradient(135deg, var(--bt-white) 0%, var(--bt-secondary) 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bt-hero-swell::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(214, 124, 168, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatAnimation 20s ease-in-out infinite;
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.bt-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 120px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.bt-hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bt-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--bt-text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.bt-hero-subtitle {
  font-size: 1.1rem;
  color: var(--bt-text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.bt-hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--bt-primary);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  animation: bounce 2s infinite;
}

.bt-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--bt-primary), transparent);
  position: relative;
}

.bt-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  background: var(--bt-primary);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(50px);
    opacity: 0;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* ==========================================
   SWELL風セクションタイトル (H2)
========================================== */
.bt-section-title-swell {
  position: relative;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bt-text-primary);
  margin: 3rem 0 2.5rem;
  padding-left: 20px;
  padding-bottom: 15px;
  letter-spacing: 0.05em;
}

.bt-section-title-swell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bt-primary) 0%, var(--bt-accent) 100%);
  border-radius: 2px;
}

.bt-section-title-swell::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--bt-gray-border) 0%, transparent 100%);
}

.bt-title-text {
  display: inline-block;
  animation: fadeInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   SWELL風記事カード
========================================== */
.bt-featured-section,
.bt-posts-section {
  margin: 4rem 0;
}

.bt-featured-grid,
.bt-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.bt-featured-card,
.bt-post-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: var(--bt-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bt-featured-card:hover,
.bt-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bt-shadow-hover);
}

.bt-featured-image,
.bt-post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bt-gray-light);
}

.bt-featured-image img,
.bt-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-featured-card:hover img,
.bt-post-card:hover img {
  transform: scale(1.08);
}

.bt-featured-content,
.bt-post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bt-featured-title,
.bt-post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bt-featured-title a,
.bt-post-title a {
  color: var(--bt-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bt-featured-title a:hover,
.bt-post-title a:hover {
  color: var(--bt-primary);
}

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

.bt-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bt-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--bt-transition);
  margin-top: auto;
}

.bt-featured-link:hover {
  gap: 0.75rem;
}

.bt-featured-link svg {
  transition: transform 0.3s ease;
}

.bt-featured-link:hover svg {
  transform: translateX(4px);
}

.bt-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--bt-text-secondary);
  margin-bottom: 0.75rem;
}

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

.bt-post-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.bt-category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bt-secondary);
  color: var(--bt-primary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--bt-transition);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.1rem;
}

@media (max-width: 768px) {

  .bt-sidebar {
    width: 100%;
    order: 2;
    margin-top: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bt-white);
  border-radius: var(--bt-radius-sm);
  box-shadow: var(--bt-shadow);
  clip: auto !important;
  color: var(--bt-dark-gray);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 7px;
  width: auto;
  z-index: 100000;
}

/* Skip link specific styles */
.skip-link {
  left: -9999px;
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  clip: auto;
  height: auto;
  left: 6px;
  top: 7px;
  width: auto;
  z-index: 999999;
  background-color: var(--bt-rose-gold);
  color: var(--bt-white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--bt-radius-sm);
}

/* ==========================================
   UNIFIED PAGE STYLES (SWELL STYLE)
========================================== */

/* Post Lead Text for Fixed Pages */
.bt-post-lead {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #faf6f8 0%, #f5f0f3 100%);
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
  text-align: center;
}

.bt-post-lead p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Wrapper for Fixed Pages */
.bt-content-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
  box-shadow: 0 2px 12px rgba(200, 123, 163, 0.05);
  margin-bottom: 2rem;
}

.bt-content-inner {
  line-height: 1.8;
}

/* Form Elements Styling - Unified */
.bt-content-inner input[type="text"],
.bt-content-inner input[type="email"],
.bt-content-inner input[type="tel"],
.bt-content-inner input[type="url"],
.bt-content-inner select,
.bt-content-inner textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fff;
  box-sizing: border-box;
}

.bt-content-inner input:focus,
.bt-content-inner select:focus,
.bt-content-inner textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #d883a7;
  box-shadow: 0 0 0 3px rgba(216, 131, 167, 0.1);
}

.bt-content-inner textarea,
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form Labels - Unified */
.bt-content-inner label,
.wpcf7 label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

/* Submit Button - Unified */
.bt-content-inner input[type="submit"],
.bt-content-inner button[type="submit"],
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  background: linear-gradient(135deg, #d883a7 0%, #c87ba3 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  margin-top: 16px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(200, 123, 163, 0.3);
}

.bt-content-inner input[type="submit"]:hover,
.bt-content-inner button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  background: linear-gradient(135deg, #c87ba3 0%, #b36d94 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 123, 163, 0.4);
}

/* Contact Form 7 Specific Styles */
.wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 12px 16px;
  color: #e74c3c;
  margin-bottom: 16px;
}

.wpcf7-mail-sent-ok {
  background: #f0f9ff;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 12px 16px;
  color: #1e40af;
  margin-bottom: 16px;
}

/* Form Row Layout */
.contact-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form-row .contact-form-col {
  flex: 1;
}





/* ==========================================
   SINGLE POST PAGE (SWELL STYLE)
========================================== */

/* Post Header */
.bt-post-header {
  margin-bottom: 2rem;
}

.bt-post-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.bt-post-categories {
  margin-bottom: 0.5rem;
}

.bt-category-tag {
  display: inline-block;
  background: linear-gradient(135deg, #d883a7 0%, #c87ba3 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.bt-category-tag:hover {
  background: linear-gradient(135deg, #c87ba3 0%, #b36d94 100%);
  color: white;
  opacity: 1;
  transform: translateY(-1px);
}

.bt-post-date-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #666;
}

.bt-post-date {
  font-weight: 500;
}

.bt-post-updated {
  font-size: 0.8rem;
  color: #888;
}

.bt-post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
  margin: 0;
}

/* Post Thumbnail */
.bt-post-thumbnail {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(200, 123, 163, 0.1);
}

.bt-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content */
.bt-post-content {
  margin-bottom: 3rem;
  line-height: 1.8;
}

.bt-post-content h2,
.bt-post-content h3,
.bt-post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.bt-page-links {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #d883a7;
}

/* Post Tags */
.bt-post-tags {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
}

.bt-tags-label {
  display: inline-block;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.75rem;
}

.bt-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-tag-link {
  display: inline-block;
  background: white;
  color: #666;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(200, 123, 163, 0.2);
  transition: all 0.3s ease;
}

.bt-tag-link:hover {
  background: #d883a7;
  color: white;
  border-color: #d883a7;
  transform: translateY(-1px);
}

/* Share Buttons */
.bt-post-share {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #faf6f8 0%, #f5f0f3 100%);
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
  text-align: center;
}

.bt-share-label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bt-share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bt-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.bt-share-twitter {
  background: #1da1f2;
  color: white;
}

.bt-share-facebook {
  background: #1877f2;
  color: white;
}

.bt-share-line {
  background: #00b900;
  color: white;
}

.bt-share-button:hover {
  color: white;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bt-share-icon {
  font-size: 1.1rem;
}

/* Related Posts */
.bt-related-posts {
  margin-bottom: 3rem;
}

.bt-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d883a7;
  position: relative;
}

.bt-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #c87ba3;
}

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

.bt-related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(200, 123, 163, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(200, 123, 163, 0.1);
}

.bt-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200, 123, 163, 0.15);
}

.bt-related-image {
  position: relative;
  overflow: hidden;
  height: 160px;
}

.bt-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.bt-related-content {
  padding: 1rem;
}

.bt-related-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.bt-related-title a {
  color: #333;
  text-decoration: none;
}

.bt-related-title a:hover {
  color: #d883a7;
}

.bt-related-date {
  font-size: 0.85rem;
  color: #888;
}

/* Post Navigation */
.bt-post-navigation {
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(200, 123, 163, 0.2);
  border-bottom: 1px solid rgba(200, 123, 163, 0.2);
}

.bt-post-nav-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.bt-post-nav-prev,
.bt-post-nav-next {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 48%;
}

.bt-post-nav-prev:hover,
.bt-post-nav-next:hover {
  background: #d883a7;
  color: white;
  opacity: 1;
}

.bt-post-nav-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.bt-post-nav-title {
  font-weight: 600;
  line-height: 1.3;
}

.bt-post-nav-next {
  text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bt-post-title {
    font-size: 1.5rem;
  }

  .bt-post-date-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bt-share-buttons {
    justify-content: center;
  }

  .bt-share-button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .bt-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bt-post-nav-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .bt-post-nav-prev,
  .bt-post-nav-next {
    max-width: 100%;
    text-align: left;
  }

  .bt-tags-list {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .bt-post-header {
    margin-bottom: 1.5rem;
  }

  .bt-post-thumbnail {
    margin-bottom: 1.5rem;
  }

  .bt-post-share {
    padding: 1rem;
  }

  .bt-share-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .bt-share-button {
    justify-content: center;
  }
}

/* ==========================================
   SEARCH RESULTS PAGE (SWELL STYLE)
========================================== */

.bt-search-header {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #faf6f8 0%, #f5f0f3 100%);
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
  text-align: center;
}

.bt-search-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.bt-search-query {
  color: #d883a7;
  font-weight: 600;
}

.bt-search-count {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.bt-search-results {
  margin-bottom: 2rem;
}

.bt-search-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
  box-shadow: 0 2px 8px rgba(200, 123, 163, 0.05);
  transition: all 0.3s ease;
}

.bt-search-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 123, 163, 0.1);
}

.bt-search-item-content {
  flex: 1;
}

.bt-search-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bt-search-item-title a {
  color: #333;
  text-decoration: none;
}

.bt-search-item-title a:hover {
  color: #d883a7;
}

.bt-search-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.bt-search-item-type {
  padding: 4px 8px;
  background: #d883a7;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bt-search-item-excerpt {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

.bt-search-item-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #d883a7;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bt-search-item-link:hover {
  background: #c87ba3;
  color: white;
  opacity: 1;
  transform: translateX(4px);
}

.bt-search-item-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

.bt-search-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No Results */
.bt-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(200, 123, 163, 0.1);
}

.bt-no-results h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.bt-no-results p {
  color: #666;
  margin-bottom: 1.5rem;
}

.bt-search-suggestions {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: left;
}

.bt-search-suggestions h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

.bt-search-suggestions ul {
  list-style: none;
  padding: 0;
}

.bt-search-suggestions li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

.bt-search-suggestions li::before {
  content: '•';
  color: #d883a7;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.bt-popular-posts {
  margin-top: 2rem;
}

.bt-popular-posts h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.bt-popular-posts ul {
  list-style: none;
  padding: 0;
}

.bt-popular-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(200, 123, 163, 0.1);
}

.bt-popular-posts li:last-child {
  border-bottom: none;
}

.bt-popular-posts a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.bt-popular-posts a:hover {
  color: #d883a7;
}

/* ==========================================
   404 ERROR PAGE (SWELL STYLE)
========================================== */

.bt-error-404 {
  text-align: center;
  padding: 2rem 0;
}

.bt-404-content {
  max-width: 800px;
  margin: 0 auto;
}

.bt-404-number {
  font-size: 8rem;
  font-weight: 900;
  color: #d883a7;
  line-height: 0.8;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(216, 131, 167, 0.2);
}

.bt-404-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.bt-404-message {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.bt-404-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.bt-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.bt-button-primary {
  background: #d883a7;
  color: white;
}

.bt-button-primary:hover {
  background: #c87ba3;
  color: white;
  opacity: 1;
  transform: translateY(-2px);
}

.bt-button-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid rgba(200, 123, 163, 0.2);
}

.bt-button-secondary:hover {
  background: #d883a7;
  color: white;
  border-color: #d883a7;
}

.bt-404-search {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.bt-404-search h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.bt-404-search p {
  color: #666;
  margin-bottom: 1.5rem;
}

.bt-404-suggestions {
  text-align: left;
}

.bt-404-categories {
  margin-bottom: 2rem;
}

.bt-404-categories h3,
.bt-404-recent h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.bt-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.bt-category-link {
  display: block;
  padding: 12px 16px;
  background: white;
  border: 1px solid rgba(200, 123, 163, 0.2);
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bt-category-link:hover {
  background: #d883a7;
  color: white;
  border-color: #d883a7;
}

.bt-posts-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bt-card-small {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200, 123, 163, 0.1);
  transition: all 0.3s ease;
}

.bt-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 123, 163, 0.1);
}

.bt-card-small .bt-card-image {
  height: 120px;
}

.bt-card-small .bt-card-content {
  padding: 1rem;
}

.bt-card-small .bt-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.bt-card-small .bt-card-title a {
  color: #333;
  text-decoration: none;
}

.bt-card-small .bt-card-title a:hover {
  color: #d883a7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bt-search-item {
    flex-direction: column;
    gap: 1rem;
  }

  .bt-search-item-thumbnail {
    width: 100%;
    height: 180px;
  }

  .bt-404-number {
    font-size: 5rem;
  }

  .bt-404-title {
    font-size: 1.5rem;
  }

  .bt-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .bt-category-grid {
    grid-template-columns: 1fr;
  }

  .bt-posts-grid-small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .bt-search-header {
    padding: 1rem;
  }

  .bt-search-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .bt-404-search {
    padding: 1.5rem;
  }

  .bt-posts-grid-small {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SIDEBAR WIDGETS (SWELL STYLE)
========================================== */

/* Widget Base Styles */
.bt-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(200, 123, 163, 0.1);
  box-shadow: 0 2px 12px rgba(200, 123, 163, 0.05);
}

.bt-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d883a7;
  position: relative;
}

.bt-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #c87ba3;
}

/* Category Cards */
.bt-category-cards {
  display: grid;
  gap: 0.5rem;
}

.bt-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 10px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(200, 123, 163, 0.15);
  box-shadow: 0 2px 8px rgba(200, 123, 163, 0.08);
  position: relative;
  overflow: hidden;
}

.bt-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #d883a7 0%, #c87ba3 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.bt-category-card:hover::before {
  transform: scaleY(1);
}

.bt-category-card:hover {
  background: linear-gradient(135deg, #fef7fa 0%, #f8f0f4 100%);
  border-color: #d883a7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 123, 163, 0.15);
}

.bt-category-card-content {
  flex: 1;
  padding-left: 4px;
}

.bt-category-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.bt-category-card:hover .bt-category-card-title {
  color: #d883a7;
}

.bt-category-card-count {
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  display: inline-block;
}

.bt-category-card:hover .bt-category-card-count {
  background: rgba(216, 131, 167, 0.15);
  color: #d883a7;
}

.bt-category-card-icon {
  margin-left: 12px;
  color: #94a3b8;
  transition: all 0.3s ease;
  width: 18px;
  height: 18px;
}

.bt-category-card:hover .bt-category-card-icon {
  color: #d883a7;
  transform: translateX(3px);
}

/* Post Cards */
.bt-widget-posts-cards {
  display: grid;
  gap: 0.75rem;
}

.bt-widget-post-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 10px;
  border: 1px solid rgba(200, 123, 163, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(200, 123, 163, 0.06);
  position: relative;
  overflow: hidden;
}

.bt-widget-post-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, #d883a7 0%, #c87ba3 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bt-widget-post-card:hover::after {
  opacity: 1;
}

.bt-widget-post-card:hover {
  background: linear-gradient(135deg, #fef7fa 0%, #f8f0f4 100%);
  border-color: rgba(216, 131, 167, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 123, 163, 0.12);
}

.bt-widget-post-thumbnail {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.bt-widget-post-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(216, 131, 167, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.bt-widget-post-card:hover .bt-widget-post-thumbnail::before {
  opacity: 1;
}

.bt-widget-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bt-widget-post-card:hover .bt-widget-post-thumbnail img {
  transform: scale(1.05);
}

.bt-widget-post-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bt-widget-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px 0;
  color: #2c3e50;
}

.bt-widget-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bt-widget-post-title a:hover {
  color: #d883a7;
}

.bt-widget-post-date {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.bt-widget-post-date::before {
  content: '📅';
  margin-right: 4px;
  font-size: 0.7rem;
}

/* Tag Widget */
.bt-widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bt-widget-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid rgba(200, 123, 163, 0.15);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bt-widget-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.bt-widget-tag:hover::before {
  left: 100%;
}

.bt-widget-tag:hover {
  background: linear-gradient(135deg, #d883a7 0%, #c87ba3 100%);
  color: white;
  border-color: #d883a7;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(216, 131, 167, 0.3);
}

.bt-widget-tag-count {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 7px;
  border-radius: 12px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.3s ease;
}

.bt-widget-tag:hover .bt-widget-tag-count {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bt-widget {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .bt-widget-title {
    font-size: 1.1rem;
  }

  .bt-category-card {
    padding: 10px 12px;
  }

  .bt-widget-post-card {
    padding: 10px;
    gap: 10px;
  }

  .bt-widget-post-thumbnail {
    width: 50px;
    height: 50px;
  }

  .bt-widget-post-title {
    font-size: 0.8rem;
  }
}