/*
Theme Name: Bachelor Barbershop
Theme URI: https://blog.howtobachelor.com
Description: A relaxed, masculine barbershop-inspired theme for How To Bachelor. No dependencies, standalone theme.
Author: How To Bachelor
Author URI: https://blog.howtobachelor.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bachelor-barbershop
Tags: blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================================
 * BACHELOR BARBERSHOP THEME
 * A relaxed, welcoming space for men - like your favorite barbershop
 * ============================================================================ */

/* ============================================================================
 * CSS RESET & BASE
 * ============================================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #fafafa;
  overflow-x: hidden;
}

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

a {
  color: #c17943;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2d3748;
}

/* ============================================================================
 * TYPOGRAPHY
 * ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #2d3748;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1.5rem;
}

/* ============================================================================
 * LAYOUT STRUCTURE
 * ============================================================================ */

.site-container {
  max-width: 1400px;
  margin: 0 auto;
  background: #FFFFFF;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ============================================================================
 * HEADER & NAVIGATION
 * ============================================================================ */

/* Barber Pole Animation - Modern */
.barber-pole {
  height: 4px;
  background: linear-gradient(
    90deg,
    #c17943 0%,
    #c17943 33%,
    #2d3748 33%,
    #2d3748 66%,
    #c17943 66%,
    #c17943 100%
  );
  background-size: 30px 4px;
  animation: barberpole 2s linear infinite;
}

@keyframes barberpole {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

.site-header {
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 2rem 1.25rem;
  position: relative;
}

.site-logo {
  max-width: 80px;
  margin: 0 auto 0.75rem;
}

.site-logo img {
  margin: 0 auto;
}

.site-title {
  font-size: 1.875rem;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-title a:hover {
  color: #c17943;
}

.site-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #a0aec0;
  font-weight: 400;
  letter-spacing: normal;
}

/* Navigation */
.main-navigation {
  background: #1a202c;
  border-bottom: 2px solid #2d3748;
  padding: 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #c17943;
  border-bottom-color: #c17943;
  background: rgba(193, 121, 67, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  z-index: 1000;
}

.menu-toggle:hover {
  background: #3d4758;
  color: #c17943;
}

.menu-toggle:focus {
  outline: 2px solid #c17943;
  outline-offset: 4px;
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  z-index: 2;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================================
 * HOMEPAGE HERO
 * ============================================================================ */

.hero-section {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(193, 121, 67, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-section p {
  font-size: 1.0625rem;
  color: #cbd5e0;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-button {
  display: inline-block;
  background: #c17943;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 1rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(193, 121, 67, 0.3);
  transition: all 0.3s ease;
}

.hero-button:hover {
  background: #a86435;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 121, 67, 0.4);
}

/* ============================================================================
 * CATEGORY CARDS (HOMEPAGE)
 * ============================================================================ */

.categories-section {
  padding: 5rem 2rem;
  background: #ffffff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #c17943;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #718096;
  margin-bottom: 3.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #c17943;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(45, 55, 72, 0.12);
  border-color: #c17943;
}

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

.category-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3748;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.category-card p {
  font-size: 0.9375rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.category-button {
  display: inline-block;
  background: transparent;
  color: #c17943;
  border: 2px solid #c17943;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.category-button:hover {
  background: #c17943;
  color: #ffffff;
}

/* ============================================================================
 * LATEST POSTS SECTION
 * ============================================================================ */

.latest-posts-section {
  padding: 5rem 2rem;
  background: #f7fafc;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

/* ============================================================================
 * POST CARDS
 * ============================================================================ */

.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(45, 55, 72, 0.1);
  border-color: #cbd5e0;
}

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

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

.post-thumbnail-link {
  display: block;
  overflow: hidden;
  background: #E8DFD4;
}

.post-content {
  padding: 1.75rem;
}

.post-card .post-title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.post-card .post-title a {
  color: #2d3748;
}

.post-card .post-title a:hover {
  color: #c17943;
}

.post-excerpt {
  color: #718096;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #a0aec0;
  flex-wrap: wrap;
}

.read-more {
  color: #c17943;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  margin-top: 1rem;
  display: inline-block;
}

.read-more:hover {
  color: #a86435;
}

/* ============================================================================
 * SINGLE POST PAGE
 * ============================================================================ */

.single-post-container {
  padding: 4rem 2rem;
  background: #ffffff;
}

.post-header {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.post-header .post-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.post-header .post-meta {
  justify-content: center;
  font-size: 1.0625rem;
  gap: 2rem;
}

.featured-image-single {
  max-width: 1100px;
  margin: 0 auto 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1875rem;
  line-height: 1.9;
  color: #333333;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.25rem;
}

.post-body h2::before,
.post-body h3::before,
.post-body h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 70%;
  background: #c17943;
}

.post-body blockquote {
  border-left: 4px solid #c17943;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #718096;
  background: #f7fafc;
  padding: 1.5rem 2rem;
}

.post-body ul,
.post-body ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-body li {
  margin-bottom: 0.75rem;
}

/* Post Navigation */
.post-navigation {
  max-width: 800px;
  margin: 4rem auto;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c17943;
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #c17943;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  background: #c17943;
  color: #ffffff;
}

/* ============================================================================
 * BLOG ARCHIVE/INDEX
 * ============================================================================ */

.archive-container {
  padding: 4rem 2rem;
  background: #f7fafc;
}

.archive-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.archive-title {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.archive-description {
  font-size: 1.125rem;
  color: #718096;
}

/* ============================================================================
 * PAGINATION
 * ============================================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 4rem auto 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: #ffffff;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: #c17943;
  color: #ffffff;
  border-color: #c17943;
}

/* ============================================================================
 * FOOTER
 * ============================================================================ */

.site-footer {
  background: #2d3748;
  color: #e2e8f0;
  padding: 4rem 2rem 2rem;
  border-top: 3px solid #c17943;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.footer-section p,
.footer-section li {
  color: #cbd5e0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #c17943;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: #4a5568;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #c17943;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
  color: #a0aec0;
  font-size: 0.875rem;
}

/* ============================================================================
 * RESPONSIVE DESIGN
 * ============================================================================ */

@media (max-width: 1024px) {
  .content-wrapper {
    padding: 0 1.5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .site-header {
    padding: 1.25rem 1.5rem 1rem;
  }

  .site-logo {
    max-width: 60px;
    margin: 0 auto 0.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-description {
    font-size: 0.875rem;
  }

  .hero-section {
    padding: 2.5rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Mobile Navigation */
  .main-navigation {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a202c;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation ul.active {
    display: flex;
  }

  .main-navigation a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item a {
    border-left-color: #c17943;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .post-header .post-title {
    font-size: 2.5rem;
  }

  .post-navigation {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .content-wrapper {
    padding: 0 1rem;
  }

  .site-header {
    padding: 1rem 1rem 0.875rem;
  }

  .site-logo {
    max-width: 50px;
  }

  .site-title {
    font-size: 1.375rem;
  }

  .site-description {
    font-size: 0.8125rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .category-card {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================================
 * GOOGLE FONTS
 * ============================================================================ */

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