/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #1e4da1;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo h1 {
  color: #1e4da1;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a:hover {
  color: #2ec4b6;
  transition: color 0.3s ease;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2ec4b6;
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lang-btn::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;
}

.lang-btn:hover::before {
  left: 100%;
}

.lang-btn:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.lang-btn.active {
  background: #3498db;
  color: white;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.lang-btn.active:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e4da1 0%, #2ec4b6 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto 2rem;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: #2ec4b6;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #26a69a;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  /* margin-left 제거 - 원래 위치로 */
}

.cta-btn:hover {
  background: white;
  color: #1e4da1;
}

/* Categories Section */
.categories {
  padding: 4rem 0;
  background: #f8f9fa;
}

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

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h4 {
  color: #1e4da1;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

.category-card p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

/* Featured Businesses */
.featured {
  padding: 4rem 0;
}

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

.business-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.business-image {
  height: 200px;
  overflow: hidden;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-info {
  padding: 1.5rem;
}

.business-info h4 {
  color: #1e4da1;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.business-category {
  color: #2ec4b6;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.business-location {
  color: #666;
  font-size: 0.9rem;
}

/* Map and Instagram Section */
.map-instagram-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.map-instagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Map Preview */
.map-preview {
  background: transparent;
  padding: 0;
}

/* Instagram Feed Styles */
.instagram-feed {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.instagram-container {
  max-width: 100%;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.instagram-embed {
  background: white;
  border-radius: 12px;
  border: 1px solid #dbdbdb;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.instagram-post-single {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
}

.post-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.location {
  font-size: 12px;
  color: #8e8e8e;
}

.post-menu {
  font-size: 18px;
  color: #262626;
  cursor: pointer;
}

.post-image-container {
  width: 100%;
  flex: 1;
  min-height: 300px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image-main {
  font-size: 48px;
  color: #8e8e8e;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

.action-buttons {
  display: flex;
  gap: 16px;
}

.action-btn {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
}

.bookmark {
  margin-left: auto;
}

.post-content {
  padding: 0 16px 12px;
}

.post-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #262626;
}

.post-time {
  font-size: 12px;
  color: #8e8e8e;
  margin: 0;
}

.instagram-btn {
  background: #0095f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 16px;
  width: calc(100% - 32px);
}

.instagram-btn:hover {
  background: #0081d4;
  transform: translateY(-1px);
}

/* Map and Instagram Responsive */
@media (max-width: 768px) {
  .map-instagram-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }

  .instagram-feed {
    height: auto;
  }

  .post-image-container {
    min-height: 250px;
  }

  /* Google Maps Mobile */
  .google-map-embed {
    height: 300px;
  }

  .map-info {
    padding: 1.5rem;
  }

  .map-info h4 {
    font-size: 1.3rem;
  }

  .map-info p {
    font-size: 0.9rem;
  }

  .post-header {
    padding: 10px 12px;
  }

  .post-actions {
    padding: 6px 12px;
  }

  .post-content {
    padding: 0 12px 10px;
  }

  .instagram-btn {
    margin: 12px;
    width: calc(100% - 24px);
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .map-instagram-grid {
    gap: 1rem;
    align-items: stretch;
  }

  .post-image-container {
    min-height: 200px;
  }

  /* Google Maps Small Mobile */
  .google-map-embed {
    height: 250px;
  }

  .map-info {
    padding: 1rem;
  }

  .map-info h4 {
    font-size: 1.1rem;
  }

  .map-info p {
    font-size: 0.8rem;
  }

  .post-header {
    padding: 8px 10px;
  }

  .profile-pic {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .username {
    font-size: 13px;
  }

  .location {
    font-size: 11px;
  }

  .post-actions {
    padding: 4px 10px;
  }

  .action-btn {
    font-size: 20px;
  }

  .post-content {
    padding: 0 10px 8px;
  }

  .post-content p {
    font-size: 13px;
  }

  .post-time {
    font-size: 11px;
  }

  .instagram-btn {
    margin: 10px;
    width: calc(100% - 20px);
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Advertisement Banner Mobile */
  .ad-content {
    padding: 1rem;
  }

  .ad-main {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .ad-cta {
    justify-content: flex-start;
  }

  .ad-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* Statistics Banner Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stat-item {
    padding: 0.8rem;
  }

  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

.map-container {
  max-width: 100%;
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-map-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 16px;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.map-container:hover .map-overlay {
  opacity: 1;
}

.map-info {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 300px;
}

.map-info h4 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.map-info p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Advertisement Banner */
.ad-banner {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ad-content {
  padding: 1.5rem;
  color: white;
}

.ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ad-label {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.ad-sponsor {
  font-size: 0.75rem;
  opacity: 0.8;
}

.ad-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ad-image {
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.ad-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.ad-text p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.ad-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ad-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ad-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Statistics Banner */
.stats-banner {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
  transition: transform 0.3s ease;
}

.stats-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.stats-content {
  padding: 1.5rem;
  color: white;
}

.stats-header {
  margin-bottom: 1rem;
}

.stats-label {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.map-placeholder {
  background: #e9ecef;
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-content {
  text-align: center;
  color: #666;
}

.map-pin {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.map-btn {
  background: #1e4da1;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.map-btn:hover {
  background: #153a7a;
}

/* Footer */
.footer {
  background: #1e4da1;
  color: white;
  padding: 3rem 0 1rem;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: #2ec4b6;
}

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

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

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #2ec4b6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
  color: #2c3e50;
}

.loading-content h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Hover effects */
.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Search input focus effect */
.search-input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --card-bg: #2d2d2d;
  --border-color: #404040;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-text-color: #ffffff;
  --link-color: #3498db;
  --link-hover-color: #5dade2;
}

[data-theme="dark"] {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] html {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

[data-theme="dark"] #root {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] * {
  background-color: inherit;
  box-sizing: border-box;
}

[data-theme="dark"] .container {
  background-color: transparent !important;
}

[data-theme="dark"] main {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] section {
  background-color: transparent !important;
}

[data-theme="dark"] .hero {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .categories {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .featured {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .map-preview {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-color);
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div {
  color: var(--text-color);
}

[data-theme="dark"] .header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .business-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px var(--shadow-color);
}

[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-select {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .nav-link {
  color: var(--nav-text-color);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--link-hover-color);
}

[data-theme="dark"] .nav-link.active {
  color: var(--link-color);
}

[data-theme="dark"] .logo a {
  color: var(--text-color);
}

[data-theme="dark"] .logo a:hover {
  color: var(--link-hover-color);
}

/* Language toggle buttons dark mode */
[data-theme="dark"] .lang-btn {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .lang-btn:hover {
  background: var(--link-color);
  border-color: var(--link-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .lang-btn.active {
  background: var(--link-color);
  border-color: var(--link-color);
  color: white;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .lang-btn.active:hover {
  background: var(--link-hover-color);
  border-color: var(--link-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* Enhanced dark mode language toggle effects */
[data-theme="dark"] .lang-btn::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 152, 219, 0.3),
    transparent
  );
}

[data-theme="dark"] .lang-btn:hover::before {
  left: 100%;
}

[data-theme="dark"] .lang-btn.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    width: 20px;
    height: 20px;
    opacity: 0;
  }
}

[data-theme="dark"] .btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Category section dark mode */
[data-theme="dark"] .categories {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .categories h2 {
  color: var(--text-color);
}

[data-theme="dark"] .categories p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .category-grid {
  background: transparent;
}

[data-theme="dark"] .category-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .category-card:hover {
  background: var(--link-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .category-card h4 {
  color: inherit;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

[data-theme="dark"] .category-card p {
  color: inherit;
  opacity: 0.9;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

[data-theme="dark"] .category-card .category-icon {
  color: var(--link-color);
}

[data-theme="dark"] .category-card:hover .category-icon {
  color: white;
}

[data-theme="dark"] .footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Hero section dark mode */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .hero h1 {
  color: var(--text-color);
}

[data-theme="dark"] .hero p {
  color: var(--text-color);
  opacity: 0.9;
}

/* Stats section dark mode */
[data-theme="dark"] .stats {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .stats h2 {
  color: var(--text-color);
}

[data-theme="dark"] .stats p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .stats-grid {
  background: transparent;
}

[data-theme="dark"] .stat-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .stat-card h3 {
  color: var(--link-color);
}

[data-theme="dark"] .stat-card p {
  color: var(--text-color);
  opacity: 0.8;
}

/* CTA section dark mode */
[data-theme="dark"] .cta {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

[data-theme="dark"] .cta h2 {
  color: white;
}

[data-theme="dark"] .cta p {
  color: white;
  opacity: 0.9;
}

/* Footer dark mode */
[data-theme="dark"] .footer h4 {
  color: var(--text-color);
}

[data-theme="dark"] .footer ul li a {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .footer ul li a:hover {
  color: var(--link-hover-color);
}

[data-theme="dark"] .footer p {
  color: rgba(255, 255, 255, 0.8);
}

/* Featured businesses section dark mode */
[data-theme="dark"] .featured {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .featured h2 {
  color: var(--text-color);
}

[data-theme="dark"] .featured p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .featured-grid {
  background: transparent;
}

[data-theme="dark"] .featured-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .featured-card:hover {
  background: var(--card-bg);
  border-color: var(--link-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .featured-card h3 {
  color: var(--text-color);
}

[data-theme="dark"] .featured-card p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .featured-card .category {
  background: var(--link-color);
  color: white;
}

[data-theme="dark"] .featured-card .rating {
  color: #f39c12;
}

[data-theme="dark"] .featured-card .address {
  color: var(--text-color);
  opacity: 0.7;
}

/* Map Preview section dark mode */
[data-theme="dark"] .map-preview {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .section-title {
  color: var(--text-color);
}

[data-theme="dark"] .map-preview .section-title {
  color: var(--text-color);
}

[data-theme="dark"] .map-container {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .map-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .map-content {
  color: var(--text-color);
}

[data-theme="dark"] .map-content p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .map-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
}

[data-theme="dark"] .map-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* Search section dark mode */
[data-theme="dark"] .search-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .search-section h2 {
  color: var(--text-color);
}

[data-theme="dark"] .search-section p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .search-box {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .search-box input {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .search-box input::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}

[data-theme="dark"] .search-box .btn {
  background: var(--link-color);
  color: white;
}

[data-theme="dark"] .search-box .btn:hover {
  background: var(--link-hover-color);
}

/* Quick stats dark mode */
[data-theme="dark"] .quick-stats {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .quick-stats h3 {
  color: var(--text-color);
}

[data-theme="dark"] .quick-stats p {
  color: var(--text-color);
  opacity: 0.8;
}

[data-theme="dark"] .quick-stats .stat-number {
  color: var(--link-color);
}

/* Newsletter section dark mode */
[data-theme="dark"] .newsletter {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .newsletter h3 {
  color: var(--text-color);
}

[data-theme="dark"] .newsletter p {
  color: var(--text-color);
  opacity: 0.9;
}

[data-theme="dark"] .newsletter input {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .newsletter input::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}

[data-theme="dark"] .newsletter .btn {
  background: var(--link-color);
  color: white;
}

[data-theme="dark"] .newsletter .btn:hover {
  background: var(--link-hover-color);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Dark mode scroll to top button */
[data-theme="dark"] .scroll-to-top {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

[data-theme="dark"] .scroll-to-top:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Kakao Link Styling */
.kakao-link {
  color: #3c1e1e !important;
  background: linear-gradient(135deg, #fee500 0%, #ffeb3b 100%);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kakao-link:hover {
  background: linear-gradient(135deg, #ffeb3b 0%, #fee500 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* Dark mode kakao link */
[data-theme="dark"] .kakao-link {
  color: #2c1e1e !important;
  background: linear-gradient(135deg, #fee500 0%, #ffeb3b 100%);
}

[data-theme="dark"] .kakao-link:hover {
  background: linear-gradient(135deg, #ffeb3b 0%, #fee500 100%);
}

/* Header top section - Desktop layout */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.header-top .logo {
  margin-right: 0;
}

.header-top .header-controls {
  margin-left: 0;
}

/* Desktop: Hide mobile nav */
@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

[data-theme="dark"] .theme-toggle {
  border-color: #f39c12;
  color: #f39c12;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #f39c12;
  color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-top {
    margin-bottom: 0.5rem;
    justify-content: space-between;
  }

  .header-top .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .lang-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-container {
    flex-direction: column;
  }

  .search-btn {
    border-radius: 0 0 16px 16px;
  }

  /* .cta-btn margin-left 제거 - 원래 위치로 */

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-card h4 {
    font-size: 1rem;
  }

  .category-card p {
    font-size: 0.8rem;
  }

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

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 2rem 0;
  }

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

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

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

  .nav {
    gap: 0.25rem;
    padding: 0 0.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .header-controls {
    gap: 0.25rem;
  }

  .lang-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* .cta-btn margin-left 제거 - 원래 위치로 */

  .category-card {
    padding: 1rem;
  }

  .category-card h4 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .category-card p {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .category-icon {
    font-size: 2rem;
  }
}

/* Dark Mode Styles */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --border-color: #333333;
  --card-bg: #2d2d2d;
  --input-bg: #3a3a3a;
  --hover-bg: #404040;
}

[data-theme="dark"] body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

[data-theme="dark"] html {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] main {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] section {
  background-color: transparent;
}

/* Header Dark Mode */
[data-theme="dark"] .header {
  background: var(--card-bg) !important;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .header h1,
[data-theme="dark"] .header .logo-subtitle {
  color: var(--text-color);
}

[data-theme="dark"] .nav-link {
  color: var(--text-color);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #2ec4b6;
}

/* Hero Section Dark Mode */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a3d8a 0%, #2a4a8f 100%);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p {
  color: white;
}

/* Categories Section Dark Mode */
[data-theme="dark"] .categories {
  background: var(--bg-color) !important;
}

[data-theme="dark"] .categories h2 {
  color: var(--text-color);
}

[data-theme="dark"] .category-card {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .category-card h4,
[data-theme="dark"] .category-card p {
  color: var(--text-color);
}

[data-theme="dark"] .category-card:hover {
  background: var(--hover-bg);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Featured Section Dark Mode */
[data-theme="dark"] .featured {
  background: var(--bg-color) !important;
}

[data-theme="dark"] .featured h2 {
  color: var(--text-color);
}

[data-theme="dark"] .business-card {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .business-card h4,
[data-theme="dark"] .business-card p {
  color: var(--text-color);
}

[data-theme="dark"] .business-card .category {
  background: var(--input-bg);
  color: var(--text-color);
}

/* Map and Instagram Section Dark Mode */
[data-theme="dark"] .map-instagram-section {
  background: var(--bg-color) !important;
}

[data-theme="dark"] .map-preview {
  background: transparent;
}

/* Google Maps Dark Mode */
[data-theme="dark"] .map-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Advertisement Banner Dark Mode */
[data-theme="dark"] .ad-banner {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
}

[data-theme="dark"] .ad-banner:hover {
  box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4);
}

/* Statistics Banner Dark Mode */
[data-theme="dark"] .stats-banner {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

[data-theme="dark"] .stats-banner:hover {
  box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
}

/* Instagram Feed Dark Mode */
[data-theme="dark"] .instagram-feed {
  background: transparent;
}

[data-theme="dark"] .instagram-embed {
  background: #262626;
  border-color: #363636;
}

[data-theme="dark"] .post-header {
  border-bottom-color: #363636;
}

[data-theme="dark"] .username {
  color: #ffffff;
}

[data-theme="dark"] .location {
  color: #a8a8a8;
}

[data-theme="dark"] .post-menu {
  color: #ffffff;
}

[data-theme="dark"] .post-image-container {
  background: #1a1a1a;
}

[data-theme="dark"] .post-image-main {
  color: #a8a8a8;
}

[data-theme="dark"] .post-content p {
  color: #ffffff;
}

[data-theme="dark"] .post-time {
  color: #a8a8a8;
}

[data-theme="dark"] .map-preview h2,
[data-theme="dark"] .map-preview p {
  color: var(--text-color);
}

[data-theme="dark"] .map-preview * {
  color: var(--text-color);
}

/* Footer Dark Mode */
[data-theme="dark"] .footer {
  background: var(--card-bg) !important;
  border-top-color: var(--border-color);
}

[data-theme="dark"] .footer h3,
[data-theme="dark"] .footer h4,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
  color: var(--text-color);
}

[data-theme="dark"] .footer a:hover {
  color: #2ec4b6;
}

/* Search and Input Dark Mode */
[data-theme="dark"] .search-bar input {
  background: var(--input-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}

[data-theme="dark"] .search-bar input::placeholder {
  color: #999;
}

[data-theme="dark"] .search-btn {
  background: #1e4da1;
  color: white;
}

[data-theme="dark"] .search-btn:hover {
  background: #2c5aa0;
}

/* Buttons Dark Mode */
[data-theme="dark"] .cta-btn {
  background: #2ec4b6;
  color: white;
}

[data-theme="dark"] .cta-btn:hover {
  background: #26a69a;
}

/* Scroll to Top Button Dark Mode */
[data-theme="dark"] .scroll-to-top {
  background: #1e4da1;
  color: white;
  box-shadow: 0 4px 15px rgba(30, 77, 161, 0.3);
}

[data-theme="dark"] .scroll-to-top:hover {
  background: #2c5aa0;
  box-shadow: 0 6px 20px rgba(30, 77, 161, 0.4);
}

/* General Dark Mode Text */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-color) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div {
  color: var(--text-color);
}
