/* ========================================
   PRIVATE VIEWS STYLES
   Dashboard and Private Pages Only
   
   This file contains styles for all private/authenticated views:
   - Dashboard (/dashboard)
   - Profile (/profile) 
   - Activities (/activities)
   - Challenges (/challenges)
   - Plunge Map (/plunge-map)
   
   All styles are Dark/Light mode compatible using CSS custom properties
   ======================================== */

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

:root {
    /* Navigation Height */
    --navbar-height: 64px;
    
    /* Brand Colors */
    --blue-primary: #0074ff;
    --blue-secondary: #80baff;
    --blue-tertiary: #80b9ff;
    
    --black-primary: #121212;
    --black-secondary: #1a1a1a;
    --black-tertiary: #0a0a0a;
    
    --white-primary: #ffffff;
    --white-secondary: #f8f9fa;
    --white-tertiary: #e9ecef;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* ======================================== CLEAN NAVIGATION BAR ======================================== */

/* Main Header */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
  box-shadow: var(--navbar-shadow);
  height: var(--navbar-height);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

/* Brand */
.navbar-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navbar-text-active);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.brand-link:hover {
  color: var(--navbar-text-hover);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

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

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Desktop Navigation */
.navbar-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 100%;
}

.navbar-link {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  padding: 0 1.25rem;
  color: var(--navbar-text);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--navbar-text-hover);
  background-color: var(--navbar-hover-bg);
}

.navbar-link.active {
  color: var(--navbar-text-active);
  font-weight: 600;
  background-color: var(--navbar-active-bg);
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--navbar-text-active);
  border-radius: 2px 2px 0 0;
}

/* Desktop Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.theme-btn:hover {
  background-color: var(--navbar-hover-bg);
  transform: scale(1.05);
}

.avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.avatar-btn:hover {
  background-color: var(--navbar-hover-bg);
  transform: scale(1.05);
}

.avatar-img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navbar-avatar-border);
  transition: all 0.2s ease;
  display: block;
}

.avatar-img:hover {
  border-color: var(--navbar-text-active);
}

.signout-btn {
  padding: 0.5rem 1rem;
  background: var(--logout-bg);
  color: var(--logout-text);
  border: 1px solid var(--logout-border);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 36px;
  white-space: nowrap;
}

.signout-btn:hover {
  background: var(--logout-hover-bg);
  color: var(--logout-hover-text);
  border-color: var(--logout-hover-border);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--navbar-text);
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.line-1-open {
  transform: rotate(45deg) translate(6px, 6px);
}

.line-2-open {
  opacity: 0;
  transform: scale(0);
}

.line-3-open {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  right: 0;
  width: 280px;
  height: calc(100vh - var(--navbar-height));
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--navbar-border);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu-content {
  padding: 2rem 0;
}

.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2rem;
}

.mobile-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--navbar-text);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-link:hover {
  color: var(--navbar-text-hover);
  background-color: var(--navbar-hover-bg);
}

.mobile-link.active {
  color: var(--navbar-text-active);
  font-weight: 600;
  background-color: var(--navbar-active-bg);
  border-left-color: var(--navbar-text-active);
}

.mobile-actions {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-theme-btn,
.mobile-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--navbar-text);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-theme-btn:hover,
.mobile-profile-btn:hover {
  background-color: var(--navbar-hover-bg);
  color: var(--navbar-text-hover);
}

.theme-icon {
  font-size: 1.2rem;
}

.mobile-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navbar-avatar-border);
}

.mobile-signout-btn {
  padding: 0.75rem;
  background: var(--logout-hover-bg);
  color: var(--logout-hover-text);
  border: 1px solid var(--logout-hover-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.mobile-signout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* Navigation Theme Variables */

/* Dark Theme */
body:not(.light-theme) {
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-border: rgba(71, 85, 105, 0.2);
    --navbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    
    --navbar-text: #e2e8f0;
    --navbar-text-hover: #60a5fa;
    --navbar-text-active: #3b82f6;
    
    --navbar-hover-bg: rgba(71, 85, 105, 0.2);
    --navbar-active-bg: rgba(59, 130, 246, 0.1);
    
    --navbar-avatar-border: rgba(148, 163, 184, 0.3);
    
    --logout-bg: transparent;
    --logout-text: #e2e8f0;
    --logout-border: rgba(239, 68, 68, 0.3);
    --logout-hover-bg: #ef4444;
    --logout-hover-text: #ffffff;
    --logout-hover-border: #ef4444;
}

