/* Import Outfit font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Reset & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: hsl(0, 15%, 6%);
    --bg-card: hsla(0, 20%, 13%, 0.65);
    --bg-card-hover: hsla(0, 20%, 16%, 0.85);
    --bg-modal: hsla(0, 25%, 10%, 0.95);
    
    --border-color: hsla(0, 15%, 22%, 0.5);
    --border-hover: hsla(0, 82%, 52%, 0.4);
    
    --text-primary: hsl(0, 20%, 98%);
    --text-secondary: hsl(0, 10%, 75%);
    --text-muted: hsl(0, 8%, 55%);
    
    --accent-indigo: hsl(0, 82%, 52%);
    --accent-cyan: hsl(355, 70%, 45%);
    --accent-emerald: hsl(5, 85%, 60%);
    --accent-rose: hsl(348, 90%, 58%);
    
    --accent-indigo-glow: hsla(0, 82%, 52%, 0.3);
    --accent-cyan-glow: hsla(355, 70%, 45%, 0.25);
    
    /* Font Stack */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Blur effect */
    --blur-glass: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 10% 20%, hsla(0, 70%, 18%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(350, 60%, 15%, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: hsl(0, 12%, 22%);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsla(0, 25%, 8%, 0.7);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.logo i {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.7rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, hsl(0, 82%, 45%) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--accent-indigo-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(0, 83%, 62%, 0.45);
}

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

.btn-secondary {
    background: hsla(0, 15%, 20%, 0.4);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: hsla(0, 15%, 25%, 0.6);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo-glow);
}

.btn-icon {
    padding: 10px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: hsla(0, 83%, 62%, 0.1);
    color: hsl(0, 83%, 70%);
    border: 1px solid hsla(0, 83%, 62%, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 32px;
    font-weight: 400;
}

.hero-subscribe-btn,
.subscribe-btn {
    font-size: 1rem;
}

.hero-subscribe-btn i,
.subscribe-btn i {
    color: hsl(0, 100%, 62%);
}

.subscribe-btn:hover {
    border-color: hsl(0, 100%, 55%);
    box-shadow: 0 0 10px hsla(0, 100%, 55%, 0.35);
}

/* ==========================================================================
   Stats Dashboard
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px hsla(0, 25%, 4%, 0.5);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.ideas {
    background: rgba(220, 40, 40, 0.12);
    color: var(--accent-indigo);
}

.stat-icon.votes {
    background: rgba(200, 50, 50, 0.12);
    color: var(--accent-cyan);
}

.stat-icon.progress {
    background: rgba(230, 70, 30, 0.12);
    color: hsl(14, 88%, 55%);
}

.stat-icon.completed {
    background: rgba(220, 60, 40, 0.12);
    color: var(--accent-emerald);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Content Filter & Search Controls
   ========================================================================== */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    background: hsla(0, 15%, 15%, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    background: hsla(0, 15%, 18%, 0.6);
    box-shadow: 0 0 12px var(--accent-indigo-glow);
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sort-select {
    padding: 10px 16px;
    background: hsla(0, 15%, 15%, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--accent-indigo);
}

/* Category Filters Horizontal Scroll */
.categories-container {
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none; /* Firefox */
}

.categories-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.categories-list {
    display: flex;
    gap: 8px;
    width: max-content;
}

.category-tab {
    padding: 8px 16px;
    background: hsla(0, 15%, 15%, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: hsla(0, 15%, 18%, 0.5);
}

.category-tab.active {
    background: var(--accent-indigo);
    color: var(--text-primary);
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px var(--accent-indigo-glow);
}

/* ==========================================================================
   Ideas Leaderboard / Ranking Grid
   ========================================================================= */
.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    min-height: 200px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 80px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: hsla(0, 15%, 15%, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo-glow);
}

.page-btn.active {
    background: var(--accent-indigo);
    color: var(--text-primary);
    border-color: var(--accent-indigo);
    box-shadow: 0 4px 15px var(--accent-indigo-glow);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

.idea-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.idea-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: var(--transition-fast);
}

.idea-card:hover {
    transform: translateX(4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px hsla(0, 25%, 4%, 0.4);
}

.idea-card.completed-card::before {
    background: var(--accent-emerald);
}

.idea-card.in-progress-card::before {
    background: hsl(14, 88%, 55%);
}

/* Ranking Badges */
.rank-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-bottom-left-radius: var(--radius-md);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, hsl(0, 85%, 58%) 0%, hsl(0, 85%, 42%) 100%);
    color: hsl(0, 15%, 6%);
    box-shadow: 0 2px 10px rgba(230, 40, 40, 0.35);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 70%) 100%);
    color: hsl(0, 15%, 6%);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, hsl(0, 45%, 40%) 0%, hsl(0, 45%, 28%) 100%);
    color: hsl(0, 15%, 6%);
}

