/*
Theme Name: ShareTools
Theme URI: https://example.com/sharetools
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme for sharing tools and templates. Features dark mode, responsive design, and download countdown functionality.
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: sharetools
*/

/* ========================================
   CSS Variables & Root Styles
   ======================================== */
:root {
  /* Colors */
  --color-primary: #137fec;
  --color-primary-hover: #0f6bd0;
  --color-primary-light: rgba(19, 127, 236, 0.1);

  /* Light Mode */
  --bg-light: #f6f7f8;
  --bg-white: #ffffff;
  --text-main: #0d141b;
  --text-secondary: #4c739a;
  --border-light: #e7edf3;
  --card-bg: #ffffff;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Dark Mode Variables */
html.dark {
  --bg-light: #101922;
  --bg-white: #1a2634;
  --text-main: #ffffff;
  --text-secondary: #94a3b8;
  --border-light: #2a3b4d;
  --card-bg: #1a2634;
}

/* ========================================
   Base Styles
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Screen Reader Text - Hidden but accessible */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  top: 6px;
  left: 6px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  clip: auto !important;
  white-space: normal;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

/* Container with vertical padding for page content */
.container-page {
  padding-top: var(--spacing-xl);
  padding-bottom: 80px;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: var(--spacing-xs);
}
.gap-2 {
  gap: var(--spacing-sm);
}
.gap-3 {
  gap: var(--spacing-md);
}
.gap-4 {
  gap: var(--spacing-lg);
}
.gap-6 {
  gap: var(--spacing-xl);
}

/* Grid */
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-normal);
}

html.dark .site-header {
  background: rgba(16, 25, 34, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--spacing-md);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 var(--spacing-xl);
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(19, 127, 236, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ========================================
   Form Elements
   ======================================== */
.form-input {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 512px;
}

.search-box .search-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-box input {
  padding-left: 48px;
  padding-right: var(--spacing-md);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 16px 48px rgba(0, 0, 0, 0.08);
}

.card-image {
  aspect-ratio: 4/3;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

html.dark .card-image {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark .card-badge {
  background: rgba(30, 41, 59, 0.95);
  color: #e2e8f0;
}

.card-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.card-badge-dot.blue {
  background: #3b82f6;
}
.card-badge-dot.purple {
  background: #8b5cf6;
}
.card-badge-dot.green {
  background: #22c55e;
}
.card-badge-dot.orange {
  background: #f97316;
}
.card-badge-dot.pink {
  background: #ec4899;
}
.card-badge-dot.development {
  background: #06b6d4;
}
.card-badge-dot.finance {
  background: #10b981;
}
.card-badge-dot.marketing {
  background: #3b82f6;
}
.card-badge-dot.productivity {
  background: #8b5cf6;
}
.card-badge-dot.design {
  background: #f43f5e;
}

.card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-price.free {
  background: #22c55e;
  color: #fff;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.4;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  margin-top: auto;
}

.card-footer .btn {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(to bottom, #eff6ff, var(--bg-light));
  text-align: center;
}

html.dark .hero {
  background: linear-gradient(to bottom, #0f172a, var(--bg-light));
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.75rem;
  font-weight: 500;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

html.dark .hero-badge {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.hero-badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
}

.hero-badge-dot::before,
.hero-badge-dot::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 50%;
}

.hero-badge-dot::before {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--color-primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 512px;
  margin: 0 auto var(--spacing-lg);
}

.hero-search {
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-search .search-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.hero-search .btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.popular-tags a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.popular-tags a:hover {
  color: var(--color-primary);
}

/* ========================================
   Filter Tabs
   ======================================== */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(246, 247, 248, 0.95);
  backdrop-filter: blur(8px);
  padding: var(--spacing-md);
  margin-left: calc(-1 * var(--spacing-md));
  margin-right: calc(-1 * var(--spacing-md));
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .filter-bar {
    padding: var(--spacing-md) var(--spacing-xl);
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
  }
}

html.dark .filter-bar {
  background: rgba(16, 25, 34, 0.95);
}

.filter-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: var(--bg-light);
  border-color: var(--text-secondary);
}

.filter-tab.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-white);
}

html.dark .filter-tab.active {
  background: #fff;
  color: var(--bg-light);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-2xl);
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--bg-white);
  color: var(--text-main);
}

.page-link.active {
  background: var(--color-primary);
  color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  margin-top: auto;
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
}

.footer-logo .logo-icon {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* ========================================
   Download Countdown
   ======================================== */
.countdown-container {
  text-align: center;
  padding: var(--spacing-2xl);
}

.countdown-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-light);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.countdown-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.download-btn {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.download-btn.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Dark Mode Toggle
   ======================================== */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dark-mode-toggle:hover {
  background: var(--bg-white);
  color: var(--color-primary);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--text-main);
}

/* ========================================
   Tool Detail Page
   ======================================== */
.tool-header {
  margin-bottom: var(--spacing-lg);
}

.tool-title {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
  .tool-title {
    font-size: 2.5rem;
  }
}

.tool-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.chip-primary {
  background: var(--color-primary-light);
  border-color: rgba(19, 127, 236, 0.2);
  color: var(--color-primary);
}

.chip-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

/* Tool Gallery */
.tool-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .tool-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-gallery .main-image {
    grid-column: span 2;
  }
}

