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

body {
  font-family: 'Inter', 'Helvetica', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1280px; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 0.5rem; /* px-2 */
}

@media (min-width: 640px) {
  .container {
    padding: 0 1rem; /* sm:px-4 */
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem; /* lg:px-8 */
  }
}

/* Header Styles */
.sticky-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Logo */
.logo-section {
  flex-shrink: 0;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Search Bar */
.search-section {
  flex-grow: 1;
  max-width: 450px;
  position: relative;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-bar:focus-within {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.search-icon {
  color: #9CA3AF;
  margin-right: 0.75rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.search-bar:focus-within .search-icon {
  color: #EF4444;
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.search-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.search-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border: none;
  border-radius: 10px;
  padding: 0.45rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.search-btn:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.search-shortcuts {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #9CA3AF;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-bar:not(:focus-within) .search-shortcuts {
  opacity: 1;
}

.shortcut-key {
  background: #E5E7EB;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.6rem;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #E5E7EB;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.search-suggestions.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #F3F4F6;
}

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

.search-suggestion:hover,
.search-suggestion.active {
  background: rgba(239, 68, 68, 0.05);
}

.suggestion-icon {
  color: #EF4444;
  font-size: 0.9rem;
}

.suggestion-content {
  flex-grow: 1;
}

.suggestion-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #111827;
  margin-bottom: 0.1rem;
}

.suggestion-type {
  font-size: 0.7rem;
  color: #6B7280;
  text-transform: capitalize;
}

.no-results {
  padding: 0.9rem;
  text-align: center;
  color: #6B7280;
  font-size: 0.85rem;
}

/* Navigation */
.main-navigation {
  flex-shrink: 0;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 11px;
  text-decoration: none;
  color: #6B7280;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  min-height: 40px;
}

.nav-item:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
  transform: translateY(-1px);
}

.nav-item.active {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #EF4444;
  border-radius: 50%;
}

.nav-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav-text {
  font-size: 0.85rem;
}

.create-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.create-btn:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white !important;
  box-shadow: 0 5px 14px rgba(239, 68, 68, 0.4);
}

.signup-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.signup-btn:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(239, 68, 68, 0.4);
}

.login-btn {
  background: #F9FAFB;
  color: #374151 !important;
  border: 1px solid #E5E7EB;
}

.login-btn:hover {
  background: #F3F4F6;
  color: #EF4444 !important;
  border-color: #EF4444;
}

/* Profile Dropdown */
.profile-wrapper {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-trigger:hover {
  background: rgba(239, 68, 68, 0.05);
}

.profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #E5E7EB;
  transition: all 0.3s ease;
}

.profile-trigger:hover .profile-avatar {
  border-color: #EF4444;
  transform: scale(1.05);
}

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

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #22C55E;
  border: 2px solid white;
  border-radius: 50%;
}

.dropdown-arrow {
  font-size: 0.7rem;
  color: #9CA3AF;
  transition: transform 0.3s ease;
}

.profile-wrapper[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #E5E7EB;
  min-width: 260px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #E5E7EB;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex-grow: 1;
}

.user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.1rem;
}

.user-username {
  font-size: 0.8rem;
  color: #6B7280;
  font-weight: 500;
}

.dropdown-section {
  padding: 0.4rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
}

.dropdown-icon {
  font-size: 0.9rem;
  width: 16px;
  opacity: 0.7;
}

.dropdown-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 0.2rem 0;
}

.logout-form {
  margin: 0;
}

.logout-item {
  color: #DC2626 !important;
}

.logout-item:hover {
  background: rgba(220, 38, 38, 0.05) !important;
  color: #DC2626 !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(239, 68, 68, 0.05);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 1.5px 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  border-bottom: 1px solid #F3F4F6;
}

.mobile-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6B7280;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
}

.mobile-nav-body {
  padding: 0.8rem;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #F9FAFB;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.mobile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #E5E7EB;
}

.mobile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-user-details {
  flex-grow: 1;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.1rem;
}

.mobile-user-username {
  font-size: 0.8rem;
  color: #6B7280;
  font-weight: 500;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
}

.mobile-nav-link i {
  font-size: 1rem;
  width: 18px;
}

.mobile-nav-link.signup {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white !important;
  margin-top: 0.8rem;
}

.mobile-nav-link.signup:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white !important;
}

.mobile-nav-link.login {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
}

.mobile-nav-link.login:hover {
  background: #F3F4F6;
  border-color: #EF4444;
  color: #EF4444;
}

.mobile-nav-footer {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #F3F4F6;
}

.mobile-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: none;
  border: none;
  color: #DC2626;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.mobile-logout-btn:hover {
  background: rgba(220, 38, 38, 0.05);
}

.mobile-logout-btn i {
  font-size: 1rem;
  width: 18px;
}

