/* Custom styles for BrightMoon Capital */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    --background: #ffffff;
    --foreground: #171717;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
}

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

/* ============================================
   Prose Styles for Blog Content
   ============================================ */
.prose {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose.prose-lg {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings */
.prose h1 {
    color: #111827 !important;
    font-weight: 800 !important;
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

.prose h2 {
    color: #1e40af !important;
    font-weight: 700 !important;
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #dbeafe !important;
}

.prose h3 {
    color: #1e3a8a !important;
    font-weight: 600 !important;
    font-size: 1.375rem !important;
    line-height: 1.4 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 0.75rem !important;
    border-left: 4px solid #3b82f6 !important;
}

.prose h4 {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.prose h5,
.prose h6 {
    color: #111827 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Paragraphs */
.prose p {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    color: #374151 !important;
}

.prose p:first-child {
    margin-top: 0 !important;
}

/* Links */
.prose a {
    color: #2563eb !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: color 0.2s !important;
}

.prose a:hover {
    color: #1d4ed8 !important;
}

/* Bold and emphasis */
.prose strong {
    font-weight: 700 !important;
    color: #111827 !important;
}

.prose em {
    font-style: italic !important;
}

/* Code */
.prose code {
    background-color: #fef3c7 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875em !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}

.prose pre {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    padding: 1.5rem !important;
    border-radius: 0.75rem !important;
    overflow-x: auto !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
}

.prose pre code {
    background-color: transparent !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 0.875rem !important;
    border: none !important;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #3b82f6 !important;
    padding-left: 1.5rem !important;
    margin: 1.5rem 0 !important;
    font-style: italic !important;
    color: #4b5563 !important;
    background-color: #f0f9ff !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
}

/* Unordered Lists */
.prose ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin: 1.5rem 0 !important;
    background-color: #f8fafc !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1rem !important;
    border-radius: 0.5rem !important;
    border-left: 4px solid #3b82f6 !important;
}

.prose ul ul {
    list-style-type: circle !important;
    margin: 0.5rem 0 !important;
    background-color: transparent !important;
    border-left: none !important;
    padding: 0 !important;
    padding-left: 1.5rem !important;
}

.prose ul li {
    margin: 0.5rem 0 !important;
    padding-left: 0.5rem !important;
    color: #374151 !important;
}

.prose ul li::marker {
    color: #3b82f6 !important;
}

/* Ordered Lists */
.prose ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin: 1.5rem 0 !important;
    background-color: #eff6ff !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1rem !important;
    border-radius: 0.5rem !important;
    border-left: 4px solid #1e40af !important;
}

.prose ol li {
    margin: 0.75rem 0 !important;
    padding-left: 0.5rem !important;
    color: #374151 !important;
}

.prose ol li::marker {
    color: #1e40af !important;
    font-weight: 700 !important;
}

/* Images */
.prose img {
    border-radius: 0.75rem;
    margin: 2rem auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Horizontal Rule */
.prose hr {
    border: 0;
    border-top: 2px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.prose tr:nth-child(even) {
    background-color: #f9fafb;
}

/* ============================================
   Utility Classes
   ============================================ */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ============================================
   Carousel Styles
   ============================================ */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Chart Styles
   ============================================ */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Form Styles
   ============================================ */
.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================================
   Hero Section Styles (Standardized)
   ============================================ */
.hero-section {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Product Card Color Classes
   ============================================ */
/* Blue */
.product-card-blue {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}
.product-card-blue .product-icon { color: #2563eb; }
.product-card-blue .product-title { color: #2563eb; }
.product-card-blue .product-badge {
    color: #2563eb;
    border-color: #bfdbfe;
}
.product-card-blue .product-badge:hover { background-color: #eff6ff; }

/* Green */
.product-card-green {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}
.product-card-green .product-icon { color: #16a34a; }
.product-card-green .product-title { color: #16a34a; }
.product-card-green .product-badge {
    color: #16a34a;
    border-color: #bbf7d0;
}
.product-card-green .product-badge:hover { background-color: #f0fdf4; }

/* Purple */
.product-card-purple {
    background-color: #faf5ff;
    border-color: #e9d5ff;
}
.product-card-purple .product-icon { color: #9333ea; }
.product-card-purple .product-title { color: #9333ea; }
.product-card-purple .product-badge {
    color: #9333ea;
    border-color: #e9d5ff;
}
.product-card-purple .product-badge:hover { background-color: #faf5ff; }

/* Red */
.product-card-red {
    background-color: #fef2f2;
    border-color: #fecaca;
}
.product-card-red .product-icon { color: #dc2626; }
.product-card-red .product-title { color: #dc2626; }
.product-card-red .product-badge {
    color: #dc2626;
    border-color: #fecaca;
}
.product-card-red .product-badge:hover { background-color: #fef2f2; }

/* Orange */
.product-card-orange {
    background-color: #fff7ed;
    border-color: #fed7aa;
}
.product-card-orange .product-icon { color: #ea580c; }
.product-card-orange .product-title { color: #ea580c; }
.product-card-orange .product-badge {
    color: #ea580c;
    border-color: #fed7aa;
}
.product-card-orange .product-badge:hover { background-color: #fff7ed; }

/* Indigo */
.product-card-indigo {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}
.product-card-indigo .product-icon { color: #4f46e5; }
.product-card-indigo .product-title { color: #4f46e5; }
.product-card-indigo .product-badge {
    color: #4f46e5;
    border-color: #c7d2fe;
}
.product-card-indigo .product-badge:hover { background-color: #eef2ff; }

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}
