/* Blog Styles for ApicalERP Blog Pages */
/* Version: 3.7 */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    line-height: 1.7;
    background: var(--white);
}

.top-bar { background: var(--primary); color: var(--white); padding: 0.5rem 2rem; font-size: 0.85rem; }
.top-bar-content { max-width: 1280px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 2rem; }
.top-bar-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; }
.top-bar-item:hover { color: var(--accent); }
.top-bar-item svg { width: 16px; height: 16px; }

header {
    background: var(--white);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--gray-100);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 38px;
    background: var(--gray-200);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-product {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-company {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(249,115,22,0.25);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.breadcrumb { background: var(--gray-50); padding: 1rem 2rem; border-bottom: 1px solid var(--gray-200); }
.breadcrumb-container { max-width: 1280px; margin: 0 auto; font-size: 0.9rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-current { color: var(--primary); font-weight: 500; }

.article-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 4rem 2rem; }
.article-header-content { max-width: 800px; margin: 0 auto; text-align: center; }
.article-category { display: inline-block; background: var(--accent); color: var(--white); padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.article-header h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--white) !important; }
.article-meta { display: flex; justify-content: center; gap: 2rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; }
.meta-item svg { width: 18px; height: 18px; }

.article-content { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin: 3rem 0 1.5rem; color: var(--primary); }
.article-content h3 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--primary); }
.article-content p { font-size: 1.05rem; margin-bottom: 1.5rem; color: var(--gray-600); line-height: 1.8; }
.article-content ul, .article-content ol { margin: 1.5rem 0; padding-left: 2rem; }
.article-content li { margin-bottom: 0.75rem; color: var(--gray-600); }

.highlight-box {
    background: var(--gray-50);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box h4 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finance-flow {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2.5rem 0;
}

.finance-flow h3 {
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    text-align: center;
}

.finance-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.finance-step {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.finance-number {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--info);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.finance-content h4 {
    font-size: 1.1rem;
    color: var(--white) !important;
    margin-bottom: 0.5rem;
}

.finance-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0 !important;
}

.accounting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.accounting-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.accounting-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
}

.accounting-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.accounting-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.accounting-card p {
    font-size: 0.95rem;
    margin-bottom: 0 !important;
}

.accounting-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.accounting-card li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comparison-table {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    margin: 2.5rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--primary);
    color: var(--white) !important;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

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

.comparison-table .good {
    color: var(--success);
    font-weight: 600;
}

.comparison-table .bad {
    color: var(--danger);
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.benefit-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-box:hover {
    border-color: var(--success);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem 0 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white) !important;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-wrapper img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}

.footer-logo-text p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-brand > p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(249,115,22,0.4); opacity: 0; visibility: hidden; z-index: 1000; border: none; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(249,115,22,0.5); }
.back-to-top svg { width: 24px; height: 24px; color: var(--white); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .article-header h1 { font-size: 1.75rem; }
    .article-content h2 { font-size: 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }
    .accounting-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
}

/* CTA Section - Orange (matches manufacturing page) */
.cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem 0 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white) !important;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95) !important;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}
