@font-face {
    font-family: 'RTL United Text';
    src: url('RTLUnitedText-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'RTL United Text';
    src: url('RTLUnitedText-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'RTL United Text';
    src: url('RTLUnitedText-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-dark: #090a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --primary-orange: #ff5a00; /* RTL Spendenmarathon Orange */
    --primary-orange-glow: rgba(255, 90, 0, 0.4);
    --highlight-bg: rgba(255, 90, 0, 0.15);
    --highlight-border: rgba(255, 90, 0, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    
    --glass-blur: blur(24px);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'RTL United Text', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Ambient Glow */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-orange-glow) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: pulseGlow 10s infinite alternate;
}

.top-left {
    top: -20vw;
    left: -20vw;
}

.bottom-right {
    bottom: -20vw;
    right: -20vw;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.7; }
}

/* Dashboard Container */
.dashboard-container {
    width: 95%;
    max-width: 1400px;
    height: 90%;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 16px;
    z-index: 1;
}

.donations-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.chat-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Header Section */
.header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Total Sum Card */
.total-sum-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,90,0,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--highlight-border);
}

.sum-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.sum-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-shadow: 0 0 40px var(--primary-orange-glow);
    font-variant-numeric: tabular-nums;
}

.currency {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-orange);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Lists */
.donor-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: var(--transition);
}

.new-item {
    animation: slideInTop 0.5s ease forwards, tempHighlight 10s ease forwards;
}

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

@keyframes tempHighlight {
    0% { background: var(--highlight-bg); border-color: var(--highlight-border); }
    90% { background: var(--highlight-bg); border-color: var(--highlight-border); }
    100% { background: rgba(255, 255, 255, 0.02); border-color: transparent; }
}

.donor-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.donor-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.donor-name-row {
    display: flex;
    align-items: center;
}

.donor-comment {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
    word-break: break-word;
    opacity: 0.9;
    font-style: italic;
}

.donor-rank {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-orange);
    min-width: 24px;
}

.donor-name {
    font-size: 1.1rem;
    font-weight: 400;
}

.donor-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-right: 8px;
}

.donor-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Main Content (Latest Donations) */
.main-content {
    flex-grow: 1;
    min-height: 0;
}

.latest-donors-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.list-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
}

/* Custom Scrollbar */
.list-wrapper::-webkit-scrollbar {
    width: 6px;
}
.list-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.list-wrapper::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}
.list-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Highlighted Item (> 100€) */
.donor-item.highlighted {
    background: var(--highlight-bg);
    border: 1px solid var(--highlight-border);
    box-shadow: 0 4px 20px rgba(255, 90, 0, 0.15);
}

.donor-item.highlighted .donor-name {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Add a badge for big donations */
.badge {
    background: var(--primary-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chat Styles */
.chat-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 8px;
    animation: slideInTop 0.3s ease forwards;
}

.chat-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.chat-author {
    font-weight: 700;
    color: var(--primary-orange);
}

.chat-platform {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
}

.platform-youtube {
    background: rgba(255, 0, 0, 0.2);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.platform-twitch {
    background: rgba(145, 70, 255, 0.2);
    color: #9146FF;
    border: 1px solid rgba(145, 70, 255, 0.5);
}

.chat-text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-main);
    word-break: break-word;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .sum-value {
        font-size: 3rem;
    }
    
    .header {
        height: auto;
    }
}

.chat-emote {
    height: 1.5rem;
    vertical-align: middle;
    margin: -0.2rem 0.1rem;
}
