/* * This is the Custom CSS from the 'insights_plan_en.md' 
 * It overrides the base styles to match the Navichain brand.
 */

:root {
    /* Navichain Brand Colors */
    --navichain-green: #10B981; 
    --navichain-dark-green: #059669;
    
    /* Override theme's base colors */
    --primary: var(--navichain-green);
    --link-color: var(--navichain-dark-green);
    
    /* Text colors from your main site */
    --primary-text: #111827; 
    --secondary-text: #374151;
    
    /* Font from your main site */
    --code-font-family: 'Inter', sans-serif;
    --body-font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

/* Apply the font to the whole page */
body {
    font-family: var(--body-font-family);
    color: var(--primary-text);
    background-color: #f9fafb; /* A very light gray, similar to PaperMod's bg */
}

/* Header & Menu Styling */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header .logo a {
    font-weight: 700;
    font-size: 22px;
    color: var(--navichain-green); /* Make the logo text green */
    text-decoration: none;
}

.menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: var(--primary-text);
}

/* Special style for the "To Navichain.se" link */
.navichain-main-link a {
    background: var(--navichain-green);
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.navichain-main-link a:hover {
    background: var(--navichain-dark-green);
}

/* Homepage Intro Section */
.home-info {
    padding-top: 4rem;
    padding-bottom: 2rem; /* Reduced padding to make room for search */
}

.home-info h1 {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.home-info .content {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-text);
    line-height: 1.7;
}

/* Smart Search Section */
.smart-search {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 3rem;
}

.smart-search h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.smart-search p {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.smart-search-form {
    display: flex;
    gap: 0.5rem;
}

.smart-search-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}
.smart-search-input:focus {
    outline: 2px solid var(--navichain-green);
    border-color: var(--navichain-green);
}

.smart-search-button {
    background: var(--navichain-green);
    color: white !important;
    border: none;
    border-radius: 8px; /* Match your site's rounded corners */
    font-weight: 600;
    transition: background-color 0.2s ease;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smart-search-button:hover {
    background: var(--navichain-dark-green);
}

.smart-search-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Loading spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner {
    animation: spin 1s linear infinite;
}

/* Post List Styling */
.posts-list-title {
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-entry {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 20px;
}

.post-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.post-entry h3 { /* Changed from h2 for semantic hierarchy */
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-entry h3 a {
    color: var(--primary-text);
    text-decoration: none;
}

.post-entry h3 a:hover {
    color: var(--navichain-green);
}

.post-entry .post-meta {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    margin-bottom: 1rem;
}

.post-entry .post-summary {
    color: var(--secondary-text);
    margin-bottom: 1.25rem;
}

.post-entry .entry-more {
    color: var(--navichain-green);
    font-weight: 600;
    text-decoration: none;
}

.post-entry .entry-more:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 2rem 0;
    font-size: 0.875rem;
}