/* Light Theme */
body.light-theme {
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(226, 232, 240, 0.8);
    --navbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    
    --navbar-text: #475569;
    --navbar-text-hover: #1e40af;
    --navbar-text-active: #2563eb;
    
    --navbar-hover-bg: rgba(241, 245, 249, 0.8);
    --navbar-active-bg: rgba(37, 99, 235, 0.1);
    
    --navbar-avatar-border: rgba(203, 213, 225, 0.6);
    
    --logout-bg: transparent;
    --logout-text: #475569;
    --logout-border: rgba(239, 68, 68, 0.3);
    --logout-hover-bg: #ef4444;
    --logout-hover-text: #ffffff;
    --logout-hover-border: #ef4444;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-desktop {
        display: none;
    }

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

    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 56px;
    }

    .navbar-container {
        padding: 0 0.75rem;
    }

    .brand-link {
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 100%;
    }

    .mobile-menu-btn {
        width: 28px;
        height: 28px;
    }

    .hamburger-line {
        height: 2px;
    }
}

/* Add top padding to main content to account for fixed navbar */
.dashboard-container,
.profile-container,
.activities-container,
.challenges-container,
.plunge-map-container {
    padding-top: calc(var(--navbar-height) + 40px);
}

/* Additional body padding for React components */
body {
    padding-top: var(--navbar-height);
}

/* Dashboard specific background adjustments */
.dashboard-bg {
    padding-top: 20px;
}

/* ======================================== DASHBOARD MAIN CONTENT STYLES ======================================== */

.dashboard-bg {
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Dark Theme Gradient */
body:not(.light-theme) .dashboard-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f172a 50%, #1e3a8a 100%);
}

/* Light Theme Gradient */
body.light-theme .dashboard-bg {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem 1rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 600px;
}

.left-panel,
.middle-panel,
.right-panel {
    /* Individual panels handle their own styling */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .left-panel,
    .right-panel {
        position: static;
        order: 2;
    }
    
    .middle-panel {
        order: 1;
    }
    
    .right-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        gap: 1rem;
    }
    
    .left-panel,
    .right-panel {
        display: none; /* Hide side panels on mobile */
    }
    
    .middle-panel {
        order: 1;
    }
}

@media (max-width: 480px) {
    .dashboard-bg {
        padding: 1rem;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
}

/* ======================================== CARD COMPONENT STYLES ======================================== */

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.card-body {
    padding: 2rem;
}

.card-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-family: 'Poppins', sans-serif;
}

/* ======================================== BUTTON AND LINK STYLES ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}
/* ======================================== DASHBOARD COMPONENT STYLES ======================================== */

/* Dashboard Page */
.dashboard-page {
    min-height: 100vh;
    transition: all 0.3s ease;
}

body:not(.light-theme) .dashboard-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f172a 50%, #1e3a8a 100%);
}

body.light-theme .dashboard-page {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Error State */
.error-state {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f172a 50%, #1e3a8a 100%);
    padding: 2rem;
}

.error-content {
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 3rem;
    max-width: 400px;
}

.error-content i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-content h2 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.error-content p {
    color: #e5e7eb;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
}

.error-content button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.error-content button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    min-height: 400px;
}

