/* Reset & Grundlegendes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a0a2e;
    --bg-secondary: #1a0a2e;
    --bg-card: rgba(15, 25, 35, 0.98);
    --text-primary: #fff;
    --text-secondary: #999;
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --success: #10b981;
    --border: rgba(139, 92, 246, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Unified Background - Removed animated gradient for single color */

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.app {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 5rem; /* Platz für Bottom Nav */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: transparent;
    padding: 1.5rem 1rem 0.5rem 1rem;
    position: relative;
    z-index: 100;
    margin-top: 5px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 26px;
    width: auto;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

/* Submit Section */
.submit-section {
    padding: 1.5rem 1rem;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.idea-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.idea-input:focus {
    outline: none;
    border-color: var(--accent);
}

.idea-input::placeholder {
    color: var(--text-secondary);
}

/* Category Selection */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.category-btn {
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 80px;
}

.category-btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.category-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.category-btn.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.submit-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.char-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.submit-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    margin-top: 5px;

}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Filter Section */
.filter-section {
    padding: 1rem;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.filter-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-btn:hover:not(.active) {
    border-color: var(--accent);
}

/* Custom Category Dropdown */
.custom-dropdown {
    position: relative;
    min-width: 150px;
}

.dropdown-selected {
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.dropdown-selected::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-selected:hover {
    border-color: var(--accent);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--accent);
    background-color: rgba(139, 92, 246, 0.1);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.custom-dropdown.open .dropdown-options {
    max-height: 300px;
    opacity: 1;
}

.dropdown-option {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dropdown-option:hover {
    background: rgba(139, 92, 246, 0.1);
}

.dropdown-option.selected {
    background: rgba(139, 92, 246, 0.2);
}

.dropdown-option-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Ideas List */
.ideas-section {
    padding: 0 1rem;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-card {
    background: rgba(22, 32, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
    animation: fadeIn 0.4s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.idea-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Eigene Ideen hervorheben */
.idea-card.own-idea {
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(167, 139, 250, 0.05));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    animation: fadeIn 0.4s ease-out, gentlePulse 3s ease-in-out infinite;
}

.idea-card.own-idea:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.35);
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
    }
}

/* Top 3 Rankings - Gold (gleiche Intensität) */
.idea-card.top-rank-1,
.idea-card.top-rank-2,
.idea-card.top-rank-3 {
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.12);
}

.idea-card.top-rank-1:hover,
.idea-card.top-rank-2:hover,
.idea-card.top-rank-3:hover {
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.18);
}

/* Rank 1, 2, 3 - Gold Shimmer Background */
.idea-card.top-rank-1,
.idea-card.top-rank-2,
.idea-card.top-rank-3 {
    position: relative;
    background: linear-gradient(135deg,
        rgba(22, 32, 42, 0.95) 0%,
        rgba(35, 32, 25, 0.95) 50%,
        rgba(22, 32, 42, 0.95) 100%);
}

.idea-card.top-rank-1::before,
.idea-card.top-rank-2::before,
.idea-card.top-rank-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 215, 0, 0.03) 30%,
        rgba(255, 223, 64, 0.07) 50%,
        rgba(255, 215, 0, 0.03) 70%,
        transparent 100%
    );
    background-size: 200% 200%;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}

.idea-card.top-rank-1::before {
    animation: gold-shimmer-flow 4s ease-in-out infinite;
}

.idea-card.top-rank-2::before {
    animation: gold-shimmer-flow 4.5s ease-in-out infinite;
}

.idea-card.top-rank-3::before {
    animation: gold-shimmer-flow 3.7s ease-in-out infinite;
}

.idea-card.top-rank-1::after,
.idea-card.top-rank-2::after,
.idea-card.top-rank-3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 35% 50%,
        rgba(255, 215, 0, 0.04) 0%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0.7;
    border-radius: inherit;
    overflow: hidden;
}

@keyframes gold-shimmer-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.idea-author-wrapper {
    flex: 1;
    min-width: 0;
}

.idea-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.02rem;
    min-width: 0;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.idea-author .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.idea-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.idea-badges {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.idea-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    text-align: left;
    position: relative;
    z-index: 1;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.upvote-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.upvote-btn:hover:not(.upvoted):not(:disabled) {
    border-color: var(--success);
    color: var(--success);
}

.upvote-btn.upvoted {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.upvote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upvote-count {
    font-weight: 700;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: var(--success);
}

.notification.error {
    border-color: #ef4444;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 450px;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.75rem;
    z-index: 100;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-top: 100px;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.4rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 18px;
    position: relative;
}

.nav-btn.active {
    background: rgba(50, 60, 70, 0.8);
    color: var(--accent);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-btn.active .nav-icon {
    transform: scale(1.05);
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn.active .nav-label {
    font-weight: 600;
}

.nav-btn:hover:not(.active) {
    background: rgba(50, 60, 70, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    }
}

/* Stats Section */
.stats-section {
    padding: 1.5rem 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* My Ideas Section */
.my-ideas-section {
    padding-bottom: 1rem;
}

.my-ideas-list-section {
    padding: 0 1rem;
}

.my-ideas-list-section .section-title {
    padding: 0 0 1rem 0;
}

/* Onboarding - Modern Multi-Step */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.3s ease-out;
}

.onboarding-overlay.hidden {
    display: none;
}

.onboarding-container {
    width: 100%;
    height: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

/* Onboarding Screens */
.onboarding-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-screen.active {
    opacity: 1;
    transform: translateX(0);
}

.onboarding-screen.prev {
    opacity: 0;
    transform: translateX(-100%);
}

/* Welcome Screen (Screen 0) */
.welcome-screen {
    text-align: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem 12rem 1.5rem;
}

.welcome-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 50px;
}

.welcome-logo {
    height: 60px;
    width: auto;
}

.welcome-logo-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.welcome-image { width: 200%; max-width: 950px; height: auto; margin-top: 50px; animation: floatImage 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.3)); }


@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Tutorial Screen */
.tutorial-screen {
    text-align: center;
    padding: 2rem;
    justify-content: center;
}

.tutorial-content-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-bottom: 8rem;
}

.tutorial-content {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tutorial-content.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

/* Tutorial Idea Card */
.tutorial-idea-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 0.5rem 220px 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.tutorial-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
        transform: scale(1.05);
    }
}

