css





/* ===================================================================
   GLOBAL STYLES & RESET
   =================================================================== */

/* Base body styles with consistent background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55; /* slightly tighter */
  color: #333;
  min-height: 100vh;
}
  
/* Background theme for all pages */
.background {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 100vh;
}

/* ===================================================================
   ACCESSIBILITY UTILITIES
   =================================================================== */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #228b22;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.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;
}

/* ===================================================================
   ALERT & STATUS MESSAGES
   =================================================================== */

/* Alert container */
.alert {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alert variants */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ===================================================================
   UNIFIED NAVIGATION STYLES
   =================================================================== */

/* Main navigation header - consistent across all pages */
header[role="banner"] {
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* Main navigation bar - optimized spacing for better content fit */
nav[role="navigation"] {
    background: linear-gradient(135deg, #228b22 0%, #2e7d32 100%);
    padding: 0.6rem 1rem; /* more compact */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 54px; /* more compact */
}

/* Navigation center - home link container */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Home link styling - optimized padding for compact layout */
.home-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0.45rem 0.8rem;
    border-radius: 10px; /* Slightly reduced border radius */
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem */
    letter-spacing: 0.3px; /* Slightly reduced letter spacing */
}

.home-link:hover, .home-link:focus {
    color: #b2ff59;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(178, 255, 89, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Navigation left - secondary links with optimized spacing */
.nav-left {
    display: flex;
    gap: 0.75rem; /* Reduced from 1rem for more compact layout */
    align-items: center;
    flex: 1;
}

/* Navigation right - main links and user actions with optimized spacing */
.nav-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* All navigation links except home - optimized for compact spacing */
nav a:not(.home-link) {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 7px; /* Slightly reduced border radius */
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem; /* Reduced from 0.4rem for tighter icon-text spacing */
    white-space: nowrap;
}

nav a:not(.home-link):hover, 
nav a:not(.home-link):focus {
    color: #b2ff59;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: 2px solid rgba(178, 255, 89, 0.3);
    outline-offset: 2px;
}

/* Active navigation link */
nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #b2ff59;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Special messaging link with icon - compact spacing */
.nav-message-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.8rem; /* Reduced from 0.6rem 1rem for compact layout */
    border-radius: 8px; /* Slightly reduced border radius */
    position: relative;
}

.nav-message-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Message notification badge */
.nav-message-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    animation: pulse 2s infinite;
}

/* User profile link styling - optimized spacing */
.nav-profile-link {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem for compact layout */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px; /* Slightly reduced border radius */
    padding: 0.35rem 0.7rem; /* Reduced from 0.4rem 0.8rem for compact spacing */
}

.nav-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Navigation icons - optimized spacing */
.nav-icon {
    font-size: 0.95rem; /* Slightly reduced from 1rem */
    margin-right: 0.2rem; /* Reduced from 0.25rem for tighter spacing */
}

/* Mobile navigation toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   NAV STANDARDIZATION OVERRIDES (site-wide)
   Purpose: ensure consistent height, spacing, and responsive behavior
   across all pages without editing each page-specific style.
   =================================================================== */

:root {
    --nav-min-height: 60px;
    --nav-pad-y: 0.75rem;
    --nav-pad-x: 1rem;
    --nav-link-font: 0.95rem;
    --nav-link-pad-y: 0.5rem;
    --nav-link-pad-x: 0.9rem;
}

/* Consistent nav bar dimensions */
nav[role="navigation"] {
    min-height: var(--nav-min-height);
    padding: var(--nav-pad-y) var(--nav-pad-x);
}

/* Brand/home link sizing */
.home-link {
    font-size: 1.2rem;
    padding: 0.5rem 0.875rem;
}

/* Primary links sizing */
nav a:not(.home-link) {
    font-size: var(--nav-link-font);
    padding: var(--nav-link-pad-y) var(--nav-link-pad-x);
    gap: 0.35rem;
}

/* Right group spacing tightened for balance */
.nav-right { gap: 0.6rem; }

/* Mobile behavior (stacked menu) */
@media (max-width: 1024px) {
    .nav-center { position: static; transform: none; }
    .nav-toggle { display: block; order: 3; margin-left: 0.5rem; }
    .nav-right {
        display: none;
        order: 2;
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
        background: linear-gradient(135deg, #228b22 0%, #2e7d32 100%);
        padding: 0.5rem 0;
        position: absolute;
        top: 100%; right: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        z-index: 999;
    }
    .nav-right a { width: 100%; justify-content: flex-end; padding: 0.6rem 1rem; }
    .nav-right.active { display: flex; }
}

@media (max-width: 600px) {
    .nav-toggle { font-size: 1.2rem; padding: 0.35rem; }
    .nav-right { gap: 0.35rem; margin-top: 0.75rem; }
}

/* ===================================================================
   DESKTOP RESPONSIVE DESIGN - COMPUTER SCREENS
   =================================================================== */

/* Ultra-wide Desktop (1920px and up) - Ultra-wide monitors with optimized spacing */
@media (min-width: 1920px) {
    /* Navigation adjustments for ultra-wide - balanced spacing */
    nav[role="navigation"] {
        padding: 1.25rem 3rem; /* Reduced from 1.5rem 4rem for better proportions */
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .nav-right {
        gap: 1.5rem; /* Reduced from 2rem for more balanced spacing */
    }
    
    nav a:not(.home-link) {
        font-size: 1rem; /* Reduced from 1.1rem for better proportion */
        padding: 0.75rem 1.2rem; /* Reduced from 0.875rem 1.5rem for compact layout */
    }
    
    .home-link {
        font-size: 1.8rem; /* Reduced from 2rem for better balance */
        padding: 0.875rem 1.4rem; /* Reduced from 1rem 1.75rem for compact spacing */
    }
    
    /* Ultra-wide content containers */
    .main-content {
        max-width: 1600px;
        padding: 3rem 2.5rem;
    }
    
    /* Ultra-wide specific layouts */
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3rem;
    }
    
    .card {
        padding: 3rem;
        max-width: 800px;
    }
    
    /* Forum ultra-wide */
    .forum-header {
        padding: 3.5rem 2.5rem;
    }
    
    .forum-header h1 {
        font-size: 3.5rem;
    }
    
    .post-creation {
        max-width: 1200px;
        padding: 3.5rem;
    }
    
    .forum-posts {
        max-width: 1300px;
        gap: 3rem;
    }
    
    /* Gallery ultra-wide */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
        gap: 3.5rem;
        max-width: 1700px;
    }
    
    /* Threads ultra-wide */
    .threads-container {
        max-width: 1500px;
        padding: 3.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3rem;
    }
    
    /* Messaging ultra-wide */
    .inbox-layout {
        max-width: 1800px;
        grid-template-columns: 450px 1fr;
    }
    
    /* Profile ultra-wide */
    .profile-layout {
        max-width: 1800px;
        grid-template-columns: 450px 1fr;
        gap: 3.5rem;
    }
}

/* Extra Large Desktop (1440px to 1919px) - Widescreen monitors with optimized spacing */
@media (min-width: 1440px) and (max-width: 1919px) {
    /* Navigation adjustments for widescreen - compact but spacious */
    nav[role="navigation"] {
        padding: 1rem 2.5rem; /* Reduced from 1.25rem 3rem for better balance */
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .nav-right {
        gap: 1.2rem; /* Reduced from 1.5rem for more compact spacing */
    }
    
    nav a:not(.home-link) {
        font-size: 0.95rem; /* Reduced from 1rem for better proportion */
        padding: 0.65rem 1.1rem; /* Reduced from 0.75rem 1.25rem for compact layout */
    }
    
    .home-link {
        font-size: 1.6rem; /* Reduced from 1.75rem for better balance */
        padding: 0.75rem 1.3rem; /* Reduced from 0.875rem 1.5rem for compact spacing */
    }
    
    /* Enhanced message badge */
    .nav-message-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-width: 20px;
    }
    
    /* Larger profile avatar */
    .nav-profile-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Main content containers */
    .main-content {
        max-width: 1400px;
        padding: 2.5rem 2rem;
    }
    
    /* Container-specific adjustments */
    .welcome-container {
        padding: 3rem 2rem;
    }
    
    .welcome-container h1 {
        font-size: 3rem;
    }
    
    .welcome-description {
        font-size: 1.4rem;
        max-width: 800px;
    }
    
    /* Card layouts */
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
    
    .card {
        padding: 2.5rem;
    }
}

/* Large Desktop (1200px to 1439px) - Standard desktop monitors with compact spacing */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* Navigation adjustments - optimized for readability and space efficiency */
    nav[role="navigation"] {
        padding: 0.95rem 2rem; /* Reduced from 1.125rem 2.5rem for compact layout */
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .nav-right {
        gap: 1rem; /* Reduced from 1.25rem for more compact spacing */
    }
    
    nav a:not(.home-link) {
        font-size: 0.92rem; /* Reduced from 0.98rem for better fit */
        padding: 0.55rem 0.95rem; /* Reduced from 0.65rem 1.125rem for compact layout */
    }
    
    .home-link {
        font-size: 1.5rem; /* Reduced from 1.6rem for better proportion */
        padding: 0.7rem 1.2rem; /* Reduced from 0.8rem 1.375rem for compact spacing */
    }
    
    /* Main content containers */
    .main-content {
        max-width: 1200px;
        padding: 2.25rem 1.75rem;
    }
    
    /* Container-specific adjustments */
    .welcome-container {
        padding: 2.5rem 1.75rem;
    }
    
    .welcome-container h1 {
        font-size: 2.75rem;
    }
    
    .welcome-description {
        font-size: 1.3rem;
        max-width: 700px;
    }
    
    /* Card layouts */
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.25rem;
    }
    
    .card {
        padding: 2.25rem;
    }
}

