/**
 * Custom CSS for Super Portistas News WordPress Theme
 * Based on the React project design system
 */

/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* FC Porto Brand Colors */
:root {
  --fc-porto-blue: #004B9B;
  --fc-porto-blue-hover: #003D7A;
  --fc-porto-secondary: #0066CC;
  --fc-porto-gold: #FFD700;
  --fc-porto-silver: #C0C0C0;
  --fc-porto-bronze: #CD7F32;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* News Card Variants */
.news-card {
  transition: all 0.3s ease;
}

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

.news-card--featured {
  grid-column: span 2;
}

.news-card--featured .news-card__image img {
  height: 300px;
}

.news-card--featured .news-card__title {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.news-card--compact {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.news-card--compact .news-card__image {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
}

.news-card--compact .news-card__image img {
  width: 150px;
  height: 100px;
  object-fit: cover;
}

.news-card--compact .news-card__content {
  flex: 1;
  padding: 1rem;
}

/* Leaderboard Styles */
.leaderboard-card {
  transition: all 0.3s ease;
}

.leaderboard-card:hover {
  transform: scale(1.02);
}

.rank-1 { color: var(--fc-porto-gold); }
.rank-2 { color: var(--fc-porto-silver); }
.rank-3 { color: var(--fc-porto-bronze); }

/* Achievement Styles */
.achievement-card {
  position: relative;
  overflow: hidden;
}

.achievement-card.unlocked {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: var(--fc-porto-gold);
}

.achievement-card.locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.achievement-progress {
  background: linear-gradient(90deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
}

/* Poll Styles */
.poll-option {
  transition: all 0.3s ease;
}

.poll-option:hover {
  background-color: #f3f4f6;
}

.poll-option.selected {
  background-color: var(--fc-porto-blue);
  color: white;
}

.poll-results {
  background: transparent !important;
}

/* Prediction Styles */
.prediction-card {
  border-left: 4px solid var(--fc-porto-blue);
}

.prediction-card.correct {
  border-left-color: #10b981;
  background-color: #f0fdf4;
}

.prediction-card.incorrect {
  border-left-color: #ef4444;
  background-color: #fef2f2;
}

/* Match Widget Styles */
.match-result.victory {
  background-color: #dcfce7;
  color: #166534;
}

.match-result.draw {
  background-color: #fef3c7;
  color: #92400e;
}

.match-result.defeat {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Team Page Styles */
.team-tabs {
  border-bottom: 2px solid #e5e7eb;
}

.team-tab {
  transition: all 0.3s ease;
}

.team-tab.active {
  border-bottom-color: var(--fc-porto-blue);
  color: var(--fc-porto-blue);
}

.player-card {
  transition: all 0.3s ease;
}

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

/* Forum Styles */
.forum-topic {
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.forum-topic:hover {
  border-left-color: var(--fc-porto-blue);
  background-color: #f9fafb;
}

.forum-topic.pinned {
  border-left-color: var(--fc-porto-gold);
  background-color: #fffbeb;
}

.forum-topic.locked {
  opacity: 0.7;
}

/* Notification Styles */
.notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Social Sharing */
.social-share-btn {
  transition: all 0.3s ease;
}

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

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-card--featured {
    grid-column: span 1;
  }
  
  .news-card--featured .news-card__image img {
    height: 200px;
  }
  
  .news-card--featured .news-card__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .news-card--compact {
    flex-direction: column;
  }
  
  .news-card--compact .news-card__image {
    width: 100%;
    height: 150px;
  }
  
  .news-card--compact .news-card__image img {
    width: 100%;
    height: 150px;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Screen Reader Text - Hide by default, show when focused */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip Link specific styles */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  z-index: 999999;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 3px;
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--fc-porto-blue);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .news-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .news-card__title {
    color: #000 !important;
  }
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--fc-porto-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fc-porto-blue-hover);
}

/* Prevent FOUC - Simple and effective approach */
[x-cloak] {
  display: none !important;
}

/* Only hide elements that have x-cloak attribute */
.sp-notification-bell [x-cloak],
.sp-user-dropdown [x-cloak],
.sp-auth-modal [x-cloak],
.sp-search-component [x-cloak],
.sp-mobile-menu [x-cloak] {
  display: none !important;
}

/* Dropdown Panels - Mobile Responsive */
@media (max-width: 640px) {
  .sp-notification-bell .dropdown-panel,
  .sp-user-dropdown .dropdown-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 2rem) !important;
    max-width: 400px !important;
    max-height: 80vh !important;
    margin: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto;
  }
}

/* Smooth tab transitions for auth modal - without scale */
.sp-auth-modal .tab-content {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-auth-modal .tab-content[x-show="true"] {
  opacity: 1;
  transform: translateX(0);
}

.sp-auth-modal .tab-content[x-show="false"] {
  opacity: 0;
  transform: translateX(15px);
}

/* Fixed height for modal body to prevent resizing */
.sp-auth-modal .modal-body {
  min-height: 450px;
  height: auto;
}

/* Enhanced tab navigation */
.sp-auth-modal .tab-navigation button {
  transition: all 0.2s ease-in-out;
  position: relative;
}

.sp-auth-modal .tab-navigation button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #004B9B;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}

.sp-auth-modal .tab-navigation button.active::after {
  transform: scaleX(1);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-porto {
  background: linear-gradient(135deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
}

.border-gradient-porto {
  border-image: linear-gradient(135deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%) 1;
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--fc-porto-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--fc-porto-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 75, 155, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--fc-porto-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--fc-porto-blue);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--fc-porto-blue);
  color: white;
}

/* Custom Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--fc-porto-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 75, 155, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

/* Custom Card Styles */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

/* Dashboard Specific Styles */
.dashboard-profile-card {
  transition: all 0.3s ease;
}

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

.dashboard-stats-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.dashboard-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
}

.dashboard-tab-content {
  min-height: 400px;
}

.dashboard-tab-content[x-cloak] {
  display: none !important;
}

/* Onboarding Modal Styles */
.onboarding-modal {
  backdrop-filter: blur(4px);
}

.onboarding-step {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-step-enter {
  opacity: 0;
  transform: translateX(30px);
}

.onboarding-step-enter-active {
  opacity: 1;
  transform: translateX(0);
}

.onboarding-step-exit {
  opacity: 1;
  transform: translateX(0);
}

.onboarding-step-exit-active {
  opacity: 0;
  transform: translateX(-30px);
}

.onboarding-feature-card {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(10px);
}

.onboarding-feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.onboarding-bonus-cta {
  background: linear-gradient(135deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
  position: relative;
  overflow: hidden;
}

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

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

/* Achievement Card Styles */
.achievement-card {
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.achievement-card.unlocked {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: var(--fc-porto-gold);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.achievement-card.unlocked::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--fc-porto-gold), #ffed4e, var(--fc-porto-gold));
  border-radius: inherit;
  z-index: -1;
  animation: achievement-glow 2s ease-in-out infinite alternate;
}

@keyframes achievement-glow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.achievement-card.locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.achievement-card.locked:hover {
  opacity: 0.8;
  filter: grayscale(30%);
}

.achievement-progress {
  background: linear-gradient(90deg, var(--fc-porto-blue) 0%, var(--fc-porto-secondary) 100%);
  position: relative;
  overflow: hidden;
}

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

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

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--fc-porto-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 75, 155, 0.2);
}

/* Form Styles */
.dashboard-form {
  animation: fadeInUp 0.6s ease-out;
}

.dashboard-form .form-group {
  margin-bottom: 1.5rem;
}

.dashboard-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.dashboard-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.dashboard-form .form-input:focus {
  border-color: var(--fc-porto-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 75, 155, 0.1);
  background-color: #fff;
}

.dashboard-form .form-input:invalid {
  border-color: #ef4444;
}

.dashboard-form .form-input:valid {
  border-color: #10b981;
}

/* Success/Error Messages */
.dashboard-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.dashboard-message.success {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

.dashboard-message.error {
  background-color: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

.dashboard-message.warning {
  background-color: #f59e0b;
  color: white;
  border: 1px solid #d97706;
}

/* Loading States */
.dashboard-loading {
  position: relative;
  pointer-events: none;
}

.dashboard-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dashboard-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--fc-porto-blue);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

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

/* Single Post Page Styles */
.single-post-container {
  position: relative;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.reading-progress-bar .progress-fill {
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  transition: width 0.1s ease-out;
}

/* Floating Share Bar */
.floating-share-bar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.floating-share-bar:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.floating-share-bar .share-button {
  transition: all 0.2s ease;
}

.floating-share-bar .share-button:hover {
  transform: scale(1.1);
}

/* Article Reactions */
.article-reactions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.article-reactions .reaction-button {
  transition: all 0.2s ease;
}

.article-reactions .reaction-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-reactions .reaction-button.active {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Author Card */
.author-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

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

.author-card .social-link {
  transition: all 0.2s ease;
}

.author-card .social-link:hover {
  transform: translateY(-1px);
}

/* Comment System */
.comment-system {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.comment-item {
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.comment-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-item .reaction-button {
  transition: all 0.2s ease;
}

.comment-item .reaction-button:hover {
  transform: scale(1.05);
}

/* Related Articles */
.related-articles {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.related-articles .article-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

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

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #1d4ed8 100%);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

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

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

.newsletter-cta .floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-stats-card {
    margin-bottom: 1rem;
  }
  
  .dashboard-tab-content {
    min-height: 300px;
  }
  
  .dashboard-form .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .onboarding-modal {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .onboarding-feature-card {
    margin-bottom: 1rem;
  }
  
  /* Single Post Mobile Styles */
  .floating-share-bar {
    display: none;
  }
  
  .mobile-share-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 40;
    width: 3.5rem;
    height: 3.5rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
  }
  
  .mobile-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  .article-reactions .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .article-reactions .reaction-button {
    padding: 0.75rem 0.5rem;
  }
  
  .article-reactions .text-2xl {
    font-size: 1.5rem;
  }
  
  .article-reactions .text-xs {
    font-size: 0.625rem;
  }
  
  .author-card .flex.items-start.space-x-4 {
    flex-direction: column;
    text-align: center;
  }
  
  .author-card .flex.items-start.space-x-4 > div:first-child {
    margin-bottom: 1rem;
  }
  
  .author-card .flex.items-center.space-x-3 {
    justify-content: center;
  }
  
  .comment-system .ml-8 {
    margin-left: 1rem;
  }
  
  .comment-system .ml-4 {
    margin-left: 0.5rem;
  }
  
  .comment-system .space-x-4 > * + * {
    margin-left: 0.75rem;
  }
  
  .comment-system .space-x-2 > * + * {
    margin-left: 0.5rem;
  }
  
  .related-articles .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .related-articles .flex.space-x-4 {
    padding-bottom: 1rem;
  }
  
  .related-articles .flex-shrink-0.w-80 {
    width: 280px;
  }
  
  .related-articles .w-32.h-24 {
    width: 120px;
    height: 90px;
  }
  
  .newsletter-cta .flex.space-x-2 {
    flex-direction: column;
    space-x: 0;
    gap: 0.75rem;
  }
  
  .newsletter-cta .grid.grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .newsletter-cta .text-2xl {
    font-size: 1.5rem;
  }
  
  .newsletter-cta .text-lg {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .dashboard-profile-card {
    padding: 1rem;
  }
  
  .dashboard-profile-card .flex {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-profile-card .flex > div:first-child {
    margin-bottom: 1rem;
  }
  
  .dashboard-stats-card {
    text-align: center;
  }
  
  .dashboard-tab-content {
    padding: 1rem;
  }
}

/* Category Page Styles */
.category-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
}

.category-sidebar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-sidebar .category-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}

.category-sidebar .category-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 75, 155, 0.1);
}

.category-sidebar .category-item.active {
  background: linear-gradient(135deg, #004B9B 0%, #0066CC 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 75, 155, 0.3);
}

.category-sidebar .category-item.active:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 75, 155, 0.4);
}

.category-info-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 75, 155, 0.2);
}

.category-info-card .icon-container {
  background: linear-gradient(135deg, #004B9B 0%, #0066CC 100%);
  box-shadow: 0 2px 8px rgba(0, 75, 155, 0.3);
}

.category-info-card:hover .icon-container {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 75, 155, 0.4);
}

.category-tabs {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
}

.category-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 1rem 0.5rem;
  margin-right: 2rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
}

.category-tab:hover {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.category-tab.active {
  color: #004B9B;
  border-bottom-color: #004B9B;
  font-weight: 600;
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #004B9B 0%, #0066CC 100%);
  border-radius: 1px;
}

.player-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 75, 155, 0.2);
}

