/**
 * Fight For America - Main Stylesheet
 * Political Theme with Red, White, Blue & Patriotic Colors
 */

:root {
    /* Political Colors */
    --republican-red: #c9302c;
    --republican-dark: #a82624;
    --republican-light: #e74c3c;
    
    --democrat-blue: #2563eb;
    --democrat-dark: #1d4ed8;
    --democrat-light: #3b82f6;
    
    --independent-purple: #7c3aed;
    --independent-dark: #6d28d9;
    --independent-light: #8b5cf6;
    
    --neutral-gray: #64748b;
    --neutral-dark: #475569;
    --neutral-light: #94a3b8;
    
    /* Base Colors */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --dark-gray: #1e293b;
    --navy: #0f172a;
    --gold: #eab308;
    --gold-light: #fbbf24;
    
    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Oswald', 'Impact', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--off-white);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

main {
    position: relative;
    z-index: 1;
    touch-action: manipulation;
}

a {
    color: var(--democrat-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--democrat-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    border-bottom: 4px solid var(--republican-red);
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: var(--republican-red);
    padding: 0.5rem 0;
    text-align: center;
}

.header-top p {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo img,
.logo-img {
    height: 70px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text span {
    color: var(--republican-red);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.nav-links a.active {
    background: var(--republican-red);
    color: var(--white);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--democrat-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    border: 2px solid var(--gold);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.user-dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--democrat-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--democrat-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--democrat-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--republican-red);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--republican-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark-gray);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--democrat-blue);
    color: var(--democrat-blue);
}

.btn-outline:hover {
    background: var(--democrat-blue);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

.btn-fight {
    background: linear-gradient(135deg, var(--republican-red) 0%, #dc2626 100%);
    color: var(--white);
    font-size: 1rem;
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid var(--gold);
}

.btn-fight:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 48, 44, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 50%, var(--republican-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90" opacity="0.03">🇺🇸</text></svg>') repeat;
    background-size: 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
    color: var(--gold);
    display: block;
    font-size: 4rem;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Party Affiliation Badges */
.party-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.party-republican {
    background: rgba(201, 48, 44, 0.1);
    color: var(--republican-red);
    border: 1px solid var(--republican-red);
}

.party-democrat {
    background: rgba(37, 99, 235, 0.1);
    color: var(--democrat-blue);
    border: 1px solid var(--democrat-blue);
}

.party-independent {
    background: rgba(124, 58, 237, 0.1);
    color: var(--independent-purple);
    border: 1px solid var(--independent-purple);
}

.party-none {
    background: rgba(100, 116, 139, 0.1);
    color: var(--neutral-gray);
    border: 1px solid var(--neutral-gray);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    color: var(--navy);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: var(--off-white);
}

/* Topic Cards */
.topic-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.topic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.topic-card.pinned {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.05) 0%, var(--white) 50%);
}

.topic-card.featured {
    border-left-color: var(--republican-red);
}

.topic-card-content {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
    align-items: start;
}

.topic-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--democrat-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.topic-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.topic-info h3 a {
    color: var(--navy);
}

.topic-info h3 a:hover {
    color: var(--democrat-blue);
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--neutral-gray);
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.topic-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 80px;
}

.topic-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
}

.topic-stat-label {
    font-size: 0.75rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
}

/* Rebuttal Card */
.rebuttal-card {
    background: linear-gradient(135deg, rgba(201, 48, 44, 0.03) 0%, rgba(37, 99, 235, 0.03) 100%);
    border: 2px solid var(--republican-red);
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.rebuttal-card::before {
    content: '⚔️ REBUTTAL';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--republican-red);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom-left-radius: var(--radius);
}

.rebuttal-card .post-content {
    padding-top: 2rem;
}

/* Post Cards */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    background: var(--off-white);
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--democrat-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-meta {
    font-size: 0.75rem;
    color: var(--neutral-gray);
    display: flex;
    gap: 0.75rem;
}

.post-content {
    padding: 1.5rem;
    line-height: 1.8;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: var(--off-white);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--neutral-gray);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.post-action-btn:hover {
    border-color: var(--democrat-blue);
    color: var(--democrat-blue);
}

.post-action-btn.like:hover,
.post-action-btn.like.active {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.post-action-btn.dislike:hover,
.post-action-btn.dislike.active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.fight-back-btn {
    background: linear-gradient(135deg, var(--republican-red) 0%, #dc2626 100%);
    color: var(--white);
    border: 2px solid var(--gold);
    font-weight: 700;
}

.fight-back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
    color: var(--white);
    border-color: var(--gold);
}

/* Poll Styles */
.poll-container {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    border: 2px solid var(--democrat-blue);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
}

.poll-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.poll-option {
    position: relative;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.poll-option:hover {
    border-color: var(--democrat-blue);
}

.poll-option.selected {
    border-color: var(--democrat-blue);
    background: rgba(37, 99, 235, 0.05);
}

.poll-option-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    transition: width 0.5s ease;
}

.poll-option-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poll-option-text {
    font-weight: 600;
}

.poll-option-percent {
    font-weight: 700;
    color: var(--democrat-blue);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.category-content {
    padding: 1rem 1.5rem;
    text-align: center;
}

.category-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.category-content p {
    font-size: 0.875rem;
    color: var(--neutral-gray);
    margin-bottom: 0.75rem;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
}

.widget-header h3 {
    color: var(--white);
    font-size: 0.875rem;
    margin: 0;
}

.widget-body {
    padding: 1rem;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--off-white);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--dark-gray);
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: var(--dark-gray);
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--democrat-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.875rem;
}

.leaderboard-credits {
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-control:focus {
    outline: none;
    border-color: var(--democrat-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--neutral-light);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--democrat-blue);
}

/* Affiliation Selector */
.affiliation-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.affiliation-option {
    position: relative;
    cursor: pointer;
}

.affiliation-option input {
    position: absolute;
    opacity: 0;
}

.affiliation-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 3px solid var(--light-gray);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
}