.gallery-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Tool Sidebar */
.tool-sidebar {
  position: sticky;
  top: 96px;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
}

.download-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.price-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: var(--spacing-sm);
}

.download-info {
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Author Card */
.author-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-lg);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ========================================
   Blog/Article Styles
   ======================================== */
.article-header {
  margin-bottom: var(--spacing-2xl);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
}

.article-read-time {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .article-title {
    font-size: 3rem;
  }
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.article-content p {
  margin-bottom: var(--spacing-lg);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-lg);
}

.article-content li {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 45;
  padding: 0;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.mobile-nav-link:first-child {
  border-top: 1px solid var(--border-light);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--bg-light);
}

.mobile-nav-link .nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.mobile-nav-link .nav-text {
  flex: 1;
}

.mobile-nav-link .nav-arrow {
  color: var(--text-secondary);
  font-size: 18px;
  margin-left: auto;
}

.mobile-nav-link .nav-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #22c55e;
  color: #fff;
  border-radius: var(--radius-full);
  margin-left: 8px;
  text-transform: uppercase;
}

/* Mobile menu divider */
.mobile-nav-divider {
  height: 8px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Mobile menu user section */
.mobile-user-section {
  padding: 16px 20px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-user-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-user-details h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.mobile-user-details p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

/* Mobile nav footer buttons */
.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-md);
  padding-top: 0;
}

.mobile-nav-footer .btn {
  justify-content: center;
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--text-secondary);
}

.hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  .md\:block {
    display: block;
  }
  .md\:flex {
    display: flex;
  }
}

/* Material Icons Sizing */
.material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

.material-symbols-outlined.sm {
  font-size: 18px;
}
.material-symbols-outlined.lg {
  font-size: 32px;
}

/* ========================================
   Blog Sidebar Layout
   ======================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  order: 2;
}

@media (min-width: 1024px) {
  .blog-sidebar {
    order: 1;
    position: sticky;
    top: 96px;
    height: fit-content;
  }
}

.blog-content {
  order: 1;
  max-width: 720px;
}

@media (min-width: 1024px) {
  .blog-content {
    order: 2;
  }
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-widget-title .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-primary);
}

/* Category List */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 4px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.category-list a:hover {
  background: var(--bg-light);
  color: var(--color-primary);
}

.category-list .cat-name {
  font-weight: 500;
}

.category-list .cat-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.category-list a:hover .cat-count {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Popular Posts List */
.popular-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-posts-list li {
  margin-bottom: 8px;
}

.popular-posts-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popular-posts-list a:hover {
  background: var(--bg-light);
}

.popular-posts-list .post-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: 8px;
}

.popular-posts-list li:nth-child(1) .post-number {
  background: #fef3c7;
  color: #d97706;
}

.popular-posts-list li:nth-child(2) .post-number {
  background: #e5e7eb;
  color: #6b7280;
}

.popular-posts-list li:nth-child(3) .post-number {
  background: #fed7aa;
  color: #c2410c;
}

