/* --- MASTER STYLESHEET: WMexperts.online --- */

/* 0. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 1. VARIABLES & GLOBALS */
:root {
    --sap-blue: #005597;
    --sap-blue-light: #0066B3;
    --bg-page: #F5F7FA;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --accent: #EEF6FC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    background: linear-gradient(180deg,
        rgba(0, 85, 151, 0.08) 0%,
        rgba(0, 85, 151, 0.04) 25%,
        transparent 60%);
    color: var(--text-muted);
    line-height: 1.6;
}
main { background-color: #ffffff; }

/* 2. HEADER & NAVIGATION */
header {
    background: var(--bg-card);
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 80px;
}
.logo { font-weight: 700; font-size: 1.5rem; color: var(--sap-blue); text-decoration: none; }
nav a { margin-left: 2.5rem; text-decoration: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--sap-blue); }

/* 3. ARTICLE STRUCTURE & TYPOGRAPHY */
article { max-width: 800px; margin: 4rem auto; padding: 0 20px; }

.breadcrumb {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--sap-blue);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    background: var(--accent);
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid rgba(0, 85, 151, 0.12);
}

h1 {
    font-size: 2.75rem;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    font-weight: 800;
}

/* Author + date row below article h1 */
.article-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-byline .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--sap-blue);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 85, 151, 0.12);
}

.article-byline strong { color: var(--text-dark); font-weight: 600; }

.content h2 {
    color: var(--text-dark);
    margin-top: 2.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.3;
    padding-left: 1rem;
    border-left: 3px solid var(--sap-blue);
    margin-bottom: 1rem;
}
.content p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.content ul { padding-left: 1.5rem; margin-bottom: 2rem; }
.content li { margin-bottom: 0.75rem; font-size: 1.05rem; }

/* 4. TECHNICAL BLOCKS (VIDEO, CODE, IMAGES) */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 2.5rem 0; border-radius: 12px; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.screenshot-container { margin: 2rem 0; text-align: center; }
.screenshot-container img {
    max-width: 66.67%; max-height: 60vh; height: auto; display: block; margin: 0 auto;
    border: 1px solid var(--border); border-radius: 8px; cursor: zoom-in; object-fit: contain;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

code {
    font-family: 'Courier New', monospace;
    background: var(--accent);
    color: var(--sap-blue);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.88em;
    border: 1px solid rgba(0, 85, 151, 0.12);
}

pre {
    background: #F1F5F9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* 5. LIGHTBOX / ZOOM UI */
#lightbox {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); cursor: zoom-out; align-items: center; justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; }

/* 6. CTA & STAY UPDATED CARDS */
.stay-updated {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stay-updated-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stay-updated-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.stay-updated-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Newsletter Form & Input Styling */
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--sap-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 151, 0.1);
}

.btn-subscribe {
    background: var(--sap-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-subscribe:hover { background: var(--sap-blue-light); }

.btn-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff0000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.btn-youtube:hover { background: #cc0000; }

/* 7. FOOTER */
footer { padding: 3rem 8%; text-align: center; font-size: 0.9rem; border-top: 1px solid var(--border); background: var(--bg-card); margin-top: 4rem; }

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    header { padding: 1rem 5%; }
    h1 { font-size: 2.1rem; letter-spacing: -1px; }
    .stay-updated { grid-template-columns: 1fr; }
    .screenshot-container img { max-width: 100%; }
}
