:root {
    --bg-color: #0f1115;
    --card-bg: #1e2128;
    --primary: #3b82f6; 
    --accent: #10b981;
    --danger: #ef4444; 
    --text-main: #ffffff;
    --text-secondary: #9ca3af;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--bg-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    overflow: hidden;
    position: relative;
}

/* HEADER */
.header {
    padding: 20px;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 10;
    cursor: pointer;
}
.user-stats { display: flex; justify-content: space-between; align-items: center; }
.credibility-rank { display: flex; flex-direction: column; }
.rank-title { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.rank-value { font-size: 18px; font-weight: 800; background: linear-gradient(90deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.veritas-wallet {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.progress-container { margin-top: 15px; background: #333; height: 4px; border-radius: 2px; width: 100%; position: relative; }
.progress-bar { background: var(--primary); height: 100%; width: 45%; border-radius: 2px; transition: width 0.5s ease; }
.progress-label { position: absolute; right: 0; top: -18px; font-size: 10px; color: var(--text-secondary); }

/* FEED */
.feed { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 100px; }

/* POSTS */
.post-card { background: var(--card-bg); border-radius: 20px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid #333; transition: transform 0.3s ease; }
.post-image { width: 100%; height: 200px; object-fit: cover; position: relative; display:flex; align-items:center; justify-content:center; }
.source-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); padding: 4px 10px; border-radius: 8px; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.post-content { padding: 15px; }
.post-headline { font-size: 18px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.4; }
.post-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.post-card:hover {transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.5); cursor: pointer;}
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #333;
}
.post-card:active {
    transform: scale(0.98); /* "Drück-Effekt" */
}


/* BUTTONS */
.actions { display: flex; gap: 10px; }
.btn { flex: 1; padding: 12px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; }
.btn-trust { background: rgba(59, 130, 246, 0.1); color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.3); }
.btn-trust:active { transform: scale(0.95); }
.btn-debunk { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-debunk:active { transform: scale(0.95); }

/* CROWD WISDOM */
.crowd-wisdom { font-size: 11px; color: var(--text-secondary); margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* BOTTOM NAV */
.bottom-nav {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    background: rgba(15,17,21,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    padding: 10px 0;
    z-index: 20;
}
.bottom-nav button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
}
.bottom-nav button.active { color: var(--primary); }
.bottom-nav span { font-size: 18px; margin-bottom: 2px; }

/* DASHBOARD */
.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.dashboard-box {
    background: var(--card-bg);
    width: 90%;
    padding: 20px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.dashboard-box h2 { font-size: 24px; margin-bottom: 10px; }
.dashboard-box p { font-size: 16px; color: var(--text-secondary); }
.progress-bar-dash { height: 10px; background: var(--primary); border-radius: 5px; width: 0%; margin-top: 10px; transition: width 1s ease; }
.back-btn { margin-top: 30px; padding: 12px 20px; border-radius: 12px; border: none; background: var(--primary); color: #fff; font-weight: bold; cursor: pointer; }

/* REWARD OVERLAY */
.reward-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(16, 185, 129, 0.95);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    z-index: 100;
    width: 80%;
    backdrop-filter: blur(20px);
    border: 1px solid #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}
.reward-overlay.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.reward-amount {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.reward-text {
    color: #fff;
    font-size: 16px;
}

/* ==========================
   Kommentare & Replies
========================== */
.comment {
    display: flex;
    margin-top: 10px;
}
.comment.reply {
    margin-left: 40px;
    margin-top: 5px;
}
.comment .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.comment-body {
    flex: 1;
}
.comment-body p {
    margin: 0 0 5px 0;
}
.reply-btn {
    font-size: 12px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}
.reply-btn:hover { text-decoration: underline; }

.comment.reply-target {
    border-left: 3px solid var(--primary);
    background-color: rgba(59, 130, 246, 0.1); /* sanftes Highlight */
    padding-left: 7px; /* damit Border nicht stört */
}