.player-card .jersey-number {
  background: linear-gradient(135deg, #004B9B 0%, #0066CC 100%);
  box-shadow: 0 2px 8px rgba(0, 75, 155, 0.3);
  transition: all 0.3s ease;
}

.player-card:hover .jersey-number {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 75, 155, 0.4);
}

.player-card .player-image {
  border: 2px solid rgba(0, 75, 155, 0.1);
  transition: all 0.3s ease;
}

.player-card:hover .player-image {
  border-color: rgba(0, 75, 155, 0.3);
  transform: scale(1.02);
}

.player-card .market-value {
  color: #004B9B;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 75, 155, 0.1);
}

.player-card-details {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.player-card-toggle {
  transition: all 0.3s ease;
}

.player-card-toggle:hover {
  color: #003D7A;
  transform: translateY(-1px);
}

.player-card-toggle svg {
  transition: transform 0.3s ease;
}

.player-card-toggle.expanded svg {
  transform: rotate(180deg);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination a {
  color: #6b7280;
  background: white;
  border: 1px solid #e5e7eb;
}

.pagination a:hover {
  color: #004B9B;
  background: #f8fafc;
  border-color: #004B9B;
  transform: translateY(-1px);
}

.pagination .current {
  color: white;
  background: linear-gradient(135deg, #004B9B 0%, #0066CC 100%);
  border-color: #004B9B;
  box-shadow: 0 2px 8px rgba(0, 75, 155, 0.3);
}

/* Breadcrumb Styles */
.breadcrumb {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb a {
  color: #6b7280;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #004B9B;
}

.breadcrumb .current {
  color: #111827;
  font-weight: 600;
}

/* Yoast SEO Breadcrumb Styles - Estilos originais mantidos */
/* Remover separador padrão do Yoast */
.breadcrumbs .breadcrumbs__separator,
.breadcrumbs .sep,
nav[aria-label="Breadcrumb"] .breadcrumbs__separator,
nav[aria-label="Breadcrumb"] .sep {
  display: none;
}

/* Items da lista - estrutura flex para adicionar separadores SVG */
nav[aria-label="Breadcrumb"] li {
  display: flex;
  align-items: center;
}

/* Adicionar separador SVG entre items (igual ao estilo original) */
nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin: 0 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718196'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Links do breadcrumb - estilo original */
nav[aria-label="Breadcrumb"] a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav[aria-label="Breadcrumb"] a:hover {
  color: #2563eb; /* blue-600 - igual ao hover:text-blue-600 do Tailwind */
}

/* Item atual (último item) - estilo original */
nav[aria-label="Breadcrumb"] li:last-child span,
nav[aria-label="Breadcrumb"] .breadcrumb_last,
nav[aria-label="Breadcrumb"] span[property="name"] {
  color: #111827; /* text-gray-900 */
  font-weight: 500; /* font-medium */
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-state svg {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6b7280;
}

/* Loading States */
.category-loading {
  opacity: 0.6;
  pointer-events: none;
}

.category-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* Category Page Mobile Responsive */
@media (max-width: 1024px) {
  .category-page .flex.flex-col.lg\\:flex-row {
    flex-direction: column;
  }
  
  .category-page .lg\\:w-80 {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .category-sidebar {
    order: 2;
  }
  
  .category-page main {
    order: 1;
  }
}

@media (max-width: 768px) {
  .dashboard-stats-card {
    margin-bottom: 1rem;
  }
  
  .dashboard-tab-content {
    min-height: 300px;
  }
  
  .dashboard-form .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .onboarding-modal {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .onboarding-feature-card {
    margin-bottom: 1rem;
  }
  
  /* Category Page Mobile Styles */
  .category-page {
    padding: 1rem;
  }
  
  .category-page .max-w-7xl {
    padding: 0;
  }
  
  .category-page h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  
  .category-page .text-lg {
    font-size: 1rem;
  }
  
  .category-info-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .category-info-card {
    padding: 1rem;
  }
  
  .category-info-card .w-10 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .category-info-card .w-5 {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-tabs nav {
    min-width: max-content;
  }
  
  .category-tab {
    padding: 0.75rem 0.5rem;
    margin-right: 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
  }
  
  .player-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .player-card .flex.items-center.space-x-4 {
    space-x: 0.75rem;
  }
  
  .player-card .w-16 {
    width: 3rem;
    height: 3rem;
  }
  
  .player-card .text-xl {
    font-size: 1rem;
  }
  
  .player-card .text-lg {
    font-size: 0.875rem;
  }
  
  .player-card .text-sm {
    font-size: 0.75rem;
  }
  
  .player-card .text-xs {
    font-size: 0.625rem;
  }
  
  .player-card-details .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .player-card-details .flex.space-x-2 {
    flex-direction: column;
    space-x: 0;
    gap: 0.5rem;
  }
  
  .player-card-details button,
  .player-card-details a {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .category-sidebar {
    padding: 1rem;
  }
  
  .category-sidebar .space-y-2 {
    space-y: 0.5rem;
  }
  
  .category-sidebar .category-item {
    padding: 0.75rem;
  }
  
  .category-sidebar .w-8 {
    width: 2rem;
    height: 2rem;
  }
  
  .category-sidebar .w-4 {
    width: 1rem;
    height: 1rem;
  }
  
  .category-sidebar .text-sm {
    font-size: 0.75rem;
  }
  
  .breadcrumb {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
  }
  
  .breadcrumb .text-sm {
    font-size: 0.75rem;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state .w-16 {
    width: 3rem;
    height: 3rem;
  }
  
  .empty-state .text-lg {
    font-size: 1rem;
  }
  
  /* Single Post Mobile Styles */
  .floating-share-bar {
    display: none;
  }
  
  .mobile-share-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 40;
    width: 3.5rem;
    height: 3.5rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
  }
  
  .mobile-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  .article-reactions .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .article-reactions .reaction-button {
    padding: 0.75rem 0.5rem;
  }
  
  .article-reactions .text-2xl {
    font-size: 1.5rem;
  }
  
  .article-reactions .text-xs {
    font-size: 0.625rem;
  }
  
  .author-card .flex.items-start.space-x-4 {
    flex-direction: column;
    text-align: center;
  }
  
  .author-card .flex.items-start.space-x-4 > div:first-child {
    margin-bottom: 1rem;
  }
  
  .author-card .flex.items-center.space-x-3 {
    justify-content: center;
  }
  
  .comment-system .ml-8 {
    margin-left: 1rem;
  }
  
  .comment-system .ml-4 {
    margin-left: 0.5rem;
  }
  
  .comment-system .space-x-4 > * + * {
    margin-left: 0.75rem;
  }
  
  .comment-system .space-x-2 > * + * {
    margin-left: 0.5rem;
  }
  
  .related-articles .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .related-articles .flex.space-x-4 {
    padding-bottom: 1rem;
  }
  
  .related-articles .flex-shrink-0.w-80 {
    width: 280px;
  }
  
  .related-articles .w-32.h-24 {
    width: 120px;
    height: 90px;
  }
  
  .newsletter-cta .flex.space-x-2 {
    flex-direction: column;
    space-x: 0;
    gap: 0.75rem;
  }
  
  .newsletter-cta .grid.grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .newsletter-cta .text-2xl {
    font-size: 1.5rem;
  }
  
  .newsletter-cta .text-lg {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .dashboard-profile-card {
    padding: 1rem;
  }
  
  .dashboard-profile-card .flex {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-profile-card .flex > div:first-child {
    margin-bottom: 1rem;
  }
  
  .dashboard-stats-card {
    text-align: center;
  }
  
  .dashboard-tab-content {
    padding: 1rem;
  }
  
  /* Category Page Extra Small Mobile */
  .category-page {
    padding: 0.5rem;
  }
  
  .category-page h1 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
  
  .category-info-card {
    padding: 0.75rem;
  }
  
  .category-info-card .flex.items-center.space-x-3 {
    space-x: 0.5rem;
  }
  
  .category-info-card .w-10 {
    width: 2rem;
    height: 2rem;
  }
  
  .category-info-card .w-5 {
    width: 1rem;
    height: 1rem;
  }
  
  .player-card {
    padding: 0.75rem;
  }
  
  .player-card .flex.items-center.space-x-4 {
    space-x: 0.5rem;
  }
  
  .player-card .w-16 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .player-card .text-xl {
    font-size: 0.875rem;
  }
  
  .player-card .text-lg {
    font-size: 0.75rem;
  }
  
  .player-card .text-sm {
    font-size: 0.625rem;
  }
  
  .player-card .text-xs {
    font-size: 0.5rem;
  }
  
  .category-sidebar {
    padding: 0.75rem;
  }
  
  .category-sidebar .category-item {
    padding: 0.5rem;
  }
  
  .category-sidebar .w-8 {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .category-sidebar .w-4 {
    width: 0.875rem;
    height: 0.875rem;
  }
}

/* ============================================
   Homepage Feed Premium Styles
   ============================================ */

/* Feed Container */
.feed-container {
  animation: fadeIn 0.5s ease-in;
}

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

/* Skeleton Loader for Feed Cards */
.feed-card-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 0.75rem;
  height: 400px;
  margin-bottom: 1rem;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Feed Card Animations */
.feed-card {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Loading Indicator Animation */
#feed-loading svg.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Enhanced Hover Effects */
.feed-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feed-card--video:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
}

/* Focus States for Accessibility */
.feed-card a:focus,
.feed-card button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .feed-container {
    padding: 0;
  }
  
  .feed-card {
    margin-bottom: 1rem;
  }
  
  /* Reduce animation on mobile for performance */
  .feed-card {
    animation: none;
  }
  
  .feed-card:hover {
    transform: translateY(-2px);
  }
}

/* Print Styles */
@media print {
  .feed-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .feed-card__social,
  #feed-loading,
  #feed-end {
    display: none;
  }
}

/* ============================================
   Homepage Desktop Layout Styles
   ============================================ */

/* Grid Layout */
.homepage-sidebar-container {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
  padding-right: 0.5rem;
}

.homepage-sidebar-container::-webkit-scrollbar {
  width: 6px;
}

.homepage-sidebar-container::-webkit-scrollbar-track {
  background: transparent;
}

.homepage-sidebar-container::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 3px;
}

.homepage-sidebar-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.7);
}

/* Feed Main Column */
.feed-main {
  min-width: 0; /* Prevent overflow */
}

/* Sidebar Widgets Spacing */
.homepage-sidebar-container > * {
  margin-bottom: 1.5rem;
}

.homepage-sidebar-container > *:last-child {
  margin-bottom: 0;
}

/* Widget Hover Effects */
.homepage-sidebar-container .bg-gradient-to-br {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-sidebar-container .bg-gradient-to-br:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .homepage-sidebar {
    display: none;
  }
  
  .feed-main {
    width: 100%;
  }
}

@media (min-width: 1025px) {
  /* Desktop optimizations */
  .feed-container {
    max-width: 100%;
  }
  
  /* Ensure sidebar doesn't overflow */
  .homepage-sidebar-container {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* Tablet: Sidebar hidden (same as mobile for now) */
@media (min-width: 768px) and (max-width: 1024px) {
  .homepage-sidebar {
    display: none;
  }
}

/* Mobile: Hide sidebar */
@media (max-width: 767px) {
  .homepage-sidebar {
    display: none !important;
  }
}

/* ============================================
   New Homepage Sidebar Widgets Styles
   ============================================ */

/* Feed Personalization Widget */
.feed-personalization-widget input[type="checkbox"] {
  accent-color: #4f46e5; /* indigo-600 */
}

.feed-personalization-widget label:hover {
  background-color: rgba(99, 102, 241, 0.1);
}

/* Leaderboard Badges */
.leaderboard-badge-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.leaderboard-badge-silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.leaderboard-badge-bronze {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
}

/* Poll Widget Cards */
.active-polls-widget .poll-card {
  transition: all 0.2s ease;
}

.active-polls-widget .poll-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Predictions Widget */
.recent-predictions-widget .prediction-card {
  transition: all 0.2s ease;
}

.recent-predictions-widget .prediction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Register CTA Widget */
.register-cta-sidebar-widget .cta-button {
  transition: all 0.3s ease;
}

.register-cta-sidebar-widget .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Custom Scrollbar for Personalization Widget */
.feed-personalization-widget .overflow-y-auto::-webkit-scrollbar {
  width: 4px;
}

.feed-personalization-widget .overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.feed-personalization-widget .overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

.feed-personalization-widget .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: rgba(99, 102, 241, 0.5);
}

/* Widget Animation Enhancements */
.homepage-sidebar-container .bg-gradient-to-br {
  animation: fadeInWidget 0.5s ease-in;
}

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

/* Loading States */
.widget-saving {
  opacity: 0.6;
  pointer-events: none;
}

.widget-saving * {
  cursor: wait !important;
}