/* Medium Desktop (1025px to 1199px) - Smaller desktop screens with optimized spacing */
@media (min-width: 1025px) and (max-width: 1199px) {
    /* Navigation adjustments - balanced compact layout */
    nav[role="navigation"] {
        padding: 0.875rem 1.75rem; /* Reduced from 1rem 2rem for more compact spacing */
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .nav-right {
        gap: 0.875rem; /* Reduced from 1rem for tighter spacing */
    }
    
    nav a:not(.home-link) {
        font-size: 0.9rem; /* Reduced from 0.95rem to match base styles */
        padding: 0.5rem 0.85rem; /* Reduced from 0.6rem 1rem for compact layout */
    }
    
    .home-link {
        font-size: 1.45rem; /* Slightly reduced from 1.5rem for better fit */
        padding: 0.65rem 1.1rem; /* Reduced from 0.75rem 1.25rem for compact spacing */
    }
    
    /* Main content containers */
    .main-content {
        max-width: 1100px;
        padding: 2rem 1.5rem;
    }
    
    /* Container-specific adjustments */
    .welcome-container {
        padding: 2.25rem 1.5rem;
    }
    
    .welcome-container h1 {
        font-size: 2.5rem;
    }
    
    .welcome-description {
        font-size: 1.25rem;
        max-width: 650px;
    }
    
    /* Card layouts */
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .card {
        padding: 2rem;
    }
}

/* ===================================================================
   LAYOUT CONTAINERS
   =================================================================== */

/* Main content area */
.main-content {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero section with welcome message */
.hero-section {
  text-align: center;
    margin-bottom: 3rem;
}

/* Container for welcome content */
.welcome-container {
    padding: 2rem 1rem;
}

.welcome-container h1 {
    font-size: 2.5rem;
    color: #228b22;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.welcome-description {
  color: #228b22;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Featured posts section */
.featured-posts {
    margin-top: 2rem;
}

/* ===================================================================
   CARD COMPONENTS
   =================================================================== */

/* Post cards */
.card {
  max-width: 600px;
  margin: 1.5rem auto;
/* Thread thumbnails */
.thread-item-header{display:flex;gap:0.75rem;align-items:flex-start}
.thread-thumb{width:96px;height:72px;border-radius:8px;object-fit:cover;flex:0 0 auto;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.thread-title-wrap{flex:1 1 auto}
.thread-title{margin:.1rem 0 .25rem}
.thread-sub{margin:0 0 .5rem;color:#555}

/* Tag chips */
.tag-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.25rem}
.tag-chip{background:rgba(34,139,34,.1);color:#1b5e20;border:1px solid rgba(34,139,34,.25);padding:.25rem .5rem;border-radius:999px;font-size:.85rem;cursor:pointer}
.tag-chip:hover{background:rgba(34,139,34,.18)}
.tag-cloud .tag-chip{background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.1)}
.tag-cloud .tag-chip.active{background:rgba(34,139,34,.2);border-color:rgba(34,139,34,.4)}

/* ================================================================
   Messaging UI (WhatsApp-inspired, responsive)
   ================================================================ */
.inbox-layout{display:grid;grid-template-columns:320px 1fr;gap:1rem}
.conversations{overflow:auto}
.conversation-item{background:#000;border:1px solid rgba(34,139,34,.35);padding:.6rem .8rem;border-radius:10px;text-align:left;cursor:pointer;color:#1b5e20;font-weight:600;transition:background .2s ease,color .2s ease,transform .1s ease}
.conversation-item:hover{background:#0f0f0f;transform:translateY(-1px)}
.conversation-item.active{background:linear-gradient(135deg,#228b22 0%,#2e7d32 100%);color:#fff;border-color:transparent;box-shadow:0 4px 14px rgba(34,139,34,.25)}
.conversation-item.active:hover{filter:brightness(1.03)}

.messages.chat-card{display:grid;grid-template-rows:auto 1fr auto;min-height:65vh}
.chat-header{position:sticky;top:0;background:linear-gradient(135deg,#228b22 0%,#2e7d32 100%);color:#fff;padding:.6rem .9rem;border-radius:12px 12px 0 0;display:flex;align-items:center;gap:.6rem}
.chat-contact{display:flex;align-items:center;gap:.5rem}
.chat-avatar{width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,.35);object-fit:cover}
.chat-name{font-weight:700}
.chat-status{font-size:.85rem;opacity:.9}
.chat-status.online::before{content:"• ";color:#b2ff59}

.message-list{padding:0.75rem;display:flex;flex-direction:column;gap:.5rem;overflow:auto;scroll-behavior:smooth;background:linear-gradient(180deg,#f4fff4 0%, #e8f5e9 100%)}
.message-bubble{max-width:min(75%,640px);padding:.55rem .7rem;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.08);line-height:1.4;word-wrap:break-word;position:relative}
.message-bubble .message-meta{font-size:.75rem;opacity:.65;margin-top:.25rem;text-align:right}
.from-me{align-self:flex-end;background:#d9fdd3;border:1px solid rgba(34,139,34,.25)}
.from-them{align-self:flex-start;background:#ffffff;border:1px solid rgba(0,0,0,.08)}

.message-input{display:flex;gap:.5rem;padding:.6rem;border-top:1px solid rgba(0,0,0,.08);background:#fff;border-radius:0 0 12px 12px}
.message-input input[type="text"]{flex:1 1 auto;border:1px solid rgba(0,0,0,.15);border-radius:24px;padding:.6rem .85rem}

@media (max-width: 900px){
  .inbox-layout{grid-template-columns:1fr}
  .messages.chat-card{min-height:70vh}
}

    padding: 2rem;
    background: white;
  border-radius: 16px;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.1);
  text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.2);
}

.card h3 {
  margin-top: 0;
    margin-bottom: 1rem;
    color: #2e7d32;
    font-size: 1.4rem;
    font-weight: 600;
}

.card p {
    margin: 1rem 0;
    color: #555;
    line-height: 1.6;
}

/* ===================================================================
   FORM ELEMENTS
   =================================================================== */

/* Form inputs */
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea, 
input[type="file"] {
  width: 100%;
    padding: 0.8rem 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
    border: 2px solid #a5d6a7;
    border-radius: 12px;
  font-size: 1rem;
  outline: none;
    transition: all 0.3s ease;
  font-family: inherit;
  background: #f8fff8;
    box-sizing: border-box;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    border-color: #2e7d32;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea {
  resize: vertical;
    min-height: 100px;
  max-height: 300px;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

/* Primary buttons (bigger, more visible) */
button, 
.btn-primary {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    padding: 0.9rem 1.6rem; /* larger */
  border: none;
    border-radius: 12px;
    font-size: 1.05rem; /* larger */
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.2);
}

button:hover, 
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

button:focus, 
.btn-primary:focus {
    outline: 2px solid #b2ff59;
    outline-offset: 2px;
}

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

/* Secondary/decline buttons */
.btn-secondary {
    background: linear-gradient(145deg, #c62828 0%, #b71c1c 100%);
    color: white;
  border: none;
    border-radius: 12px;
    padding: 0.9rem 1.6rem; /* larger */
    font-size: 1.05rem;
  font-weight: 600;
  margin-left: 0.5rem;
  cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

/* ===================================================================
   MEDIA ELEMENTS
   =================================================================== */

/* Hero image */
.centered-img {
    display: block;
    margin: 1.5rem auto 1rem auto; /* tighter vertical */
    max-width: 360px; /* slightly smaller default */
    width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(34, 139, 34, 0.15);
    transition: transform 0.3s ease;
}

.centered-img:hover {
    transform: scale(1.02);
}

/* Media preview for uploads */
.media-preview {
  max-width: 100%;
  max-height: 300px;
  display: block;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.1);
}

/* ===================================================================
   MODAL/OVERLAY COMPONENTS
   =================================================================== */



/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Mobile navigation adjustments - compact layout for better content fit */
    nav[role="navigation"] {
        padding: 0.65rem 0.875rem; /* Reduced from 0.75rem 1rem for compact mobile layout */
        flex-wrap: wrap;
        min-height: 60px; /* Slightly reduced height for mobile */
    }
    
    .nav-center {
        position: static;
        transform: none;
        order: 1;
    }
    
    .nav-toggle {
        display: block;
        order: 3;
        font-size: 1.3rem; /* Slightly reduced from default */
        padding: 0.4rem; /* Reduced padding for compact layout */
    }
    
    .nav-right {
        display: none;
        order: 2;
        width: 100%;
        flex-direction: column;
        gap: 0.4rem; /* Reduced from 0.5rem for tighter mobile spacing */
        margin-top: 0.875rem; /* Slightly reduced margin */
        padding-top: 0.875rem; /* Slightly reduced padding */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-right.active {
        display: flex;
    }
    
    .nav-left {
        display: none;
    }
    
    .home-link {
        font-size: 1.2rem; /* Reduced from 1.25rem for better mobile fit */
        padding: 0.45rem 0.85rem; /* Reduced from 0.5rem 1rem for compact layout */
    }
    
    nav a:not(.home-link) {
        text-align: center;
        justify-content: center;
        padding: 0.45rem 0.7rem; /* More compact mobile padding */
        font-size: 0.85rem; /* Slightly smaller font for mobile */
    }
}

/* Extra small mobile navigation - ultra-compact layout */
@media (max-width: 480px) {
    nav[role="navigation"] {
        padding: 0.6rem 0.75rem; /* Further reduced for very small screens */
        min-height: 55px; /* Even more compact height */
    }
    
    .home-link {
        font-size: 1.05rem; /* Compact home link for small screens */
        padding: 0.35rem 0.7rem; /* Ultra-compact padding */
    }
    
    nav a:not(.home-link) {
        font-size: 0.8rem; /* Smaller font for very small screens */
        padding: 0.4rem 0.6rem; /* Ultra-compact mobile padding */
    }
    
    .nav-toggle {
        font-size: 1.2rem; /* Slightly smaller toggle for small screens */
        padding: 0.35rem; /* More compact toggle button */
    }
    
    .nav-right {
        gap: 0.35rem; /* Even tighter spacing for small screens */
        margin-top: 0.75rem; /* Reduced margin */
        padding-top: 0.75rem; /* Reduced padding */
    }
    
    .nav-icon {
        font-size: 0.85rem; /* Smaller icons for very small screens */
        margin-right: 0.15rem; /* Tighter icon spacing */
    }
    
    .nav-profile-avatar {
        width: 24px; /* Smaller avatar for small screens */
        height: 24px;
    }
    
    .nav-message-badge {
        font-size: 0.6rem; /* Smaller badge text */
        padding: 0.1rem 0.3rem; /* More compact badge */
        min-width: 14px;
    }
    
    .nav-center {
        position: static;
        transform: none;
        order: 1;
    }
    
    .nav-right {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .home-link {
        font-size: 1.8rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Content adjustments */
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .welcome-container h1 {
        font-size: 2rem;
    }
    
    .welcome-description {
        font-size: 1.1rem;
    }
    
    .card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .centered-img { max-width: 280px; }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
}

/* ===================================================================
   PAGE-SPECIFIC DESKTOP RESPONSIVE DESIGN
   =================================================================== */

/* Extra Large Desktop - Page-specific enhancements */
@media (min-width: 1440px) {
    /* Forum-specific layouts */
    .forum-header {
        padding: 3rem 2rem;
    }
    
    .forum-header h1 {
        font-size: 3.25rem;
    }
    
    .forum-description {
        font-size: 1.4rem;
        max-width: 900px;
    }
    
    /* Post creation form */
    .post-creation {
        max-width: 1000px;
        margin: 0 auto;
        padding: 3rem;
    }
    
    /* Forum posts grid */
    .forum-posts {
        max-width: 1100px;
        margin: 0 auto;
        gap: 2.5rem;
    }
    
    .forum-post {
        padding: 2.5rem;
    }
    
    /* Gallery grid improvements */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 3rem;
        max-width: 1500px;
    }
    
    /* Threads layout */
    .threads-container {
        max-width: 1300px;
        padding: 3rem;
    }
    
    .thread-item {
        padding: 2.5rem;
    }
    
    /* Thread stats grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }
    
    /* Authentication pages */
    .auth-container {
        max-width: 1400px;
        padding: 3rem 2rem;
    }
    
    .auth-form-section, .auth-info-section {
        padding: 3rem;
    }
}

/* Large Desktop - Page-specific enhancements */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* Forum-specific layouts */
    .forum-header {
        padding: 2.75rem 2rem;
    }
    
    .forum-header h1 {
        font-size: 3rem;
    }
    
    .forum-description {
        font-size: 1.3rem;
        max-width: 800px;
    }
    
    /* Post creation form */
    .post-creation {
        max-width: 900px;
        margin: 0 auto;
        padding: 2.75rem;
    }
    
    /* Forum posts grid */
    .forum-posts {
        max-width: 1000px;
        margin: 0 auto;
        gap: 2.25rem;
    }
    
    .forum-post {
        padding: 2.25rem;
    }
    
    /* Gallery grid improvements */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 2.75rem;
        max-width: 1400px;
    }
    
    /* Threads layout */
    .threads-container {
        max-width: 1200px;
        padding: 2.75rem;
    }
    
    .thread-item {
        padding: 2.25rem;
    }
    
    /* Thread stats grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2.25rem;
    }
    
    /* Authentication pages */
    .auth-container {
        max-width: 1200px;
        padding: 2.75rem 2rem;
    }
    
    .auth-form-section, .auth-info-section {
        padding: 2.75rem;
    }
}

/* Medium Desktop - Enhanced layouts */
@media (min-width: 1025px) and (max-width: 1199px) {
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    /* Forum-specific layouts */
    .forum-header {
        padding: 2.5rem 1.75rem;
    }
    
    .forum-header h1 {
        font-size: 2.75rem;
    }
    
    .forum-description {
        font-size: 1.25rem;
        max-width: 700px;
    }
    
    /* Post creation form */
    .post-creation {
        max-width: 800px;
        margin: 0 auto;
        padding: 2.5rem;
    }
    
    /* Forum posts grid */
    .forum-posts {
        max-width: 900px;
        margin: 0 auto;
        gap: 2rem;
    }
    
    .forum-post {
        padding: 2rem;
    }
    
    /* Gallery grid improvements */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
        max-width: 1200px;
    }
    
    /* Threads layout */
    .threads-container {
        max-width: 1000px;
        padding: 2.5rem;
    }
    
    .thread-item {
        padding: 2rem;
    }
    
    /* Thread stats grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
    }
    
    /* Homepage cards */
    .featured-posts {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .card {
        max-width: 700px;
        padding: 2rem;
    }
    
    /* Authentication pages */
    .auth-container {
        max-width: 1000px;
        padding: 2.5rem 1.75rem;
    }
    
    .auth-form-section, .auth-info-section {
        padding: 2.5rem;
    }
}

/* ===================================================================
   FORUM-SPECIFIC STYLES
   =================================================================== */

/* Forum header section */
.forum-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.forum-header h1 {
    font-size: 2.5rem;
    color: #228b22;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.forum-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Active navigation link */
nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #b2ff59;
    font-weight: 600;
}

/* Form styling improvements */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

/* Button icons */
.btn-icon {
    margin-right: 0.5rem;
}

/* ===================================================================
   FORUM POST STYLES
   =================================================================== */

/* Forum posts container */
.forum-posts {
    margin-top: 2rem;
}

.forum-posts h2 {
    color: #228b22;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Individual forum post */
.forum-post {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.forum-post:hover {
    transform: translateY(-2px);
}

/* Post header with user info and timestamp */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8f5e9;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e8f5e9;
    transition: border-color 0.3s ease;
}

.user-avatar:hover {
    border-color: #228b22;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.username {
    font-weight: 600;
    color: #2e7d32;
    font-size: 1rem;
}

.user-badge {
    font-size: 0.75rem;
    color: #666;
    background: #f1f8e9;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    width: fit-content;
}

.post-time {
    color: #888;
    font-size: 0.875rem;
}

/* Post content area */
.post-content {
    margin-bottom: 1rem;
}

.post-content h3 {
    color: #2e7d32;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.post-content p {
    line-height: 1.6;
    color: #444;
}

.post-media {
    margin-top: 1rem;
}

/* Post actions (like, reply, share) */
.post-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f5f5f5;
}

.post-actions button {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.post-actions button:hover {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    transform: translateY(-1px);
}

/* Like button specific styles */
.like-btn.liked {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.like-btn.liked:hover {
    background: rgba(233, 30, 99, 0.2);
}

.like-count {
    font-weight: 600;
}

/* Follow button styles */
.follow-btn {
    background: linear-gradient(145deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.follow-btn.following {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
}

.follow-btn.following:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.follow-icon {
    font-size: 0.9rem;
}

/* ===================================================================
   LIKED POSTS SECTION
   =================================================================== */

.liked-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e8f5e9;
}

.liked-posts-section h2 {
    color: #228b22;
    margin-bottom: 1rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.liked-posts-container {
    min-height: 200px;
}

.liked-post-item {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.remove-liked-btn {
    background: linear-gradient(145deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.remove-liked-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.empty-state {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* ===================================================================
   NOTIFICATION SYSTEM
   =================================================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
}

.notification.info {
    background: linear-gradient(145deg, #2196f3 0%, #1976d2 100%);
}

.notification.error {
    background: linear-gradient(145deg, #f44336 0%, #d32f2f 100%);
}



/* ===================================================================
   RESPONSIVE DESIGN FOR FORUM
   =================================================================== */

@media (max-width: 768px) {
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-info {
        width: 100%;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .post-actions button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .follow-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    

}

@media (max-width: 480px) {
    .user-details {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .user-badge {
        font-size: 0.7rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
    }
}

/* ===================================================================
   AUTHENTICATION PAGES STYLES
   =================================================================== */

/* Authentication page body */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Authentication navigation */
.auth-nav {
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.1);
}

/* Authentication main content */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
}

/* Authentication container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

/* Register layout adjustment */
.register-layout {
    grid-template-columns: 1fr 350px;
}

/* Authentication form section */
.auth-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.12);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

/* Authentication header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #228b22;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}



/* Authentication form */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Form groups and labels */
.form-label {
    display: block;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required-indicator {
    color: #e53e3e;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #228b22;
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.form-input.error {
    border-color: #e53e3e;
    background: #fef5f5;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #228b22;
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 10;
    line-height: 1;
    margin: 0;
}

.password-toggle:hover {
    color: #228b22;
    background-color: rgba(34, 139, 34, 0.1);
}

.password-toggle:focus {
    color: #228b22;
    outline: 2px solid rgba(34, 139, 34, 0.3);
    background-color: rgba(34, 139, 34, 0.1);
}

.password-toggle svg {
    opacity: 0.8;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.password-toggle:hover svg {
    opacity: 1;
}

/* Ensure proper alignment of SVG icons */
.password-toggle .eye-icon,
.password-toggle .eye-off-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
}

/* Smooth transition for icon switching */
.password-toggle svg[style*="display: none"] {
    opacity: 0;
}

.password-toggle svg[style*="display: block"] {
    opacity: 1;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    display: none;
}

.strength-bars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Form help text */
.form-help {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Error messages */
.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.1rem;
    accent-color: #228b22;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}

.checkbox-label .link {
    color: #228b22;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label .link:hover {
    text-decoration: underline;
}

/* Form options (remember me, forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.forgot-password-link {
    color: #228b22;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.2);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

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

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form status messages */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b6d7ff;
}

/* Authentication alternative */
.auth-alternative {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-switch-text {
    color: #666;
    margin: 0;
}

.auth-switch-link {
    color: #228b22;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* Authentication info section */
.auth-info-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.08);
    border: 1px solid rgba(34, 139, 34, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.info-title {
    color: #228b22;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-text h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.info-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ===================================================================
   AUTHENTICATION RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
    
    .register-layout {
        grid-template-columns: 1fr;
    }
    
    .auth-info-section {
        position: static;
        order: -1;
    }
    
    .info-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .info-item {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 1rem 0.5rem;
        min-height: calc(100vh - 60px);
    }
    
    .auth-form-section {
        padding: 2rem 1.5rem;
    }
    
    .auth-info-section {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .info-content {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-nav {
        padding: 1rem;
    }
    
    nav[role="navigation"] {
        padding: 0.75rem 1rem;
    }
    
    .home-link {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    nav a:not(.home-link) {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .auth-info-section {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .auth-submit-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* ===================================================================
   GALLERY PAGE STYLES
   =================================================================== */

/* Gallery header */
.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.gallery-header h1 {
    color: #228b22;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Gallery controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #228b22;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #228b22;
}

.upload-btn {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.2);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-container:hover .gallery-overlay {
    opacity: 1;
}

.view-btn, .gallery-like {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.view-btn:hover, .gallery-like:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-like.liked .like-icon {
    color: #e91e63;
}

/* Gallery content */
.gallery-content {
    padding: 1.5rem;
}

.gallery-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e8f5e9;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #2e7d32;
    font-size: 0.9rem;
}

.post-date {
    color: #888;
    font-size: 0.8rem;
}

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.category-tag.indoor { background: #2196f3; }
.category-tag.outdoor { background: #4caf50; }
.category-tag.setup { background: #ff9800; }
.category-tag.harvest { background: #9c27b0; }
.category-tag.tips { background: #607d8b; }

.gallery-title {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-caption {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.gallery-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lightbox modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    font-size: 1.2rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 1.5rem;
}

/* Upload modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.upload-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.upload-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.upload-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.upload-form {
    padding: 1.5rem;
}

.upload-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: #228b22;
    background: rgba(34, 139, 34, 0.05);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

/* ===================================================================
   THREADS PAGE STYLES
   =================================================================== */

/* Threads header */
.threads-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.threads-header h1 {
    color: #228b22;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.threads-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Thread controls */
.thread-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.new-thread-btn {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-thread-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

/* Thread statistics */
.thread-stats {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #228b22;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Threads container */
.threads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.thread-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: all 0.3s ease;
}

.thread-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 139, 34, 0.15);
}

.thread-item.pinned {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

/* Thread status indicators */
.thread-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.pin-indicator, .hot-indicator, .new-indicator, .solved-indicator, .urgent-indicator, .popular-indicator {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.new-indicator {
    background: #4caf50;
    color: white;
}

.solved-indicator {
    background: #2196f3;
    color: white;
}

.urgent-indicator {
    background: #f44336;
    color: white;
}

.popular-indicator {
    background: #ff9800;
    color: white;
}

/* Thread avatar */
.thread-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* Thread content */
.thread-content {
    flex: 1;
    min-width: 0;
}

.thread-header {
    margin-bottom: 0.75rem;
}

.thread-title {
    margin: 0 0 0.5rem 0;
}

.thread-title a {
    color: #2e7d32;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.thread-title a:hover {
    color: #228b22;
    text-decoration: underline;
}

.thread-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.tag.announcement { background: #e91e63; }
.tag.sticky { background: #ff9800; }
.tag.equipment { background: #607d8b; }
.tag.help { background: #2196f3; }
.tag.nutrients { background: #4caf50; }
.tag.solved { background: #8bc34a; }
.tag.problems { background: #f44336; }
.tag.urgent { background: #d32f2f; }
.tag.beginner { background: #9c27b0; }
.tag.setup { background: #ff5722; }

.thread-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: #2e7d32;
}

.author-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.author-badge.moderator { background: #e91e63; }
.author-badge.veteran { background: #ff9800; }
.author-badge.expert { background: #4caf50; }
.author-badge.newbie { background: #2196f3; }

.thread-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.thread-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

/* Thread actions */
.thread-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-btn:hover {
    background: rgba(34, 139, 34, 0.1);
    border-color: #228b22;
}

.action-btn.liked .like-icon {
    color: #e91e63;
}

.action-btn.bookmarked .bookmark-icon {
    color: #ff9800;
}

/* Load more */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 2px solid #228b22;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #228b22;
    color: white;
}

/* New thread modal */
.new-thread-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.thread-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.thread-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.thread-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.thread-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.thread-form {
    padding: 1.5rem;
}

.thread-submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thread-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

/* ===================================================================
   AGE RESTRICTION PAGE STYLES
   =================================================================== */

.age-restriction-page {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    min-height: 100vh;
    position: relative;
    /* Removed 'overflow: hidden' to fix scrolling issue - content needs to scroll when viewport is smaller than content height */
}

.age-restriction-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.age-restriction-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.restriction-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
}

.restriction-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.restriction-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.restriction-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.restriction-content {
    padding: 2rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.appreciation-message h3,
.restriction-explanation h3,
.alternative-resources h3,
.future-welcome h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.restriction-reasons {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.restriction-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.reason-text strong {
    display: block;
    color: #2e7d32;
    margin-bottom: 0.25rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resource-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.resource-link {
    color: #228b22;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.resource-link:hover {
    text-decoration: underline;
}

.welcome-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.future-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.future-features li {
    padding: 0.25rem 0;
    color: #2e7d32;
}

.future-features li::before {
    content: "🌱 ";
    margin-right: 0.5rem;
}

.restriction-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-link {
    color: #228b22;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.legal-notice {
    margin-bottom: 0.5rem;
}

.age-reminder {
    color: #e91e63;
    font-weight: 600;
    margin: 0;
}

/* Background decoration */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

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

/* ===================================================================
   RESPONSIVE DESIGN FOR NEW PAGES
   =================================================================== */

@media (max-width: 768px) {
    .gallery-controls, .thread-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-container {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thread-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .thread-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .thread-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .restriction-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .restriction-title {
        font-size: 2rem;
    }
    
    .restriction-content {
        padding: 1.5rem 1rem;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-header h1, .threads-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .thread-item {
        padding: 1rem;
    }
    
    .lightbox-modal, .upload-modal, .new-thread-modal {
        padding: 1rem;
    }
    
    .restriction-title {
        font-size: 1.8rem;
    }
    
    .footer-actions {
        flex-direction: column;
        text-align: center;
    }
}

/* Print styles */
@media print {
    nav, .skip-link, .post-actions, .follow-btn, .notification, .auth-info-section,
    .gallery-controls, .thread-controls, .thread-actions, .upload-btn, .new-thread-btn,
    .background-decoration {
        display: none;
    }
    
    .main-content, .auth-main {
        padding: 0;
    }
    
    .card, .forum-post, .auth-form-section, .gallery-item, .thread-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .forum-header, .auth-header, .gallery-header, .threads-header {
        margin-bottom: 1rem;
    }
    
    .auth-container, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .age-restriction-page {
        background: white;
    }
    
    .age-restriction-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===================================================================
   INBOX AND MESSAGING STYLES
   =================================================================== */

/* Inbox header */
.inbox-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.inbox-header h1 {
    color: #228b22;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.inbox-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Inbox controls */
.inbox-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inbox-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.inbox-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.inbox-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #228b22;
}

.inbox-stats .stat-label {
    color: #666;
    font-size: 0.9rem;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.new-message-btn {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

/* Inbox layout */
.inbox-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

/* Conversations sidebar */
.conversations-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.sidebar-header h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-search, .sidebar-filter {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.sidebar-search:focus, .sidebar-filter:focus {
    outline: none;
    border-color: #228b22;
}

/* Conversations list */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.conversation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.conversation-item:hover {
    background: rgba(34, 139, 34, 0.05);
}

.conversation-item.active {
    background: rgba(34, 139, 34, 0.1);
    border-left-color: #228b22;
}

.conversation-item.unread {
    background: rgba(33, 150, 243, 0.05);
}

.conversation-item.unread .participant-name {
    font-weight: 700;
}

.conversation-item.unread .last-message {
    font-weight: 600;
    color: #333;
}

/* Conversation avatar */
.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f5e9;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status.online { background: #4caf50; }
.online-status.away { background: #ff9800; }
.online-status.offline { background: #9e9e9e; }

/* Conversation content */
.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.participant-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2e7d32;
    margin: 0;
}

.message-time {
    font-size: 0.8rem;
    color: #888;
}

.last-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.conversation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unread-badge {
    background: #2196f3;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.message-status {
    font-size: 0.8rem;
    color: #888;
}

.message-status.delivered { color: #4caf50; }
.message-status.read { color: #2196f3; }

/* Message view area */
.message-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

/* Message header */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f5e9;
}

.participant-details {
    display: flex;
    flex-direction: column;
}

.message-header .participant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
    margin: 0;
}

.participant-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.participant-status.online .status-dot { background: #4caf50; }
.participant-status.offline .status-dot { background: #9e9e9e; }

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-btn:hover {
    background: rgba(34, 139, 34, 0.1);
    border-color: #228b22;
}

/* Messages container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

/* Message date separator */
.message-date-separator {
    text-align: center;
    margin: 1.5rem 0;
}

.date-label {
    background: white;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Message bubbles */
.message {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.sent {
    flex-direction: row-reverse;
    margin-left: auto;
}

.message.received {
    margin-right: auto;
}

.message-avatar {
    flex-shrink: 0;
}

.sender-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f5e9;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message.sent .message-content {
    align-items: flex-end;
}

.message.received .message-content {
    align-items: flex-start;
}

.message-bubble {
    background: white;
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    max-width: 100%;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.message.sent .message-bubble {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
}

.message-bubble p {
    margin: 0;
    line-height: 1.4;
}

/* Message images */
.message-image {
    margin-top: 0.5rem;
}

.attached-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.attached-image:hover {
    transform: scale(1.02);
}

/* Message meta */
.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.message.sent .message-meta {
    flex-direction: row-reverse;
}

.unread-indicator {
    background: #2196f3;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Message input area */
.message-input-area {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.input-container:focus-within {
    border-color: #228b22;
}

.attachment-btn, .emoji-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.attachment-btn:hover, .emoji-btn:hover {
    background: rgba(34, 139, 34, 0.1);
}

.message-input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 24px;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
}

.message-input::placeholder {
    color: #999;
}

.send-btn {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots .dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(1); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* New message modal */
.new-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.new-message-form {
    padding: 1.5rem;
}

.recipient-input-container {
    position: relative;
}

.user-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.user-suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-suggestion:hover {
    background: rgba(34, 139, 34, 0.05);
}

.suggestion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-name {
    font-weight: 600;
    color: #2e7d32;
}

.suggestion-status {
    margin-left: auto;
    font-size: 0.8rem;
}

.selected-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selected-recipient {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 139, 34, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.recipient-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.remove-recipient {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-recipient:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Image modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    font-size: 1.2rem;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.image-modal-info {
    padding: 1.5rem;
}

.image-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.image-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 1px solid #228b22;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-action-btn:hover {
    background: #228b22;
    color: white;
}

/* ===================================================================
   PROFILE PAGE STYLES
   =================================================================== */

/* Profile layout */
.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Profile sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile card */
.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

/* Profile header with cover and avatar */
.profile-header {
    position: relative;
}

.cover-photo {
    position: relative;
    height: 120px;
    overflow: hidden;
}

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

.edit-cover-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-cover-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -50px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 8px;
    right: calc(50% - 35px);
    background: #228b22;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.edit-avatar-btn:hover {
    background: #2e7d32;
    transform: scale(1.1);
}

.online-indicator {
    position: absolute;
    top: 8px;
    right: calc(50% - 35px);
    width: 20px;
    height: 20px;
    background: #4caf50;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Profile info */
.profile-info {
    padding: 1.5rem;
    text-align: center;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Profile stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-stats .stat-item:hover {
    background: rgba(34, 139, 34, 0.05);
    transform: translateY(-2px);
}

.profile-stats .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #228b22;
}

.profile-stats .stat-label {
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Profile badges */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge.veteran { background: #ff9800; }
.badge.helpful { background: #4caf50; }
.badge.active { background: #2196f3; }
.badge.expert { background: #9c27b0; }
.badge.moderator { background: #e91e63; }

/* Profile bio */
.profile-bio {
    text-align: left;
    margin-bottom: 1.5rem;
}

.profile-bio h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-bio p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.edit-bio-btn {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 1px solid #228b22;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-bio-btn:hover {
    background: #228b22;
    color: white;
}

.bio-edit-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #228b22;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}

.bio-edit-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bio-save-btn, .bio-cancel-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bio-save-btn {
    background: #228b22;
    color: white;
    border: none;
}

.bio-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Profile details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Profile actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edit-profile-btn, .settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.edit-profile-btn {
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    color: white;
    border: none;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

.settings-btn {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 1px solid #228b22;
}

.settings-btn:hover {
    background: #228b22;
    color: white;
}

/* Quick stats card */
.quick-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.quick-stats-card h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-stat:hover {
    background: rgba(34, 139, 34, 0.05);
    transform: translateX(4px);
}

.quick-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #228b22;
}

.quick-stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Profile main content */
.profile-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

/* Profile tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(34, 139, 34, 0.05);
    color: #228b22;
}

.tab-btn.active {
    background: white;
    color: #228b22;
    border-bottom-color: #228b22;
}

.tab-icon {
    font-size: 1rem;
}

/* Tab content */
.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-heading {
    color: #2e7d32;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Activity feed */
.activity-filters {
    margin-bottom: 2rem;
}

.activity-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-filter:focus {
    outline: none;
    border-color: #228b22;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.1);
    transform: translateY(-2px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.post-icon { background: rgba(33, 150, 243, 0.1); }
.activity-icon.photo-icon { background: rgba(156, 39, 176, 0.1); }
.activity-icon.like-icon { background: rgba(233, 30, 99, 0.1); }
.activity-icon.follow-icon { background: rgba(76, 175, 80, 0.1); }
.activity-icon.reply-icon { background: rgba(255, 152, 0, 0.1); }

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.activity-title {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.activity-time {
    color: #888;
    font-size: 0.85rem;
}

.activity-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.activity-preview {
    margin: 0.75rem 0;
}

.activity-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.activity-thumbnail:hover {
    transform: scale(1.05);
}

.activity-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

/* Posts content */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-summary {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.post-summary:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.1);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.post-title {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.post-date {
    color: #888;
    font-size: 0.85rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

.post-actions {
    display: flex;
    gap: 0.75rem;
}

.post-action-btn {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 1px solid #228b22;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-action-btn:hover {
    background: #228b22;
    color: white;
}

/* Photo gallery */
.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-photo-item:hover {
    transform: scale(1.02);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-stats {
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.add-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-photo:hover {
    border-color: #228b22;
    background: rgba(34, 139, 34, 0.05);
}

.add-photo-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.add-photo:hover .add-photo-btn {
    color: #228b22;
}

.add-icon {
    font-size: 2rem;
    font-weight: 300;
}

.add-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Achievements */
.achievement-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(34, 139, 34, 0.1);
    color: #228b22;
    border: 1px solid #228b22;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-btn:hover, .category-btn.active {
    background: #228b22;
    color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.achievement-item.locked {
    background: #f8f9fa;
    opacity: 0.7;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.1);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.achievement-date {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.achievement-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(145deg, #228b22 0%, #2e7d32 100%);
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Edit profile modal */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.edit-profile-form {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #228b22;
}

.checkbox-group label {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Simple photo modal */
.simple-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10001;
}

.modal-photo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

/* ===================================================================
   MESSAGING AND PROFILE DESKTOP RESPONSIVE DESIGN
   =================================================================== */

/* Extra Large Desktop - Messaging and Profile */
@media (min-width: 1440px) {
    .inbox-layout {
        max-width: 1600px;
        grid-template-columns: 420px 1fr;
        margin: 0 auto;
    }
    
    .profile-layout {
        max-width: 1600px;
        grid-template-columns: 400px 1fr;
        gap: 3rem;
        margin: 0 auto;
    }
    
    /* Enhanced messaging */
    .conversations-sidebar {
        min-width: 420px;
    }
    
    .message-view {
        min-height: 700px;
    }
    
    .messages-container {
        max-height: 600px;
    }
    
    /* Enhanced profile */
    .profile-card {
        position: sticky;
        top: 2rem;
    }
    
    .tab-content {
        padding: 2.5rem;
    }
    
    .activity-item, .post-summary {
        padding: 2rem;
    }
    
    .profile-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Large Desktop - Messaging and Profile */
@media (min-width: 1200px) and (max-width: 1439px) {
    .inbox-layout {
        max-width: 1400px;
        grid-template-columns: 400px 1fr;
        margin: 0 auto;
    }
    
    .profile-layout {
        max-width: 1400px;
        grid-template-columns: 375px 1fr;
        gap: 2.5rem;
        margin: 0 auto;
    }
    
    /* Enhanced messaging */
    .conversations-sidebar {
        min-width: 400px;
    }
    
    .message-view {
        min-height: 650px;
    }
    
    .messages-container {
        max-height: 550px;
    }
    
    /* Enhanced profile */
    .profile-card {
        position: sticky;
        top: 2rem;
    }
    
    .tab-content {
        padding: 2.25rem;
    }
    
    .activity-item, .post-summary {
        padding: 1.75rem;
    }
    
    .profile-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Medium Desktop - Messaging and Profile */
@media (min-width: 1025px) and (max-width: 1199px) {
    .inbox-layout {
        max-width: 1200px;
        grid-template-columns: 380px 1fr;
        margin: 0 auto;
    }
    
    .profile-layout {
        max-width: 1200px;
        grid-template-columns: 350px 1fr;
        gap: 2rem;
        margin: 0 auto;
    }
    
    /* Enhanced messaging */
    .conversations-sidebar {
        min-width: 380px;
    }
    
    .message-view {
        min-height: 600px;
    }
    
    .messages-container {
        max-height: 500px;
    }
    
    /* Enhanced profile */
    .tab-content {
        padding: 2rem;
    }
    
    .activity-item, .post-summary {
        padding: 1.5rem;
    }
    
    .profile-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablet/Small Desktop - Messaging and Profile */
@media (min-width: 769px) and (max-width: 1024px) {
    .inbox-layout {
        grid-template-columns: 320px 1fr;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .profile-layout {
        grid-template-columns: 300px 1fr;
        gap: 1.75rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    /* Enhanced messaging */
    .conversations-sidebar {
        min-width: 320px;
    }
    
    .message-view {
        min-height: 550px;
    }
    
    .messages-container {
        max-height: 450px;
    }
    
    /* Enhanced profile */
    .tab-content {
        padding: 1.75rem;
    }
    
    .activity-item, .post-summary {
        padding: 1.25rem;
    }
    
    .profile-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Mobile and Small Tablet - Stacked Layout */
@media (max-width: 768px) {
    .inbox-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .inbox-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .inbox-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inbox-stats {
        justify-content: center;
    }
    
    .profile-layout {
        padding: 1rem 0.5rem;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        min-width: 120px;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .profile-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-categories {
        justify-content: center;
    }
    
    .activity-item, .post-summary {
        padding: 1rem;
    }
    
    .activity-header, .post-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .inbox-header h1 {
        font-size: 2rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }
    
    .tab-icon {
        display: none;
    }
    
    .profile-photo-grid {
        grid-template-columns: 1fr;
    }
    
    .message-header {
        padding: 1rem;
    }
    
    .message-input-area {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* Image preview styles */
.image-preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.image-preview-container h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.image-preview-item {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.image-preview-item img {
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.image-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.image-info small {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Post media styles */
.post-media {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-media img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.post-media img:hover {
    transform: scale(1.05);
}

/* Form help text */
.form-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Alert styles for post status */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Loading indicator styles */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-indicator::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

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

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    font-weight: 500;
    color: #495057;
}

/* No content messages */
.no-posts, .no-images {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-posts h3, .no-images h3 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.no-posts p, .no-images p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}
