:root {
    --berry-purple: #8B5CF6;
    --berry-pink: #EC4899;
    --berry-green: #10B981;
    --berry-dark: #1a1a2e;
    --berry-darker: #0f0f1a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Light/Dark modes */
.light-mode {
    background: linear-gradient(135deg, #fdf4ff 0%, #fce7f3 50%, #ede9fe 100%);
    color: #1f2937;
}

.dark-mode {
    background: linear-gradient(135deg, var(--berry-darker) 0%, #16082c 50%, #0f172a 100%);
    color: #f3f4f6;
}

/* Header */
.header-gradient {
    background: linear-gradient(135deg, var(--berry-purple) 0%, var(--berry-pink) 100%);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.3);
}

/* Berry animations */
.berry-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.berry-spin {
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tweet composer */
.tweet-composer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark-mode .tweet-composer {
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.avatar-berry {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--berry-pink), var(--berry-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tweet-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    color: inherit;
}

.tweet-input::placeholder {
    color: #9ca3af;
}

.char-count {
    font-size: 14px;
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
}

.tweet-button {
    background: linear-gradient(135deg, var(--berry-purple), var(--berry-pink));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.tweet-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.tweet-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Suggestions */
.suggestion-chip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--berry-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .suggestion-chip {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.suggestion-chip:hover:not(:disabled) {
    background: var(--berry-purple);
    color: white;
    transform: scale(1.05);
}

/* Netflix toggle */
.netflix-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.netflix-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Building section */
.building-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.dark-mode .building-card {
    background: rgba(30, 30, 50, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.progress-bar {
    height: 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--berry-purple), var(--berry-pink));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.building-message {
    font-size: 18px;
    font-weight: 500;
    color: var(--berry-purple);
}

/* App card */
.app-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: slideUp 0.5s ease-out;
}

.dark-mode .app-card {
    background: rgba(30, 30, 50, 0.95);
}

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

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.phone-frame {
    background: #1f2937;
    border-radius: 36px;
    padding: 12px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: linear-gradient(135deg, #fdf4ff, #ede9fe);
    border-radius: 24px;
    padding: 32px 16px;
    min-height: 200px;
}

.app-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-url {
    color: var(--berry-purple);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-decoration: none;
}

.build-time {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 8px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--berry-purple);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .share-btn {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.share-btn:hover {
    background: var(--berry-purple);
    color: white;
}

/* Activity feed */
.activity-feed {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.dark-mode .activity-feed {
    background: rgba(30, 30, 50, 0.7);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--berry-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 16px;
    animation: fadeIn 0.5s ease-out backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--berry-pink), var(--berry-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Footer */
.footer-section {
    background: rgba(139, 92, 246, 0.05);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.stats-counter {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.footer-link {
    color: var(--berry-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--berry-pink);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti-particle {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .header-gradient {
        padding: 16px;
    }
    
    .tweet-composer {
        padding: 16px;
    }
    
    .tweet-input {
        font-size: 16px;
    }
    
    .building-card {
        padding: 24px;
    }
    
    .phone-frame {
        max-width: 240px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}