/* ========== CSS Variables & Reset ========== */
:root {
  --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --primary-color: #8B5CF6;
  --primary-light: #A78BFA;
  --secondary-pink: #EC4899;

  --color-yellow: #FBBF24;
  --color-green: #10B981;
  --color-red: #F43F5E;
  --color-blue: #3B82F6;

  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --bg-gray-light: #F3F4F6;
  --border-gray: #E5E7EB;

  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --nav-height: 60px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.page-wrapper {
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: 40px;
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--primary-gradient);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.navbar-logo-icon {
  font-size: 24px;
}

.navbar-search {
  flex: 1;
  max-width: 300px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: background 0.2s;
}

.navbar-search:focus-within {
  background: rgba(255, 255, 255, 0.3);
}

.navbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.navbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.navbar-search-icon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.navbar-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.navbar-profile:hover {
  background: rgba(255, 255, 255, 0.3);
}

.navbar-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-right: 8px;
}

.navbar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85%;
  background: var(--bg-white);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gray);
  background: var(--primary-gradient);
  color: #fff;
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 15px;
}

.drawer-item:hover {
  background: var(--bg-gray);
}

.drawer-item-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.drawer-item-arrow {
  margin-left: auto;
  color: var(--text-light);
  font-size: 18px;
}

@media (max-width: 640px) {
  .navbar-search {
    max-width: none;
    margin: 0 12px;
    padding: 6px 12px;
  }

  .navbar-logo {
    font-size: 15px;
  }

  .navbar-logo span {
    display: inline;
  }

  .navbar-logo-icon {
    font-size: 20px;
  }
}

/* ========== Section Titles ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  font-size: 22px;
}

.section-more {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--secondary-pink);
}

/* ========== Category Header ========== */
.category-header {
  padding: 20px 0 12px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

@media (max-width: 768px) {
  .category-title {
    font-size: 18px;
  }
}

/* ========== Category Tabs ========== */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-gray);
  white-space: nowrap;
}

.category-tab:hover {
  background: var(--bg-gray-light);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* ========== Game Cards Grid ========== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-section.cat-arcade,
  .category-section.cat-puzzle,
  .category-section.cat-racing,
  .category-section.cat-3d,
  .category-section.cat-shooting {
    display: none;
  }
}

/* ========== Game Card ========== */
.game-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card:active {
  transform: translateY(-2px);
}

.game-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--bg-gray-light);
}

.game-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.game-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.game-card-badge.hot {
  background: var(--color-red);
}

.game-card-badge.new {
  background: var(--color-green);
}

.game-card-category {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.game-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
  background: var(--bg-gray-light);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ========== Hero Section ========== */
.hero-section {
  padding: 0 0 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  display: none;
}

.hero-section::after {
  display: none;
}

.hero-slider {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--bg-gray);
  cursor: pointer;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.hero-slide-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-slide-desc {
  font-size: 13px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
  position: absolute;
  bottom: 12px;
  z-index: 3;
}

.hero-dot:nth-of-type(1) { left: calc(50% - 32px); }
.hero-dot:nth-of-type(2) { left: calc(50% - 4px); }
.hero-dot:nth-of-type(3) { left: calc(50% + 24px); }

.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 12px 0;
  }

  .hero-slide-title {
    font-size: 16px;
  }

  .hero-slide-desc {
    font-size: 12px;
  }

  .hero-slide-overlay {
    padding: 12px;
  }
}

/* ========== Loading ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  margin-bottom: 20px;
}

/* ========== Tags ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-gray-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.tag:hover {
  background: var(--primary-color);
  color: #fff;
}

.tag.primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-color);
  border-color: rgba(139, 92, 246, 0.2);
}

.tag.primary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ========== Footer ========== */
.footer {
  margin-top: 40px;
  padding: 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border-gray);
  background: var(--bg-white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 12px;
  }

  .footer {
    padding: 24px 0;
  }
}

/* ========== Page Specific: Game Detail ========== */
.detail-header {
  background: var(--bg-white);
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-gray-light);
  overflow: hidden;
}

.detail-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 20px;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-tags {
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-actions .btn:first-child {
  width: 100%;
}

.detail-actions .btn:nth-child(2),
.detail-actions .btn:nth-child(3) {
  flex: 1;
  min-width: calc(50% - 6px);
}

.detail-controls {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.detail-controls h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.detail-controls p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .detail-title {
    font-size: 18px;
  }

  .detail-info {
    padding: 16px;
  }

  .detail-actions .btn {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* ========== Play Page ========== */
.play-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}

.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.play-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.play-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.play-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.play-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.play-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.play-frame {
  flex: 1;
  position: relative;
  background: #000;
}

.play-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.play-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.play-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.play-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  text-align: center;
  z-index: 10;
}

.play-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.play-error-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.play-error-desc {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.play-error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== Sort Bar ========== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

.result-count {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== Profile Page ========== */
.profile-header {
  background: var(--primary-gradient);
  padding: 40px 0;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 13px;
  opacity: 0.8;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-num {
  font-size: 24px;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 12px;
  opacity: 0.8;
}

.profile-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
  cursor: pointer;
  transition: color 0.2s;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  color: var(--primary-color);
}

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

.profile-menu-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.profile-menu-text {
  font-size: 14px;
  font-weight: 500;
}

.profile-menu-arrow {
  color: var(--text-light);
  font-size: 14px;
}

/* ========== Search Suggestions ========== */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bg-gray-light);
  transition: background 0.15s;
}

.search-suggestion-item:hover {
  background: var(--bg-gray-light);
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-thumb {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-suggestion-category {
  font-size: 11px;
  color: var(--text-secondary);
}

.hot-searches {
  margin-bottom: 24px;
}

.hot-searches h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hot-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-search-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.hot-search-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-lg);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg-white);
}

.search-input-wrapper input:focus {
  border-color: var(--primary-color);
}

.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-light);
}

/* ========== Prose / Content Page ========== */
.prose-page {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.prose-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.prose-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.prose-page p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.prose-page ul, .prose-page ol {
  margin-bottom: 14px;
  padding-left: 20px;
}

.prose-page li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.prose-page strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .prose-page {
    padding: 20px;
  }

  .prose-page h1 {
    font-size: 22px;
  }
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
