/* ==========================================================================
   ToolHive Theme & Design System Stylesheet
   Modern Glassmorphism, Micro-Interactions, and Visual Tokens
   ========================================================================== */

/* Font imports handled via preconnect in HTML head */

/* Custom Smooth Transitions */
*, *::before, *::after {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.6);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.8);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
}

.dark .glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Gradient Text Utilities */
.gradient-text-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .gradient-text-primary {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtle Shimmer Animation */
@keyframes subtle-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: subtle-shimmer 3s infinite;
}

/* Ad Slot Container Placeholder */
.ad-slot-container {
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark .ad-slot-container {
    border: 1px dashed rgba(71, 85, 105, 0.5);
    background: rgba(15, 23, 42, 0.4);
}

.ad-slot-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

/* ==========================================================================
   Blog & Content Rich Typography Styles
   ========================================================================== */
.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.prose h2 {
    font-size: 1.65rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .prose h2 {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.prose h3 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.35rem;
}

.prose ul, .prose ol {
    margin-top: 1rem;
    margin-bottom: 1.35rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
}

.dark .prose blockquote {
    background: rgba(99, 102, 241, 0.12);
    border-left-color: #818cf8;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    font-weight: 600;
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    background-color: rgba(148, 163, 184, 0.15);
    color: #4f46e5;
}

.dark .prose code {
    background-color: rgba(30, 41, 59, 0.8);
    color: #a5b4fc;
}

.prose pre {
    background-color: #0f172a !important;
    color: #e2e8f0;
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.prose pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
}

.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.75rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dark .prose table {
    border-color: rgba(51, 65, 85, 0.6);
}

.prose th {
    background-color: rgba(241, 245, 249, 0.9);
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: left;
    border-bottom: 2px solid rgba(203, 213, 225, 0.8);
}

.dark .prose th {
    background-color: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(71, 85, 105, 0.8);
}

.prose td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.dark .prose td {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.prose tr:last-child td {
    border-bottom: none;
}