/* Onboarding Notice */
.onboarding-notice {
  background: linear-gradient(135deg, #FFF8E3, #FEF3C7);
  border-bottom: 1px solid #F59E0B;
  padding: 0.8rem;
  position: relative;
  overflow: hidden;
}

.onboarding-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.notice-icon {
  font-size: 1.1rem;
}

.notice-text {
  color: #92400E;
  font-weight: 600;
  font-size: 0.85rem;
}

.notice-btn {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.notice-btn:hover {
  background: linear-gradient(135deg, #D97706, #B45309);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}

/* Main Content */
.tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #E2E8F0;
}

.tab {
  position: relative;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  border: none !important;
  background: transparent !important;
  transition: all 0.2s ease;
}

.tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #EF4444, #DC2626);
  transition: width 0.3s ease;
}

.tab.active {
  font-weight: 600;
  color: #111827 !important;
}

.tab.active::before {
  width: 100%;
}

.tab:hover:not(.active)::before {
  width: 100%;
  background: #9CA3AF;
}

.tab-content {
  transition: opacity 0.3s ease;
}

/* New Share Section */
.new-share-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.new-share-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.new-share-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.05), transparent);
  transition: left 0.5s;
}

.new-share-section:hover::before {
  left: 100%;
}

.new-share-section input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.new-share-section button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
}

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

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: #3a3a3a;
  margin-bottom: 0.75rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: #F5F5F7;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #6B7280;
}

.share-actions button {
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
}

.share-card {
  position: relative;
  overflow: hidden;
}

.share-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(239, 68, 68, 0.02) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-card:hover::after {
  opacity: 1;
}

.action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.action-btn:hover::before {
  width: 100%;
  height: 100%;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
}

.contributor-list,
.trending-shares {
  list-style: none;
}

.contributor-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 0.75rem;
}

.contributor-item:hover {
  background: rgba(239, 68, 68, 0.02);
  transform: translateX(4px);
}

.follow-btn {
  background: #EF4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.follow-btn:hover {
  background: #DC2626;
}

/* Floating Action */
.floating-action {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
  color: white;
}

/* Community Stats */
.stats-counter {
  transition: all 0.3s ease;
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid #F3F4F6;
  padding: 2rem 0.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  footer {
    padding: 2rem 1rem;
  }
}

@media (min-width: 1024px) {
  footer {
    padding: 2rem 2rem;
  }
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

footer h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

footer p,
footer a {
  font-size: 0.875rem;
  color: #6B7280;
}

footer a:hover {
  color: #EF4444;
}

.newsletter-section {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #E5E7EB;
}

.newsletter-section input {
  flex: 1;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-section input:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.newsletter-section button {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.newsletter-section button:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  transform: scale(1.05);
}

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

.group {
  position: relative;
  transition: all 0.3s ease-in-out;
}

.group:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.group:active {
  transform: translateY(0);
}

.group span {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.group:hover span {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #E5E7EB;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #EF4444;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  font-size: 1.125rem;
}

.modal-content p {
  font-size: 0.75rem;
}

.modal-open {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-wrapper {
    gap: 1rem;
  }

  .search-section {
    max-width: 350px;
  }

  .nav-text {
    display: none;
  }

  .nav-item {
    padding: 0.6rem;
  }

  .search-shortcuts {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    gap: 0.5rem;
  }

  .search-section {
    display: none;
  }

  .nav-items {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .mobile-nav-content {
    width: 100%;
    max-width: 300px;
  }

  .new-share-section {
    padding: 0.5rem;
  }

  .card {
    padding: 0.75rem 1rem;
  }

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

  footer h3,
  footer p,
  footer a {
    text-align: center;
  }

  .newsletter-section,
  .social-links {
    justify-content: center;
  }

  .group {
    min-width: 48px;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .notice-content {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .notice-text {
    font-size: 0.8rem;
  }

  .mobile-nav-overlay {
    padding: 0;
  }

  .header-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.125rem;
  }

  .new-share-section .avatar {
    width: 1.5rem;
    height: 1.5rem;
  }

  .tabs {
    gap: 0.4rem;
  }

  .tab {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-meta,
  .card-description,
  .tag {
    font-size: 0.6875rem;
  }

  .share-actions button {
    font-size: 0.6875rem;
    padding: 0.4rem;
  }

  .sidebar-title {
    font-size: 0.875rem;
  }

  .contributor-item,
  .trending-shares li {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
  }

  .floating-action {
    bottom: 1rem;
    right: 1rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* Accessibility */
.nav-item:focus,
.profile-trigger:focus,
.search-input:focus,
.search-btn:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .sticky-header {
    background: #FFFFFF;
    border-bottom: 2px solid #000000;
  }

  .nav-item {
    border: 1px solid transparent;
  }

  .nav-item:hover,
  .nav-item:focus {
    border-color: #000000;
    background: #FFFFFF;
    color: #000000;
  }
}

/* Print Styles */
@media print {
  .sticky-header {
    position: static;
    box-shadow: none;
    border-bottom: 1px solid #000000;
  }

  .search-section,
  .mobile-menu-toggle,
  .profile-dropdown {
    display: none;
  }

  .logo-text {
    color: #000000 !important;
  }
}