.affiliation-option input:checked + .option-content {
    border-width: 3px;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.affiliation-option.republican input:checked + .option-content {
    border-color: var(--republican-red);
    background: rgba(201, 48, 44, 0.05);
}

.affiliation-option.democrat input:checked + .option-content {
    border-color: var(--democrat-blue);
    background: rgba(37, 99, 235, 0.05);
}

.affiliation-option.independent input:checked + .option-content {
    border-color: var(--independent-purple);
    background: rgba(124, 58, 237, 0.05);
}

.affiliation-option.none input:checked + .option-content {
    border-color: var(--neutral-gray);
    background: rgba(100, 116, 139, 0.05);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: var(--navy);
}

/* User Rank Badge */
.user-rank {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--navy);
}

/* Credits Display */
.credits-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    color: var(--gold);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--info);
    color: #075985;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--democrat-blue);
    color: var(--white);
    border-color: var(--democrat-blue);
}

.pagination .active {
    background: var(--democrat-blue);
    color: var(--white);
    border-color: var(--democrat-blue);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb a:hover {
    color: var(--gold);
}

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2rem 0;
}

.main-content {
    min-width: 0;
}

/* Note: Responsive styles for main-layout are consolidated at the end of the file */

/* Note: Mobile responsive styles are now consolidated at the end of the file */

/* Admin Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--navy);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-nav a.active {
    border-left: 3px solid var(--republican-red);
}

.admin-main {
    background: var(--off-white);
    padding: 2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.data-table th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover td {
    background: rgba(37, 99, 235, 0.02);
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.role-moderator {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.role-member {
    background: rgba(37, 99, 235, 0.1);
    color: var(--democrat-blue);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--democrat-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-gray);
}

/* Fight Back Section */
.fight-back-section {
    background: linear-gradient(135deg, var(--republican-red) 0%, #dc2626 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fight-back-section::before {
    content: '⚔️';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
}

.fight-back-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fight-back-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trending Topics */
.trending-topic {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.trending-topic:last-child {
    border-bottom: none;
}

.trending-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-light);
    width: 30px;
}

