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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --primary-rgb: 59, 130, 246;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #94a3b8;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --background-light: #0f172a;
    --background-white: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    background-color: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle i {
    content: '\f185'; /* sun icon */
}

.theme-toggle.dark-mode i::before {
    content: '\f185'; /* sun icon */
}

/* Navigation */
.navbar {
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 180px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    color: #fbbf24;
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    position: relative;
}

.trading-dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.dashboard-title {
    font-weight: 600;
    font-size: 18px;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse 2s infinite;
}

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

.dashboard-content {
    display: grid;
    gap: 16px;
}

.market-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.change {
    font-size: 14px;
    font-weight: 500;
}

.change.positive {
    color: #10b981;
}

.change.negative {
    color: #ef4444;
}

/* Featured Ideas Section */
.featured-ideas {
    padding: 80px 0;
    background-color: var(--background-white);
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background-color: var(--background-light);
    padding: 4px;
    border-radius: var(--border-radius);
}

.filter-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background-color: var(--primary-color);
    color: white;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.idea-card {
    background-color: var(--background-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.idea-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.status-completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-in-progress {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.idea-actions {
    display: flex;
    gap: 8px;
}

.idea-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.idea-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background-color: var(--background-light);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 14px;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idea-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-item i {
    font-size: 12px;
}

.load-more-container {
    text-align: center;
}

/* Admin Features for Idea Cards */
.admin-comment-section {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    position: relative;
}

.admin-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #059669;
    font-weight: 600;
    font-size: 13px;
}

.admin-comment-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-comment-header i {
    color: #10b981;
}

.admin-comment-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.xml-download-section {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.xml-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xml-download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.xml-download-btn i {
    font-size: 10px;
}

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

/* Standalone XML download button (when no admin comment) */
.xml-download-btn.standalone {
    margin: 12px 0;
    align-self: flex-start;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .admin-comment-section {
        padding: 12px;
        margin-top: 12px;
    }
    
    .admin-comment-header {
        flex-direction: row;
        align-items: start;
        gap: 8px;
    }
    
    .xml-download-btn {
        font-size: 10px;
        padding: 5px 10px;
        align-self: flex-end;
        margin-top: 8px;
    }
    
    .admin-comment-content {
        font-size: 13px;
    }
}

/* Dark mode support for admin features */
[data-theme="dark"] .admin-comment-section {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.08));
    border-color: rgba(52, 211, 153, 0.25);
}

[data-theme="dark"] .admin-comment-header {
    color: #34d399;
}

[data-theme="dark"] .admin-comment-header i {
    color: #6ee7b7;
}

[data-theme="dark"] .admin-comment-content {
    color: var(--text-primary);
}

/* Admin comment section on idea page */
.idea-content #admin-comment-section {
    margin: 24px 0;
}

.idea-content .admin-comment-section {
    margin-top: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

/* Override content-section styling when it wraps admin comments */
.content-section .admin-comment-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 0 !important;
}

.content-section .admin-comment-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    color: #059669 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.content-section .admin-comment-header > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.content-section .admin-comment-header i {
    color: #10b981 !important;
}

