/* Custom styles for Blog - Golden/Orange Theme inspired by lophocdan.com */

/* ========== Typography ========== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

/* ========== Color Overrides - Golden/Orange Theme ========== */
:root {
  --primary-color: #ffb03a;
  --primary-hover: #e69a2e;
  --primary-dark: #cc8a25;
  --cream-bg: #faf8f5;
  --dark-text: #1a1a1a;
  --muted-text: #6c757d;
}

.text-primary,
a {
  color: var(--primary-color) !important;
}

a:hover {
  color: var(--primary-hover) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0.125rem 0.25rem 0 rgba(255, 176, 58, 0.4);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  color: #fff !important;
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0.25rem 0.5rem 0 rgba(255, 176, 58, 0.5);
}

.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff !important;
}

/* ========== Navigation - Glassmorphic Dark Theme ========== */
.site-header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header__brand-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none !important;
}

.site-header__logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4a574, #8b6914);
  color: #1a1a0a;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
  transition: all 0.3s ease;
}

.site-header__logo-icon svg {
  width: 22px;
  height: 22px;
}

.site-header__brand-link:hover .site-header__logo-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.site-header__text {
  display: flex;
  flex-direction: column;
}

.site-header__logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-header__tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Image-based Logo (for guitar pages) */
.site-header__image-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.site-header__image-logo .site-logo {
  height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
  transition: all 0.3s ease;
}

.site-header__brand-link:hover .site-header__image-logo .site-logo {
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
  transform: scale(1.02);
}

.site-header__image-logo .site-header__tagline {
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header__image-logo .site-logo {
    height: 50px;
    max-width: 180px;
  }

  .site-header__image-logo .site-header__tagline {
    display: none;
  }
}

/* Nav Links */
.site-header .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a574, #a855f7);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.site-header .nav-link:hover {
  color: #ffffff !important;
}

.site-header .nav-link:hover::after {
  width: calc(100% - 2rem);
}

.site-header .nav-link.active {
  color: #d4a574 !important;
}

.site-header .nav-link.active::after {
  width: calc(100% - 2rem);
  background: #d4a574;
}

/* Mobile Toggle */
.navbar-toggler {
  border: none !important;
  padding: 0.5rem;
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.navbar-toggler__icon span {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler__icon span:nth-child(1) { width: 100%; }
.navbar-toggler__icon span:nth-child(2) { width: 75%; }
.navbar-toggler__icon span:nth-child(3) { width: 50%; }

.navbar-toggler:hover .navbar-toggler__icon span {
  width: 100%;
  background: #d4a574;
}

/* Mobile Nav */
@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: rgba(15, 15, 15, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header .nav-link {
    padding: 0.75rem 1rem;
  }

  .site-header .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header__logo {
    font-size: 1.1rem;
  }

  .site-header__tagline {
    font-size: 0.65rem;
  }

  .site-header__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .site-header__logo-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--cream-bg) 0%, #fff 100%);
  border: 3px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.hero .display-4 {
  color: var(--dark-text);
  font-weight: 900;
}

.hero .lead {
  color: var(--muted-text);
  font-size: 1.125rem;
}

/* ========== Post Cards ========== */
.post-card {
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-bg);
}

.post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--cream-bg);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.post-card__category:hover {
  background: var(--primary-color);
  color: #fff !important;
}

.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark-text);
  line-height: 1.4;
}

.post-card__title a {
  color: var(--dark-text) !important;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--primary-color) !important;
}

.post-card__excerpt {
  color: var(--muted-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.875rem;
  color: var(--muted-text);
}

.post-card__read-more {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card__read-more:hover {
  color: var(--primary-hover) !important;
}

.post-card__read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.post-card__read-more:hover::after {
  transform: translateX(4px);
}

/* ========== Section Styling ========== */
.section-title {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ========== Footer - Cinematic Dark Theme ========== */
.site-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 0;
}

.site-footer__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.site-footer__glow--left {
  background: #d4a574;
  top: -100px;
  left: -100px;
}

.site-footer__glow--right {
  background: #a855f7;
  bottom: -100px;
  right: -100px;
}

.site-footer__content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__logo-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4a574, #8b6914);
  color: #1a1a0a;
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.25);
  flex-shrink: 0;
}

.site-footer__logo-icon svg {
  width: 26px;
  height: 26px;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-footer__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-footer__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__links {
  display: flex;
  gap: 4rem;
}

.site-footer__link-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__link-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.site-footer__link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 0;
  height: 2px;
  background: #d4a574;
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

.site-footer__link:hover {
  color: #d4a574 !important;
  padding-left: 16px;
}

.site-footer__link:hover::before {
  width: 8px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.site-footer__hotline-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__hotline {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d4a574, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.site-footer__hotline:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
}

.site-footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.site-footer__tech {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .site-footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 0;
  }

  .site-footer__content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-footer__link-group {
    gap: 0.5rem;
  }

  .site-footer__logo-icon {
    width: 44px;
    height: 44px;
  }

  .site-footer__name {
    font-size: 1.1rem;
  }

  .site-footer__desc {
    font-size: 0.8rem;
  }

  .site-footer__hotline {
    font-size: 1.1rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem 0;
  }
}

/* ========== Form Controls ========== */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 176, 58, 0.25) !important;
}

/* ========== Utilities ========== */
.text-golden {
  color: var(--primary-color) !important;
}

.bg-cream {
  background-color: var(--cream-bg) !important;
}

.border-golden {
  border-color: var(--primary-color) !important;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero .display-4 {
    font-size: 2rem;
  }

  .post-card__image {
    height: 180px;
  }
}
