/* BuildWithEmil Blog - Shared Styles */

:root {
    --bg-page: #ffffff;
    --text-main: #000000;
    --text-grey: #4b5563;
    --border-color: #e5e7eb;
    --hover-color: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.site-header {
    background-color: var(--bg-page);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.header-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
    transition: 0.3s;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.mobile-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 99;
}

.mobile-menu-container a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
    display: block;
}

.mobile-menu-open {
    display: flex !important;
}

/* ARTICLE */
.article-wrapper {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    width: 100%;
    box-sizing: border-box;
}

.article-wrapper h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-main);
}

.article-wrapper p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.7;
}

.article-wrapper h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.article-wrapper h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.article-wrapper a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: underline;
}

.article-wrapper a:hover {
    color: var(--hover-color);
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.article-wrapper ul, .article-wrapper ol {
    margin: 0 0 18px 24px;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

.article-wrapper li {
    margin-bottom: 8px;
}

/* STAT GRID */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 25px 0;
}

.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
    line-height: 1.3;
}

/* INSIDER BOX */
.insider-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin: 16px 0 10px;
    position: relative;
    overflow: hidden;
}

.insider-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #111;
}

.insider-box strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    margin-bottom: 6px;
}

.insider-box p {
    font-size: 0.95rem !important;
    margin: 0 !important;
    color: #444;
    line-height: 1.6;
}

/* FIX BOX */
.fix-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0 10px;
}

.fix-box strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #16a34a;
    margin-bottom: 8px;
}

.fix-box p {
    font-size: 0.92rem !important;
    color: #333;
    margin: 0 !important;
    line-height: 1.6;
}

.fix-box ul {
    margin: 0 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
}

.fix-box li {
    margin-bottom: 5px;
}

/* CALLOUT BOXES */
.callout-box {
    border-left: 4px solid #111;
    background: #f9fafb;
    padding: 20px 24px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.callout-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.callout-box strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #111;
}

.callout-warning {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.callout-tip {
    border-left-color: #16a34a;
    background: #f0fdf4;
}

/* COST TABLE */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.cost-table thead {
    background: #111;
    color: #fff;
}

.cost-table th {
    padding: 14px 18px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

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

.cost-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.cost-table .total-row {
    background: #fef2f2 !important;
    font-weight: 700;
}

.cost-table .total-row td {
    border-top: 2px solid #111;
    font-size: 1rem;
}

/* COMPARE SIDE BY SIDE */
.compare-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.compare-side {
    padding: 22px;
}

.compare-side h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.compare-bad {
    background: #fef2f2;
    border-right: 1px solid #fecaca;
}

.compare-bad h4 { color: #dc2626; }

.compare-good {
    background: #f0fdf4;
}

.compare-good h4 { color: #16a34a; }

.compare-side p {
    font-size: 0.92rem !important;
    color: #444;
    margin-bottom: 10px !important;
    line-height: 1.5;
}

.compare-side p:last-child {
    margin-bottom: 0 !important;
}

/* PULL QUOTE */
.pull-quote {
    border-top: 3px solid #111;
    border-bottom: 3px solid #111;
    padding: 24px 0;
    margin: 30px 0;
    text-align: center;
}

.pull-quote p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem !important;
    font-weight: 800;
    color: #111 !important;
    line-height: 1.4;
    margin: 0 !important;
}

/* PERCENTAGE BAR */
.pct-bars {
    margin: 25px 0;
}

.pct-bar-item {
    margin-bottom: 14px;
}

.pct-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.pct-bar-track {
    height: 28px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.pct-bar-fill {
    height: 100%;
    background: #111;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 40px;
}

.pct-bar-fill.bar-orange { background: #f59e0b; color: #000; }
.pct-bar-fill.bar-red { background: #dc2626; }
.pct-bar-fill.bar-green { background: #16a34a; }
.pct-bar-fill.bar-blue { background: #2563eb; }

/* CTA BOX */
.cta-box {
    background: #111;
    color: #fff;
    padding: 35px 30px;
    border-radius: 10px;
    text-align: center;
    margin: 35px 0;
}

.cta-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    margin-top: 0;
}

.cta-box p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background: #FFD000;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    opacity: 0.9;
    color: #111;
}

/* LAST ARTICLES */
.last-articles {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
    width: 100%;
    box-sizing: border-box;
}

.last-articles h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.article-card {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.article-card:hover {
    opacity: 0.85;
}

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.article-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

/* FOOTER */
.site-footer {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    margin-top: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--text-main);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .article-wrapper {
        padding: 20px 20px 40px;
    }

    .article-wrapper h1 {
        font-size: 1.6rem;
    }

    .last-articles {
        padding: 0 20px 40px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .compare-card {
        grid-template-columns: 1fr;
    }

    .compare-bad {
        border-right: none;
        border-bottom: 1px solid #fecaca;
    }

    .cost-table {
        font-size: 0.85rem;
    }

    .cost-table th, .cost-table td {
        padding: 10px 12px;
    }

    .pct-bar-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 650px) {
    .site-header { padding: 15px 20px; }
    .header-nav { display: none; }
    .hamburger-btn { display: block; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