.loading-spinner {
    border: 4px solid var(--border, #374151);
    border-top: 4px solid var(--blue-accent, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.w-6 {
    width: 24px;
    height: 24px;
}

.loading-spinner.w-10 {
    width: 40px;
    height: 40px;
}

.loading-spinner.w-16 {
    width: 64px;
    height: 64px;
}

.loading-text {
    color: var(--text-muted, #9ca3af);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

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

/* User Profile Card */
.user-profile-card {
    background: linear-gradient(135deg, var(--bg-secondary, #0f172a) 0%, var(--bg-tertiary, #1e293b) 100%);
    border: 1px solid var(--border, #374151);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 2rem;
    text-align: center;
}

.profile-loading {
    text-align: center;
    padding: 2rem 0;
}

.profile-image-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border, #374151);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    border-color: var(--blue-secondary, #80baff);
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border, #374151);
    border-bottom: 1px solid var(--border, #374151);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-family: 'Poppins', sans-serif;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border, #374151);
}

.latest-activity {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, #374151);
}

.activity-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.activity-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.activity-name {
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.activity-date {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.achievement-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary, #1e293b);
    border-radius: 8px;
    border: 1px solid var(--border, #374151);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: var(--bg-secondary, #0f172a);
    border-color: var(--blue-accent, #3b82f6);
    transform: translateY(-2px);
}

.achievement-label {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.achievement-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-secondary, #80baff);
    font-family: 'Poppins', sans-serif;
}

/* Activity Feed */
.middle-feed {
    background: linear-gradient(135deg, var(--bg-secondary, #0f172a) 0%, var(--bg-tertiary, #1e293b) 100%);
    border: 1px solid var(--border, #374151);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feed-header {
    background: linear-gradient(135deg, var(--blue-primary, #1e3a8a) 0%, var(--blue-secondary, #1e40af) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border, #374151);
}

.feed-dropdown {
    display: flex;
    justify-content: center;
}

.feed-selector {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border, #374151);
    border-radius: 8px;
    background: var(--bg-tertiary, #1e293b);
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
}

.feed-selector:focus {
    outline: none;
    border-color: var(--blue-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feed-content {
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #9ca3af);
    font-family: 'Poppins', sans-serif;
}

.feed-item {
    background: var(--bg-tertiary, #1e293b);
    border: 1px solid var(--border, #374151);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.feed-item:hover {
    background: var(--bg-secondary, #0f172a);
    border-color: var(--blue-accent, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feed-item-content {
    color: var(--text-secondary, #e5e7eb);
    line-height: 1.6;
}

.feed-item-content strong {
    color: var(--text-primary, #ffffff);
}

.feed-time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Custom scrollbar */
.feed-content::-webkit-scrollbar {
    width: 6px;
}

.feed-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #1e293b);
    border-radius: 3px;
}

.feed-content::-webkit-scrollbar-thumb {
    background: var(--border, #374151);
    border-radius: 3px;
}

.feed-content::-webkit-scrollbar-thumb:hover {
    background: var(--blue-accent, #3b82f6);
}

/* Challenges Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.challenges-section,
.clubs-section {
    background: linear-gradient(135deg, var(--bg-secondary, #0f172a) 0%, var(--bg-tertiary, #1e293b) 100%);
    border: 1px solid var(--border, #374151);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-primary, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #ffffff);
    font-size: 1.2rem;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.section-description {
    color: var(--text-secondary, #e5e7eb);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.view-all-link {
    color: var(--blue-accent, #3b82f6);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--blue-secondary, #80baff);
}

.club-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.club-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-tertiary, #1e293b);
    border: 1px solid var(--border, #374151);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.club-logo:hover {
    background: var(--bg-secondary, #0f172a);
    border-color: var(--blue-accent, #3b82f6);
    transform: translateY(-2px);
}

.club-logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.club-logo-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted, #9ca3af);
    font-family: 'Poppins', sans-serif;
}

.view-all-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary, #1e293b);
    border: 1px solid var(--border, #374151);
    border-radius: 8px;
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
}

.view-all-btn:hover {
    background: var(--bg-secondary, #0f172a);
    border-color: var(--blue-accent, #3b82f6);
    transform: translateY(-2px);
}

/* Theme Variables for Components */
body:not(.light-theme) {
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --border: #374151;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --blue-accent: #3b82f6;
    --blue-primary: #1e3a8a;
    --blue-secondary: #80baff;
}

body.light-theme {
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border: #dee2e6;
    --text-primary: #121212;
    --text-secondary: #343434;
    --text-muted: #6c757d;
    --blue-accent: #2563eb;
    --blue-primary: #1e40af;
    --blue-secondary: #60a5fa;
}
