/* 
 * Prompt Paglu - Custom Styles & Modern Aesthetic
 * Enhances Tailwind with sleek dark mode, glassmorphism, glowing badges, and micro-interactions
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --card-gradient: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    --glow-color: rgba(139, 92, 246, 0.35);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0b0f19;
    color: #f1f5f9;
    overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.25);
    transform: translateY(-3px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gradients & Glow */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: var(--primary-gradient);
}

.glow-btn {
    position: relative;
    transition: all 0.3s ease;
}

.glow-btn:hover {
    box-shadow: 0 0 25px var(--glow-color);
}

/* Prompt Card Image Styling */
.prompt-card-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-card:hover .prompt-card-img {
    transform: scale(1.05);
}

/* AI Prompt Code Box */
.prompt-box {
    background: #0d1322;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Toast Notifications */
#toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#toast-notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Admin Sidebar active styles */
.admin-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-left: 3px solid #6366f1;
}

/* Line Clamp fallbacks */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Form Controls - Dark Mode Fillable Inputs with High Contrast Visible Text
   ========================================================================== */

/* Universal form controls styling for Admin and Frontend */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    background-color: #0d1527 !important;
    color: #ffffff !important;
    border: 1px solid #2d3b55 !important;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Hover state */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
    border-color: #475569 !important;
    background-color: #111c33 !important;
}

/* Focus state with glowing primary border */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    background-color: #080d1a !important;
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
    outline: none !important;
}

/* Dropdown select options styling */
select option {
    background-color: #0d1527 !important;
    color: #ffffff !important;
    padding: 10px 14px;
}

/* Placeholder text styling */
input::placeholder,
textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Browser autofill background override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0d1527 inset !important;
    border: 1px solid #2d3b55 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Disabled input state */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #1e293b !important;
    color: #64748b !important;
    border-color: #334155 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==========================================================================
   Tailwind Slate Color Palette Utilities (v3 Slate additions)
   ========================================================================== */

/* Backgrounds */
.bg-slate-50  { background-color: #f8fafc !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-slate-200 { background-color: #e2e8f0 !important; }
.bg-slate-300 { background-color: #cbd5e1 !important; }
.bg-slate-400 { background-color: #94a3b8 !important; }
.bg-slate-500 { background-color: #64748b !important; }
.bg-slate-600 { background-color: #475569 !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-950 { background-color: #0b0f19 !important; }

/* Backgrounds with Opacities */
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9) !important; }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8) !important; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6) !important; }
.bg-slate-950\/90 { background-color: rgba(11, 15, 25, 0.9) !important; }
.bg-slate-950\/80 { background-color: rgba(11, 15, 25, 0.8) !important; }
.bg-slate-950\/70 { background-color: rgba(11, 15, 25, 0.7) !important; }
.bg-slate-950\/60 { background-color: rgba(11, 15, 25, 0.6) !important; }
.bg-slate-950\/50 { background-color: rgba(11, 15, 25, 0.5) !important; }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8) !important; }
.bg-slate-800\/60 { background-color: rgba(30, 41, 59, 0.6) !important; }

/* Text Colors */
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }

/* Border Colors */
.border-slate-500 { border-color: #64748b !important; }
.border-slate-600 { border-color: #475569 !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-800 { border-color: #1e293b !important; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8) !important; }
.border-slate-900 { border-color: #0f172a !important; }

/* ==========================================================================
   Navigation Dropdown Menu (Categories)
   ========================================================================== */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Open state via JS click ONLY */
.dropdown-menu.is-open {
    display: block !important;
}

.dropdown-container.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Absolute defense: Under no condition can hover expand the menu if not .is-open */
.dropdown-container:hover .dropdown-menu:not(.is-open),
.dropdown-container:focus-within .dropdown-menu:not(.is-open) {
    display: none !important;
}

/* ==========================================================================
   Prompt Like & Dislike Reaction Buttons
   ========================================================================== */
.btn-react-prompt {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

/* Active Liked State */
.btn-react-prompt.is-liked {
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    background-color: rgba(6, 78, 59, 0.4) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.btn-react-prompt.is-liked svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Active Disliked State */
.btn-react-prompt.is-disliked {
    color: #fb7185 !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
    background-color: rgba(136, 19, 55, 0.4) !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.btn-react-prompt.is-disliked svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Micro-Bounce Animation when voted */
@keyframes reactionPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35) rotate(-5deg); }
    70% { transform: scale(0.92) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.btn-react-prompt.animate-pop svg {
    animation: reactionPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Social Post & Reel Creator Studio Styles
   ========================================================================== */
.platform-tab-btn {
    background-color: rgba(11, 15, 25, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.platform-tab-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

/* Instagram Active State */
.platform-tab-btn[data-platform="instagram"].active {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.25) 0%, rgba(131, 58, 180, 0.25) 100%) !important;
    border-color: rgba(225, 48, 108, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

/* Facebook Active State */
.platform-tab-btn[data-platform="facebook"].active {
    background: rgba(24, 119, 242, 0.2) !important;
    border-color: rgba(24, 119, 242, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.3);
}

/* Both Active State */
.platform-tab-btn[data-platform="both"].active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%) !important;
    border-color: rgba(168, 85, 247, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Format Tabs */
.format-tab-btn {
    background-color: rgba(11, 15, 25, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.format-tab-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

.format-tab-btn.active {
    background: rgba(124, 58, 237, 0.25) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* Creator Modal Animation */
#creator-modal:not(.hidden) > div:last-child > div {
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   Round Social Share Buttons (Threads, Pinterest, TikTok, WhatsApp, X, FB, etc.)
   ========================================================================== */
.share-btn-round {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    user-select: none;
}

@media (max-width: 640px) {
    .share-btn-round {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.share-btn-round:hover {
    transform: translateY(-2.5px) scale(1.08);
}

.share-btn-round:active {
    transform: translateY(0) scale(0.95);
}

/* Threads */
.share-btn-threads {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.share-btn-threads:hover {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Pinterest */
.share-btn-pinterest {
    background: #E60023;
    color: #ffffff;
    border: 1px solid rgba(230, 0, 35, 0.5);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.35);
}
.share-btn-pinterest:hover {
    background: #d0001f;
    border-color: #ff3850;
    box-shadow: 0 0 18px rgba(230, 0, 35, 0.6);
    color: #ffffff;
}

/* TikTok */
.share-btn-tiktok {
    background: #010101;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.share-btn-tiktok:hover {
    border-color: #00f2fe;
    box-shadow: -2px -2px 14px rgba(0, 242, 254, 0.45), 2px 2px 14px rgba(254, 9, 121, 0.45);
    color: #00f2fe;
}

/* WhatsApp */
.share-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: 1px solid rgba(37, 211, 102, 0.45);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.share-btn-whatsapp:hover {
    background: #20ba5a;
    border-color: #55ef89;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* Twitter / X */
.share-btn-x {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.share-btn-x:hover {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Facebook */
.share-btn-facebook {
    background: #1877F2;
    color: #ffffff;
    border: 1px solid rgba(24, 119, 242, 0.45);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}
.share-btn-facebook:hover {
    background: #1466d3;
    border-color: #4b94f7;
    box-shadow: 0 0 18px rgba(24, 119, 242, 0.6);
    color: #ffffff;
}

/* Telegram */
.share-btn-telegram {
    background: #229ED9;
    color: #ffffff;
    border: 1px solid rgba(34, 158, 217, 0.45);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
}
.share-btn-telegram:hover {
    background: #1e8ec3;
    border-color: #57b7e5;
    box-shadow: 0 0 18px rgba(34, 158, 217, 0.6);
    color: #ffffff;
}

/* Copy Link */
.share-btn-copy {
    background: #6366f1;
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.share-btn-copy:hover {
    background: #4f46e5;
    border-color: #818cf8;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.6);
    color: #ffffff;
}





