/* ============================================
   ColdDMGenerator.com - Custom Styles
   ============================================ */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #18181b;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #61626b;
}

/* Platform button active state */
.platform-btn.active {
    border-color: #3384ff;
    background: rgba(51, 132, 255, 0.1);
    color: #fff;
}

/* Dashboard filter active state */
.dash-filter.active {
    border-color: #3384ff;
    background: rgba(51, 132, 255, 0.15);
    color: #fff;
}

/* Tone chip styling */
.tone-chip {
    transition: all 0.15s ease;
}
.tone-chip.casual { border-color: #22c55e; background: rgba(34, 197, 94, 0.08); color: #86efac; }
.tone-chip.professional { border-color: #3b82f6; background: rgba(59, 130, 246, 0.08); color: #93c5fd; }
.tone-chip.bold { border-color: #f97316; background: rgba(249, 115, 22, 0.08); color: #fdba74; }

/* Message card */
.message-card {
    transition: all 0.2s ease;
}
.message-card:hover {
    border-color: rgba(51, 132, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Bookmark button */
.bookmark-btn {
    transition: all 0.2s ease;
}
.bookmark-btn:hover {
    color: #facc15;
}
.bookmark-btn.active {
    color: #facc15;
}

/* Copy button animation */
.copy-btn {
    transition: all 0.15s ease;
}
.copy-btn:hover {
    background: rgba(51, 132, 255, 0.2);
    color: #93c5fd;
}
.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Generate button loading state */
.generate-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Toast animation */
#toast {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for message cards */
.message-card:nth-child(1) { animation-delay: 0ms; }
.message-card:nth-child(2) { animation-delay: 100ms; }
.message-card:nth-child(3) { animation-delay: 200ms; }

/* Typewriter effect for hero demo */
.typewriter-text {
    overflow: hidden;
}

/* Pulse glow for generate button */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(51, 132, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(51, 132, 255, 0.4); }
}
#generate-btn:not(.generate-loading) {
    animation: pulseGlow 3s infinite;
}

/* Modal backdrop */
#upgrade-modal > .absolute {
    transition: opacity 0.2s ease;
}

/* Platform icon colors */
.platform-icon-instagram { color: #e1306c; }
.platform-icon-linkedin { color: #0077b5; }
.platform-icon-twitter { color: #fff; }
.platform-icon-email { color: #ea4335; }

/* Responsive tweaks */
@media (max-width: 640px) {
    .platform-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Selection color */
::selection {
    background: rgba(51, 132, 255, 0.3);
    color: #fff;
}