.content-section .admin-comment-content {
    color: var(--text-primary) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-style: italic !important;
    margin: 0 !important;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: var(--background-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.category-card {
    background-color: var(--background-white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    margin-bottom: 24px;
}

.category-icon i {
    font-size: 28px;
    color: white;
}

.category-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-card p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Community Section */
.community {
    padding: 80px 0;
    background-color: var(--background-white);
}

.community-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.stat-card {
    background-color: var(--background-light);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    margin-bottom: 16px;
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.community-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Tools Section */
.tools {
    padding: 80px 0;
    background-color: var(--background-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.tool-card {
    background-color: var(--background-white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    border-radius: 16px;
    margin-bottom: 24px;
}

.tool-icon i {
    font-size: 28px;
    color: white;
}

.tool-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card p {
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 45px;
    width: auto;
    max-width: 160px;
}

.footer-brand-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Modals */
/* Enhanced Modal Styling - Modern & Clean */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--background-white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.modal-small {
    max-width: 400px;
}

.modal-large {
    max-width: 900px;
    max-height: 85vh;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-close {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: scale(1.05);
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--background-light);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Auth */
.auth-options {
    margin-bottom: 24px;
}

.auth-btn {
    width: 100%;
    margin-bottom: 12px;
    justify-content: center;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-secondary);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    background-color: var(--background-white);
    padding: 0 16px;
}

.signin-form {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.signup-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background-color: var(--background-light);
    color: var(--text-primary);
}

/* Responsive Design */
/* Desktop and tablet - ensure mobile elements are hidden */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 32px !important;
        z-index: auto !important;
        transition: none !important;
        overflow-y: visible !important;
    }
    
    .nav-link {
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 0 !important;
        border-bottom: none !important;
        text-align: left !important;
    }
    
    .mobile-nav-actions {
        display: none !important;
    }
    
    .nav-actions .btn {
        display: inline-flex !important;
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 12px 16px;
    }
    
    .logo {
        height: 45px;
        max-width: 160px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .nav-actions {
        gap: 12px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 8px 16px;
        min-height: 60px;
    }
    
    .logo {
        height: 40px;
        max-width: 140px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--background-white);
        border-left: 1px solid var(--border-color);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 24px;
        z-index: 1100;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.mobile-open {
        display: flex;
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
        font-weight: 600;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1200;
        position: relative;
    }
    
    .mobile-menu-toggle.active {
        color: var(--primary-color);
    }
    
    /* Mobile menu actions */
    .nav-menu .mobile-nav-actions {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .nav-actions .btn-icon {
        display: flex;
    }
    
    /* Mobile menu overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .section-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .community-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .auth-btn {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
        min-height: 56px;
    }
    
    .logo {
        height: 36px;
        max-width: 120px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-actions .btn-icon {
        padding: 8px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .featured-ideas,
    .categories,
    .community,
    .tools {
        padding: 60px 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .trading-dashboard {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .market-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .idea-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .idea-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .categories {
    background: var(--background-white);
}

[data-theme="dark"] .category-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .category-card:hover {
    background: var(--background-white);
    border-color: var(--primary-color);
}

[data-theme="dark"] .community {
    background: var(--background-white);
}

[data-theme="dark"] .stat-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tools {
    background: var(--background-light);
}

[data-theme="dark"] .tool-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
}

/* Toast Notifications for Dark Mode */
[data-theme="dark"] .toast {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Animation Classes */
.animate-in {
    animation: slideUp 0.6s ease forwards;
}

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

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-success .toast-content i {
    color: var(--success-color);
}

.toast-error .toast-content i {
    color: var(--danger-color);
}

.toast-info .toast-content i {
    color: var(--primary-color);
}

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

/* Mobile Menu Dark Mode */
[data-theme="dark"] .nav-menu {
    background: var(--background-white);
    border-left: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-link {
    border-bottom: 1px solid var(--border-color);
}

/* Focus States for Dark Mode */
[data-theme="dark"] *:focus {
    outline-color: var(--primary-color);
}

/* Selection Colors for Dark Mode */
[data-theme="dark"] ::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styles for Dark Mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--background-light);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Loading and Error Messages */
.loading-message, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.loading-message::before {
    content: "⏳ ";
    margin-right: 0.5rem;
}

.error-message {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.error-message::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
}

/* Comments Link Styling */
.comments-link {
    cursor: pointer !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.comments-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Enhanced Idea Details Modal */
.idea-details-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 0;
}

.idea-details-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

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

.idea-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idea-details-section h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-details-section h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.idea-details-section p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.idea-details-section .highlight {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.idea-details-description {
    line-height: 1.7;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    background: var(--background-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.idea-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.idea-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.idea-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.idea-details-stats {
    display: flex;
    gap: 1.5rem;
    padding: 20px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    border-radius: 12px;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
}

.idea-details-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.idea-details-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.idea-details-actions .btn:hover {
    transform: translateY(-1px);
}

/* Enhanced Comments Section */
.comments-section {
    border-top: 2px solid var(--border-color);
    padding: 28px 32px;
    background: var(--background-light);
    margin: 0 -32px -32px -32px;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h3 i {
    color: var(--primary-color);
}

.comments-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

/* Updated to match JavaScript class name */
.comment {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--background-white);
    transition: all 0.3s ease;
}

.comment:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-1px);
}

.comment-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.comment-text a,
.admin-comment-content a,
.idea-description a,
.idea-details-description a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.comment-text a:hover,
.admin-comment-content a:hover,
.idea-description a:hover,
.idea-details-description a:hover {
    color: inherit;
    border-bottom-color: currentColor;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

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

.comment-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.comment-action-btn i {
    font-size: 0.7rem;
}

/* No comments state */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: var(--background-white);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-comments i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.no-comments p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Comments error state */
.comments-error {
    text-align: center;
    padding: 20px;
    color: var(--danger-color);
    background: var(--danger-light);
    border-radius: 12px;
    border: 1px solid var(--danger-color);
}

.comments-error i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.comments-loading i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Enhanced comment form */
.comment-form {
    background: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form textarea::placeholder {
    color: var(--text-secondary);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-submit {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.comment-submit:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.comment-submit i {
    font-size: 0.8rem;
}

/* Comment login prompt */
.comment-login-prompt {
    text-align: center;
    padding: 24px;
    background: var(--background-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.comment-login-prompt p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.comment-login-prompt i {
    color: var(--primary-color);
}

/* Custom scrollbar for comments list */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Admin Comment Section in Modal */
.idea-details-content .admin-comment-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid var(--success-color);
    border-radius: 12px;
    position: relative;
}

.idea-details-content .admin-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.875rem;
}

.idea-details-content .admin-comment-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-details-content .admin-comment-header i {
    color: var(--success-color);
    font-size: 1rem;
}

.idea-details-content .admin-timestamp {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.idea-details-content .admin-comment-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px 16px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .idea-details-content {
        padding: 24px;
        gap: 20px;
    }
    
    .idea-details-title {
        font-size: 1.5rem;
    }
    
    .comments-section {
        padding: 20px 24px;
        margin: 0 -24px -24px -24px;
    }
    
    .comment {
        padding: 12px;
    }
    
    .comment-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .comment-action-btn {
        justify-content: center;
        padding: 8px 12px;
    }
    
    .comment-form {
        padding: 16px;
    }
    
    .comment-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .idea-details-content .admin-comment-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .idea-details-content .admin-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .idea-details-content .admin-comment-content {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .idea-details-actions {
        flex-direction: column;
    }
    
    .idea-details-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Status Management Styles */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-toggle {
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.status-toggle:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.status-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.status-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.status-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.status-option:hover:not(:disabled) {
    background: var(--background-light);
}

.status-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.status-dot.status-active {
    background: var(--success-color);
}

.status-dot.status-completed {
    background: var(--primary-color);
}

.status-dot.status-impossible {
    background: var(--danger-color);
}

/* Status Badge Colors */
.idea-status.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.idea-status.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.idea-status.status-impossible {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--background-white);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

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

.toast.toast-success {
    border-left-color: var(--success-color);
}

.toast.toast-error {
    border-left-color: var(--danger-color);
}

.toast.toast-warning {
    border-left-color: var(--warning-color);
}

/* Authentication Modal Styles */
.auth-modal-content {
    max-width: 400px;
    width: 90%;
}

.auth-modal-content .modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.auth-form-container {
    padding: 0;
}

.auth-form {
    width: 100%;
}

.auth-form p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 2rem;
}

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

.auth-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--background-white);
    color: var(--text-primary);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form .btn-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Info Section */
.user-info-section {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.user-welcome {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-welcome span {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-welcome strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Authentication Toast Notifications */
.auth-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--background-white);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.auth-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.auth-toast.toast-success {
    border-left-color: var(--success-color);
}

.auth-toast.toast-error {
    border-left-color: var(--danger-color);
}

.auth-toast.toast-warning {
    border-left-color: var(--warning-color);
}

/* Dark mode authentication styles */
[data-theme="dark"] .auth-form input {
    background: var(--background-darker);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

[data-theme="dark"] .auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .auth-footer {
    border-top-color: var(--border-dark);
}

[data-theme="dark"] .user-info-section {
    background: var(--background-dark);
    border-bottom-color: var(--border-dark);
}

/* Responsive authentication styles */
@media (max-width: 480px) {
    .auth-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .auth-toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

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

/* No Ideas Empty State - Compact & Centered Design */
.no-ideas,
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 200px;
    color: var(--text-secondary);
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    background: var(--background-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.no-ideas i,
.no-results i,
.no-results-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.no-ideas h3,
.no-results h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-ideas p,
.no-results p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    max-width: 280px;
}

.no-ideas .btn,
.no-results .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Dark mode adjustments */
[data-theme="dark"] .no-ideas,
[data-theme="dark"] .no-results {
    background: var(--background-white);
    border-color: var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-ideas,
    .no-results {
        padding: 1.5rem 1rem;
        min-height: 180px;
        margin: 0.75rem auto;
        max-width: 350px;
    }
    
    .no-ideas i,
    .no-results i,
    .no-results-icon i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .no-ideas h3,
    .no-results h3 {
        font-size: 1rem;
    }
    
    .no-ideas p,
    .no-results p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .no-ideas,
    .no-results {
        padding: 1.25rem 0.75rem;
        min-height: 160px;
        margin: 0.5rem auto;
        max-width: 300px;
    }
    
    .no-ideas i,
    .no-results i,
    .no-results-icon i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .no-ideas h3,
    .no-results h3 {
        font-size: 0.95rem;
    }
    
    .no-ideas p,
    .no-results p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .no-ideas .btn,
    .no-results .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 120px;
    }
}