.trending-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

.trending-info h4 a {
    color: var(--navy);
}

.trending-info h4 a:hover {
    color: var(--democrat-blue);
}

.trending-stats {
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Quick Reply */
.quick-reply {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.quick-reply h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.quick-reply-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Badges Display */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--off-white);
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    margin-bottom: 0.5rem;
}

/* Podium Styles */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    min-width: 150px;
}

.podium-item.gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    order: 2;
    transform: scale(1.1);
}

.podium-item.silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #94a3b8;
    order: 1;
}

.podium-item.bronze {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border: 2px solid #d97706;
    order: 3;
}

.podium-medal {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.podium-username {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
}

.podium-credits {
    font-size: 0.875rem;
    color: var(--neutral-gray);
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-stat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.dashboard-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.dashboard-stat-label {
    font-size: 0.75rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--democrat-blue) 0%, var(--primary-blue) 100%);
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* Notification List */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--off-white);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* User Profile Styles */
.profile-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--gold);
}

.profile-details h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-meta-item {
    text-align: center;
}

.profile-meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.profile-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Featured Topic Banner */
.featured-banner {
    background: linear-gradient(135deg, var(--republican-red) 0%, var(--republican-dark) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Activity Feed */
.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--neutral-gray);
    margin-bottom: 1.5rem;
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 2rem;
    text-align: center;
}

.auth-header h1 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1.5rem;
    background: var(--off-white);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

/* Rank Display */
.rank-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50px;
    font-weight: 600;
    color: var(--navy);
}

.rank-icon {
    font-size: 1.25rem;
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -260px;
        transition: var(--transition);
        z-index: 100;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
}

/* Text Editor Toolbar */
.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.editor-toolbar button {
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.editor-toolbar button:hover {
    background: var(--light-gray);
}

.editor-toolbar + textarea {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--neutral-gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--neutral-gray);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ============================================
   HAMBURGER MENU & MOBILE NAVIGATION
   ============================================ */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    position: relative;
    transition: var(--transition);
}