.idea-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idea-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.idea-category {
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idea-dot {
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
}

.idea-author {
    font-weight: 500;
}

.idea-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.idea-status-badge.proposed {
    background: hsla(0, 15%, 22%, 0.4);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.idea-status-badge.in-progress {
    background: hsla(14, 88%, 55%, 0.12);
    color: hsl(14, 88%, 68%);
    border: 1px solid hsla(14, 88%, 55%, 0.25);
}

.idea-status-badge.completed {
    background: hsla(4, 85%, 55%, 0.12);
    color: hsl(4, 85%, 65%);
    border: 1px solid hsla(4, 85%, 55%, 0.25);
}

.idea-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.idea-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.idea-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.idea-desc-toggle {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
}

.idea-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.watch-tutorial-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-rose);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.watch-tutorial-btn:hover {
    color: hsl(348, 90%, 68%);
    transform: translateX(3px);
}

/* Vote Widget */
.vote-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
}

.vote-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: hsla(0, 15%, 18%, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.vote-btn:hover {
    background: hsla(0, 83%, 62%, 0.1);
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
}

.vote-btn:active {
    transform: translateY(0) scale(0.92);
}

.vote-btn.voted {
    background: var(--accent-indigo);
    color: var(--text-primary);
    border-color: var(--accent-indigo);
    box-shadow: 0 4px 15px var(--accent-indigo-glow);
    animation: votePulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.vote-btn.voted + .vote-count {
    color: hsl(0, 83%, 70%);
}

@keyframes votePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: hsla(0, 15%, 15%, 0.15);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: hsla(0, 15%, 22%, 0.5);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: hsla(0, 15%, 15%, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Captcha Block */
.captcha-container {
    background: hsla(0, 15%, 12%, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.captcha-refresh {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.captcha-refresh:hover {
    color: var(--text-primary);
}

.captcha-input {
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================================================
   Admin Section & Moderation UI
   ========================================================================== */
.admin-badge {
    background: hsla(355, 70%, 45%, 0.12);
    color: var(--accent-cyan);
    border: 1px solid hsla(355, 70%, 45%, 0.25);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.admin-only {
    display: none; /* Toggled via JS when logged in */
}

body.admin-logged-in .admin-only {
    display: block;
}

body.admin-logged-in .admin-flex {
    display: flex;
}

.admin-actions-bar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-card-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: hsla(0, 15%, 15%, 0.4);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.admin-card-btn:hover {
    color: var(--text-primary);
}

.admin-card-btn.delete:hover {
    background: hsla(348, 90%, 58%, 0.18);
    border-color: var(--accent-rose);
    color: hsl(348, 90%, 68%);
}

.admin-card-btn.edit:hover {
    background: hsla(355, 70%, 45%, 0.18);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.admin-panel-indicator {
    background: linear-gradient(135deg, hsl(355, 70%, 35%) 0%, var(--accent-indigo) 100%);
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.admin-logout-btn {
    color: var(--accent-rose) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    background: hsla(0, 25%, 6%, 0.4);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-heart {
    color: var(--accent-rose);
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header-inner {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .logo {
        font-size: 1.15rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .nav-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex: 1;
    }
    
    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .idea-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .vote-widget {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
    }
    
    .vote-btn {
        width: 44px;
        height: 44px;
        order: 2;
    }
    
    .vote-count {
        order: 1;
    }
    
    .admin-actions-bar {
        width: 100%;
        justify-content: flex-end;
    }
    
    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .sort-select-wrapper {
        justify-content: space-between;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 1rem;
    }
    
    .nav-actions .btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
