@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-fast {
    animation: spin 0.8s linear infinite;
}

.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* Fix browser autofill background glitch by using a massive transparent transition */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #111827 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

::selection {
    background-color: rgba(255, 69, 0, 0.2);
    color: inherit;
}

/* Ensure glass-panel still works if not in header */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-panel {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.font-bold {
    font-weight: 700 !important;
}

/* ── Modern list styling for rich content sections ── */
.rich-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rich-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.625rem;
    padding: 0.125rem 0;
    line-height: 1.55;
}

.rich-content li::before {
    content: '';
    display: block;
    width: 6px;
    min-width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--brand);
    margin-top: 0.45rem;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Blog post prose content */
.prose-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prose-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 0.1rem 0;
    line-height: 1.65;
}

.prose-content li::before {
    content: '';
    display: block;
    width: 6px;
    min-width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--brand);
    margin-top: 0.55rem;
    flex-shrink: 0;
    opacity: 0.8;
}

/* ── Shimmer Animation for Thumbnails ── */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    display: block;
    position: relative;
    animation: shimmer 2s infinite linear;
}

.dark .shimmer {
    background: #1f2937;
    background-image: linear-gradient(to right, #1f2937 0%, #374151 20%, #1f2937 40%, #1f2937 100%);
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-thumb {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.loading-thumb.loaded {
    opacity: 1;
}

/* Rich Content Styling (Sub-pages) */
.rich-content ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.rich-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem; /* Standardized gap */
    position: relative;
    padding-left: 0 !important;
    margin-bottom: 0.75rem;
}

/* Remove default bullets if any specifically for rich-content */
.rich-content li::before {
    content: none !important;
    display: none !important;
}

/* Premium Feature Cards */
.feature-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.25rem;
    padding: 1.5rem !important; /* Increased padding (p-6 equivalent) */
    background: rgba(249, 250, 251, 0.5); /* gray-50/50 */
    border: 1px solid rgba(243, 244, 246, 1); /* gray-100 */
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.dark .feature-card {
    background: rgba(31, 41, 55, 0.4);
    border-color: rgba(55, 65, 81, 0.5);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.dark .feature-card:hover {
    background: rgba(31, 41, 55, 0.6);
}

/* Precise Icon Alignment for first line of text */
.feature-card svg, 
.rich-content li svg {
    margin-top: 0.15rem; /* Optical alignment with text-base line height */
    flex-shrink: 0;
}