.popular-posts-list .post-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.popular-posts-list .post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.popular-posts-list a:hover .post-title {
  color: var(--color-primary);
}

.popular-posts-list .post-date {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========================================
   Auth Pages (Sign In / Sign Up)
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, var(--bg-light) 100%);
}

html.dark .auth-page {
  background: linear-gradient(135deg, #0f172a 0%, var(--bg-light) 100%);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.auth-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.forgot-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper > .material-symbols-outlined:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 20px;
  pointer-events: none;
}

.input-icon-wrapper .form-input {
  padding-left: 48px;
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

.toggle-password:hover {
  color: var(--text-main);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.checkbox-label a {
  color: var(--color-primary);
}

.auth-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.auth-divider span {
  position: relative;
  background: var(--card-bg);
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.back-link:hover {
  color: var(--color-primary);
}

.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar div {
  height: 100%;
  transition: width 0.3s ease;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   Profile Page
   ======================================== */
.profile-page {
  min-height: 70vh;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--card-bg);
  border-radius: 16px;
  margin-bottom: 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .profile-header {
    flex-direction: row;
    text-align: left;
  }
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--border-light);
}

.avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.avatar-edit .material-symbols-outlined {
  font-size: 16px;
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.profile-member-since {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .profile-member-since {
    justify-content: flex-start;
  }
}

.profile-actions {
  flex-shrink: 0;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.profile-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.profile-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

.profile-form {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-actions {
  margin-top: 24px;
}

.empty-state {
  text-align: center;
  padding: 64px 32px;
  background: var(--card-bg);
  border-radius: 16px;
}

.empty-state .material-symbols-outlined {
  font-size: 64px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.download-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========================================
   Sponsor Widget
   ======================================== */
.sponsor-widget {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border-light);
}

.sponsor-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* Sponsor Tabs */
.sponsor-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.sponsor-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sponsor-tab:hover {
  border-color: var(--text-secondary);
}

.sponsor-tab.active {
  background: var(--bg-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sponsor-tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.sponsor-tab-icon.momo-icon {
  background-color: #ae2070;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.sponsor-tab-icon.bank-icon {
  background-color: #007a3d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 10h3v7H4zM10.5 10h3v7h-3zM2 19h20v3H2zM17 10h3v7h-3zM12 1L2 6v2h20V6z'/%3E%3C/svg%3E");
}

/* QR Code Container */
.sponsor-qr-container {
  margin-top: 16px;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sponsor-qr-content {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: fadeInQR 0.3s ease;
}

.sponsor-qr-content.active {
  display: block;
}

@keyframes fadeInQR {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sponsor-qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sponsor-qr-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sponsor-thanks {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
}

/* Dark mode adjustments */
html.dark .sponsor-tab {
  background: rgba(255, 255, 255, 0.05);
}

html.dark .sponsor-tab.active {
  background: rgba(19, 127, 236, 0.1);
}

html.dark .sponsor-qr-image {
  border-color: var(--border-light);
}

/* ========================================
   Download Link Display
   ======================================== */
.download-link-container {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-ready-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 12px;
}

.download-ready-text .material-symbols-outlined {
  font-size: 20px;
}

.download-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.download-url-input {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  font-family: monospace;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-url-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.copy-btn {
  flex-shrink: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.copy-btn .material-symbols-outlined {
  font-size: 20px;
}

.copy-btn.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.copy-btn:hover:not(.copied) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Countdown Container Styling */
.countdown-container {
  text-align: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
}

.countdown-timer {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

/* Dark mode */
html.dark .download-url-input {
  background: rgba(255, 255, 255, 0.05);
}

html.dark .countdown-container {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

/* ========================================
   Category Hub - "Khám phá theo chủ đề"
   ======================================== */
.category-hub {
  margin-top: 24px;
  text-align: center;
}

.category-hub-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.category-hub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-hub-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
}

.category-hub-link .material-symbols-outlined {
  font-size: 18px;
}

/* Dark mode */
html.dark .category-hub-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

html.dark .category-hub-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .category-hub-links {
    gap: 8px;
  }
  
  .category-hub-link {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .category-hub-link .material-symbols-outlined {
    font-size: 16px;
  }
}
