/* NF - Common Styles */

:root {
    --color-main-green: #0f9d58;
    --color-main-green-dark: #0c7a47;
    --color-main-green-light: #42c27b;
    --color-page-bg-soft-light: #e8ffe8;
    --color-particle: rgba(15, 157, 88, 0.25);
}

body {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8e6c4 50%, #9fd4ab 100%);
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.dark body {
    color: #e2e8f0;
}

/* Typography - Best Practices */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* InfoBox styling */
#infoBox strong {
    font-weight: 600;
    color: var(--color-main-green);
}

.dark #infoBox strong {
    color: var(--color-main-green-light);
}

/* Custom green color overrides */
.text-green-600:not(.gradient-text) {
    color: var(--color-main-green) !important;
}

.bg-green-600:not(.gradient-button) {
    background-color: var(--color-main-green) !important;
}

.hover\:bg-green-700:not(.gradient-button):hover {
    background-color: var(--color-main-green-dark) !important;
}

.focus\:ring-green-500:focus {
    --tw-ring-color: var(--color-main-green) !important;
}

.text-green-700:not(.gradient-text) {
    color: var(--color-main-green) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    will-change: opacity, transform;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-up {
    animation: scaleUp 0.6s ease-out forwards;
    will-change: opacity, transform;
}

/* Particle Canvas */
#particleCanvas {
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Changelog specific styles */
.changelog-content h4 {
    color: #1f2937;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.dark .changelog-content h4 {
    color: #f3f4f6;
}

.changelog-content hr {
    border: 0;
    height: 1px;
    background-color: #e5e7eb;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.dark .changelog-content hr {
    background-color: #374151;
}

.changelog-content ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.changelog-content li {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.dark .changelog-content li {
    color: #d1d5db;
}

.changelog-content sup {
    color: #4b5563;
    font-size: 0.75em;
    line-height: 0;
    vertical-align: super;
}

.dark .changelog-content sup {
    color: #d1d5db;
}

.changelog-content img {
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
    max-width: 100%;
    height: auto;
}

.dark .changelog-content img {
    border: 1px solid #4b5563;
}