/* Tutorial Emoji Animations */
.tutorial-emoji-1,
.tutorial-emoji-2,
.tutorial-emoji-3 {
    opacity: 0;
    transform: scale(0.5);
    /* Animation wird durch JavaScript getriggert */
}

@keyframes emoji-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tutorial Slide Text Animation */
.tutorial-slide-text {
    opacity: 0;
    animation: slide-in-left 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tutorial Submit Form */
.tutorial-submit-form {
    margin: 0 auto 230px auto; /* zentriert */
    max-width: 800px;         /* Wunschbreite */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-submit-form .idea-input {
    pointer-events: none;
    min-height: 120px;
}

.tutorial-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tutorial-category-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: none;
}

.tutorial-category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tutorial-category-selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent);
}

.tutorial-pulse-submit {
    animation: pulse-glow 2s ease-in-out infinite;
    animation-delay: 3s;
}

/* Tutorial Stats */
.tutorial-stats-container {
    display: flex;
    gap: 1rem;
    margin: 0 0.25rem 250px 0.25rem;
}

.tutorial-stat-card {
    flex: 1;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.tutorial-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.tutorial-stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tutorial Navigation */
.tutorial-nav {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.tutorial-nav .nav-btn {
    pointer-events: none;
}

/* Progress Dots */
.onboarding-progress {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    margin-top: 20px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.progress-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent);
}


/* Navigation Buttons */
.onboarding-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 400px;
    display: flex;
    gap: 1rem;
}

.onboarding-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.onboarding-btn:active {
    transform: translateY(0);
}

.onboarding-btn.secondary {
    background: transparent;
    border: 2px solid var(--border);
    box-shadow: none;
}

.onboarding-btn.secondary:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Confetti Animation */
#confettiContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--offset-x, 0), var(--offset-y, 100vh)) rotate(var(--rotation, 720deg)) scale(0.3);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .app-logo {
        height: 28px;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .submit-section {
        padding: 1rem;
    }

    .stats-section {
        padding: 1rem;
    }

    .nav-icon {
        font-size: 1.3rem;
    }

    .nav-label {
        font-size: 0.7rem;
    }

    /* Keep filter row horizontal on mobile */
    .filter-row {
        flex-direction: row;
        gap: 0.5rem;
    }

    .category-dropdown {
        flex: 1;
        min-width: unset;
    }

    .filter-buttons {
        flex: 1;
    }

    .welcome-image {
        width: 220px;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .onboarding-bottom-nav-preview {
        gap: 1.5rem;
        padding: 0.75rem;
    }

    .onboarding-nav-item .nav-icon {
        font-size: 1.5rem;
    }

    .onboarding-progress {
        bottom: 220px;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .feature-visual {
        height: 150px;
    }

    .feature-icon {
        font-size: 4rem;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .onboarding-nav {
        width: calc(100% - 2rem);
    }

    .onboarding-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ========================================
   NEUE FEATURES: Reactions & Actions
   ======================================== */

/* Reactions Container */
.reactions-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.reactions-list {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Reaction Display Button (anklickbar) */
.reaction-display {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-display:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.reaction-display.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.reaction-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.reaction-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Reaction Toggle Button */
.reaction-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-toggle-btn.hidden {
    display: none;
}

.reaction-toggle-btn svg {
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.reaction-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

.reaction-toggle-btn:hover svg {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.reaction-toggle-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.reaction-toggle-btn:active svg {
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.8));
}

/* Reaction Picker */
.reaction-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: rgba(20, 25, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 0.6rem;
    display: inline-flex;
    gap: 0.3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    z-index: 100;
    align-items: center;
    width: fit-content;
    opacity: 1;
    white-space: nowrap;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reaction-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

.reaction-option.selected {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 0 2px var(--accent);
}

/* Action Buttons (Edit/Delete) */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Moderator Badge */
.mod-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.2rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.5rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    line-height: 1;
    height: 18px;
}

/* You Badge (eigene Ideen) */
.you-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.74rem 0.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    margin-left: 0.25rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    line-height: 1;
    height: 14px;
}

/* Edited Label */
.edited-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 0.25rem;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Context Menu (3-dots menu) */
.context-menu-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.context-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.context-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
    display: none;
}

.context-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.context-menu-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.context-menu-item.delete {
    color: #ef4444;
}

.context-menu-item.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Reaction Display Static (für "Meine Ideen") */
.reaction-display-static {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
}

.no-reactions {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.total-reactions {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    font-weight: 600;
}

/* Idea Footer Layout Update */
.idea-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive für neue Features */
@media (max-width: 600px) {
    .reaction-picker {
        right: 0;
        bottom: calc(100% + 8px);
    }

    .reaction-option {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .mod-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}
