/* BabyTrumpTweets Main Stylesheet */

:root {
    /* Colors */
    --color-primary: #ff6b35;
    --color-secondary: #ffc107;
    --color-background: #fff9f0;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #fff;
    --color-border: #ddd;

    /* Mood Colors */
    --mood-smug: #9c27b0;
    --mood-rage: #f44336;
    --mood-cry: #2196f3;
    --mood-gloat: #ffc107;
    --mood-snide: #607d8b;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Ad rail width */
    --ad-rail-width: 160px;
}

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

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ad Rails */
.ad-rail {
    position: fixed;
    top: 0;
    width: var(--ad-rail-width);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    z-index: 100;
}

.ad-rail-left {
    left: 0;
}

.ad-rail-right {
    right: 0;
}

.ad-placeholder {
    width: 120px;
    height: 600px;
    background: #e0e0e0;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    padding-left: calc(var(--ad-rail-width) + var(--spacing-lg));
    padding-right: calc(var(--ad-rail-width) + var(--spacing-lg));
    padding-bottom: 100px;
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.site-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-shadow: 2px 2px 0 var(--color-secondary);
}

.tagline {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

/* Baby Container */
.baby-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.baby-animation {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baby-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffcc80, #ffab40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-baby {
    font-size: 8rem;
}

/* Speech Bubble */
.speech-bubble {
    position: relative;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 20px;
    padding: var(--spacing-lg);
    max-width: 600px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 15px solid transparent;
    border-bottom-color: var(--color-primary);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-bottom-color: var(--color-white);
}

.post-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Mood Indicator */
.mood-indicator {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.mood-label {
    font-size: 1rem;
    margin-right: var(--spacing-sm);
}

.mood-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-weight: bold;
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.875rem;
}

.mood-smug { background: var(--mood-smug); }
.mood-rage { background: var(--mood-rage); }
.mood-cry { background: var(--mood-cry); }
.mood-gloat { background: var(--mood-gloat); color: var(--color-text); }
.mood-snide { background: var(--mood-snide); }

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: var(--ad-rail-width);
    right: var(--ad-rail-width);
    background: var(--color-white);
    border-top: 2px solid var(--color-border);
    padding: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    z-index: 50;
}

.donate-button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.history-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.history-link:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .ad-rail {
        display: none;
    }

    .main-content {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .sticky-footer {
        left: 0;
        right: 0;
    }
}

@media (max-width: 600px) {
    .site-header h1 {
        font-size: 1.75rem;
    }

    .baby-animation {
        width: 200px;
        height: 200px;
    }

    .emoji-baby {
        font-size: 5rem;
    }

    .speech-bubble {
        padding: var(--spacing-md);
    }

    .post-text {
        font-size: 1rem;
    }

    .stats-bar {
        gap: var(--spacing-lg);
    }
}

/* Animation classes */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.pulse {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