.hamburger-menu:hover {
    background: rgba(255,255,255,0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav-close {
    display: none;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--republican-red);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Tablets and below */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Navigation Breakpoint */
@media (max-width: 900px) {
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, var(--navy) 0%, var(--dark-gray) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    }
    
    .main-nav.open {
        display: flex;
    }
    
    .main-nav a,
    .main-nav button {
        position: relative;
        z-index: 1;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        margin-bottom: 1.5rem;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--republican-red);
    }
    
    .user-dropdown {
        width: 100%;
    }
    
    .user-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem;
        background: rgba(255,255,255,0.1);
        border-radius: var(--radius);
    }
    
    .user-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
    }
    
    .user-dropdown-menu a {
        color: var(--white);
        border-color: rgba(255,255,255,0.1);
    }
    
    .user-dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--gold);
    }
    
    .credits-display {
        background: rgba(255,255,255,0.1);
        padding: 0.75rem;
        border-radius: var(--radius);
        text-align: center;
    }
    
    .notification-dropdown {
        text-align: center;
        padding: 0.5rem;
    }
    
    .mobile-nav-close {
        display: block;
    }
    
    .header-main {
        padding: 0.75rem 1rem;
    }
    
    .logo-img {
        height: 55px;
        max-width: 250px;
    }
    
    .logo-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .logo-img {
        height: 45px;
        max-width: 200px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .header-top {
        padding: 0.35rem 0;
    }
    
    .header-top p {
        font-size: 0.7rem;
        letter-spacing: 0;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero .btn-fight {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Cards Mobile */
    .card {
        border-radius: var(--radius);
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Stats Grid Mobile */
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .stat-card-label {
        font-size: 0.7rem;
    }
    
    /* Topics List Mobile */
    .topic-item {
        padding: 1rem;
    }
    
    .topic-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .topic-title {
        font-size: 1rem;
    }
    
    .topic-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .topic-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--light-gray);
    }
    
    /* Posts Mobile */
    .post {
        padding: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .post-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .reaction-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Profile Page Mobile */
    .card-body > div[style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .post-author-avatar[style*="width: 120px"] {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    /* Polls Mobile */
    .poll-card {
        padding: 1rem;
    }
    
    .poll-option {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Leaderboard Mobile */
    .podium {
        flex-direction: column;
        gap: 1rem;
    }
    
    .podium-item {
        width: 100%;
        transform: none !important;
    }
    
    .podium-item.first {
        order: -1;
    }
    
    /* Auth Pages Mobile */
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-body {
        padding: 1.5rem;
    }
    
    /* Affiliation Selector Mobile */
    .affiliation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .affiliation-option {
        padding: 1rem 0.5rem;
    }
    
    .affiliation-option .icon {
        font-size: 1.5rem;
    }
    
    /* Category Grid Mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    /* Dashboard Stats Mobile */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
    }
    
    /* Admin Panel Mobile */
    .admin-header {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tables Mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Modals Mobile */
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Toast Mobile */
    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }
    
    .toast {
        width: 100%;
    }
    
    /* Search Mobile */
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    /* Filters Mobile */
    .filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filters select,
    .filters input {
        width: 100%;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .logo-img {
        height: 38px;
        max-width: 160px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .header-top p {
        font-size: 0.65rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliation-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .btn-fight {
        width: 100%;
    }
    
    /* Credits Display in Header */
    .credits-display {
        font-size: 0.8rem;
    }
}

/* ============================================
   ENHANCED PROFILE PHOTO UPLOAD STYLES
   ============================================ */

.profile-photo-section {
    text-align: center;
}

.profile-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-photo-container {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    cursor: pointer;
    overflow: visible;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.profile-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    border: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

/* Hover overlay for photo change */
.profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 4px solid var(--gold);
}

.profile-photo-container:hover .profile-photo-overlay {
    opacity: 1;
}

.profile-photo-container:hover .profile-photo,
.profile-photo-container:hover .profile-photo-placeholder {
    transform: scale(1.02);
}

.overlay-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.overlay-text {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hidden file input */
.photo-file-input {
    display: none;
}

/* Photo Buttons Container */
.photo-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filename display */
.photo-filename {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--off-white);
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--dark-gray);
    max-width: 200px;
    overflow: hidden;
}

.photo-filename .filename-icon {
    flex-shrink: 0;
}

.photo-filename .filename-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Photo selected state */
.photo-selected .profile-photo-container {
    border: 3px dashed var(--success);
    border-radius: 50%;
    padding: 3px;
}

/* Upload info text */
.photo-upload-info {
    color: var(--neutral-gray);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.photo-upload-info small {
    display: block;
}

/* Drag and drop states */
.profile-photo-container.drag-over {
    border: 3px dashed var(--democrat-blue);
    border-radius: 50%;
    padding: 3px;
}

/* Loading state */
.profile-photo-container.uploading::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--gold);
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Old upload button - keep for backwards compatibility */
.profile-photo-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--democrat-blue) 0%, var(--democrat-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--white);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.profile-photo-upload:hover {
    background: linear-gradient(135deg, var(--republican-red) 0%, var(--republican-dark) 100%);
    transform: scale(1.15);
}

.profile-photo-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.profile-photo-upload span {
    color: var(--white);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-photo-container,
    .profile-photo,
    .profile-photo-placeholder,
    .profile-photo-overlay {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo-placeholder {
        font-size: 3rem;
    }
    
    .photo-upload-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .profile-photo-container.uploading::after {
        width: 120px;
        height: 120px;
    }
}

/* Utility: Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Utility: Show only on mobile */
.show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}
