/*
Theme Name: Snippets.cc
Theme URI: https://snippets.cc
Author: Snippets.cc
Author URI: https://snippets.cc
Description: Transform podcasts into viral social posts in 30 seconds. AI-powered content analysis and snippet generation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snippets-cc
Tags: custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready

Snippets.cc - One Video. Only Signal. Ready for Sharing.
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Dark mode styles - manually defined for dynamically injected content */
html.dark .dark\:bg-slate-800,
html.dark *[class*="dark:bg-slate-800"] {
    background-color: #1e293b !important;
}

html.dark .dark\:bg-slate-900,
html.dark *[class*="dark:bg-slate-900"] {
    background-color: #0f172a !important;
}

html.dark .dark\:bg-slate-900\/50,
html.dark *[class*="dark:bg-slate-900/50"] {
    background-color: rgba(15, 23, 42, 0.5) !important;
}

html.dark .dark\:bg-slate-800\/50,
html.dark *[class*="dark:bg-slate-800/50"] {
    background-color: rgba(30, 41, 59, 0.5) !important;
}

html.dark .dark\:border-slate-700,
html.dark *[class*="dark:border-slate-700"] {
    border-color: #334155 !important;
}

html.dark .dark\:border-slate-800,
html.dark *[class*="dark:border-slate-800"] {
    border-color: #1e293b !important;
}

html.dark .dark\:text-white,
html.dark *[class*="dark:text-white"] {
    color: #ffffff !important;
}

html.dark .dark\:text-slate-100,
html.dark *[class*="dark:text-slate-100"] {
    color: #f1f5f9 !important;
}

/* Specific rule for textarea in dark mode */
html.dark #transcript-input {
    color: #f1f5f9 !important;
    background-color: rgba(3, 6, 23, 0.5) !important;
}


/* Focus border colors - exact match from Snippets app */
.focus\:border-indigo-500:focus {
    border-color: rgb(99 102 241);
}

.focus\:border-indigo-500\/50:focus {
    border-color: rgb(99 102 241 / 0.5);
}

/* Dark mode focus border - ensure it overrides */
html.dark .dark\:focus\:border-indigo-500\/50:focus,
html.dark *[class*="dark:focus:border-indigo-500/50"]:focus {
    border-color: rgb(99 102 241 / 0.5) !important;
}

html.dark .dark\:text-slate-300,
html.dark *[class*="dark:text-slate-300"] {
    color: #cbd5e1 !important;
}

html.dark .dark\:text-slate-400,
html.dark *[class*="dark:text-slate-400"] {
    color: #94a3b8 !important;
}

html.dark .dark\:text-slate-200,
html.dark *[class*="dark:text-slate-200"] {
    color: #e2e8f0 !important;
}

html.dark .dark\:text-slate-950,
html.dark *[class*="dark:text-slate-950"] {
    color: #020617 !important;
}

html.dark .dark\:divide-slate-700 > * + *,
html.dark *[class*="dark:divide-slate-700"] > * + * {
    border-color: #334155 !important;
}

html.dark .dark\:hover\:bg-slate-700:hover,
html.dark *[class*="dark:hover:bg-slate-700"]:hover {
    background-color: #334155 !important;
}

html.dark .dark\:hover\:bg-slate-700\/50:hover,
html.dark *[class*="dark:hover:bg-slate-700/50"]:hover {
    background-color: rgba(51, 65, 85, 0.5) !important;
}

html.dark .dark\:text-indigo-400,
html.dark *[class*="dark:text-indigo-400"] {
    color: #818cf8 !important;
}

html.dark .dark\:bg-slate-700\/50,
html.dark *[class*="dark:bg-slate-700/50"] {
    background-color: rgba(51, 65, 85, 0.5) !important;
}

html.dark .dark\:text-white,
html.dark *[class*="dark:text-white"] {
    color: #ffffff !important;
}

html.dark .dark\:bg-white,
html.dark *[class*="dark:bg-white"] {
    background-color: #ffffff !important;
}

html.dark .dark\:text-slate-900,
html.dark *[class*="dark:text-slate-900"] {
    color: #0f172a !important;
}

html.dark .dark\:hover\:bg-indigo-600:hover,
html.dark *[class*="dark:hover:bg-indigo-600"]:hover {
    background-color: #4f46e5 !important;
}

html.dark .dark\:hover\:text-white:hover,
html.dark *[class*="dark:hover:text-white"]:hover {
    color: #ffffff !important;
}

/* Indigo color variants for dark mode */
html.dark .dark\:bg-indigo-500\/5,
html.dark *[class*="dark:bg-indigo-500/5"] {
    background-color: rgba(99, 102, 241, 0.05) !important;
}

html.dark .dark\:border-indigo-500\/20,
html.dark *[class*="dark:border-indigo-500/20"] {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

html.dark .dark\:text-indigo-400,
html.dark *[class*="dark:text-indigo-400"] {
    color: #818cf8 !important;
}

html.dark .dark\:text-indigo-300,
html.dark *[class*="dark:text-indigo-300"] {
    color: #a5b4fc !important;
}

/* Additional slate colors for proper light/dark mode */
html.dark .dark\:bg-slate-950\/50,
html.dark *[class*="dark:bg-slate-950/50"] {
    background-color: rgba(2, 6, 23, 0.5) !important;
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

.slide-in-from-top-4 {
    animation: slideInFromTop 0.7s ease-out;
}

.slide-in-from-bottom-4 {
    animation: slideInFromBottom 1s ease-out;
}

.slide-in-from-bottom-8 {
    animation: slideInFromBottom 1s ease-out;
}

.duration-700 {
    animation-duration: 700ms;
}

.duration-1000 {
    animation-duration: 1000ms;
}

/* Error message animation styles */
#error-message {
    position: relative;
    overflow: hidden;
}

#error-message::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    animation: error-progress-line 5s linear forwards;
}

#error-message.error-vanishing {
    animation: error-fade-out 0.5s ease-out forwards;
}

@keyframes error-progress-line {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes error-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Hide emotion badge on mobile to make room for Text/Image buttons */
@media (max-width: 768px) {
    .badge-emotion-fix {
        display: none !important;
    }
}

