/* EncodeX Global Style – with hero background + Microsoft Store badge scaling */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #0d0d0d;
    color: #eaeaea;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { 
    color: #095781; 
    text-decoration: none; 
}
a:hover { 
    text-decoration: underline; 
}

/* HEADER */
header {
    background: #050505;
    padding: 15px 0 10px;
    border-bottom: 1px solid #222;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.logo-text-title { 
    font-size: 26px; 
    font-weight: 600; 
}
.logo-text-sub { 
    font-size: 12px; 
    color: #9ca3af; 
}

nav { 
    margin-left: auto; 
}
nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

nav a {
    color: #e5e7eb;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

/* Active ska alltid synas */
nav a.active {
    border-bottom-color: #095781;
}

/* Viktigt: hover-styling ska bara gälla enheter som har riktig hover.
   Annars “fastnar” det på touch och ser ut som active. */
@media (hover: hover) and (pointer: fine) {
    nav a:hover {
        border-bottom-color: #095781;
    }
}

/* HERO SECTION WITH BACKGROUND IMAGE */
.hero {
    position: relative;
    text-align: center;
    padding: 140px 20px;
    background: url("/assets/img/header-bg.png") no-repeat center center;
    background-size: cover;
    border-radius: 0;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h1 { 
    font-size: 42px; 
    margin-bottom: 12px; 
}
.hero p { 
    margin: 0; 
    color: #d1d5db; 
    font-size: 18px;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    border-radius: 999px;
    background: #095781;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 17px;
}
.btn-primary:hover { 
    background:#0b6b9c; 
}

/* PAGE LAYOUT */
.layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
    display: flex;
    gap: 25px;
}

main {
    flex: 3;
    background: #111827;
    padding: 24px;
    border-radius: 14px;
}

aside {
    flex: 1.5;
    background: #111827;
    padding: 20px;
    border-radius: 14px;
    height: fit-content;
}

/* HEADINGS */
h2 {
    margin-top: 0;
    border-left: 4px solid #095781;
    padding-left: 10px;
    font-size: 22px;
}

.section { 
    margin-bottom: 24px; 
}
.section ul { 
    padding-left: 18px; 
}

/* ADS (kan ligga kvar som CSS även om du inte visar annonser just nu) */
.ad-box {
    margin: 20px 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #374151;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* MICROSOFT STORE BADGE (download.html) */
.store-badge-wrapper {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

ms-store-badge {
    transform: scale(0.55);
    transform-origin: center;
}

/* FOOTER */
footer {
    border-top: 1px solid #111827;
    padding: 18px 20px 28px;
    text-align: center;
    color: #095781;
    font-size: 13px;
}

footer a { 
    color:#9ca3af; 
}

/* MOBILE */
@media(max-width: 900px){
    .layout { 
        flex-direction: column; 
    }
    .header-inner { 
        flex-wrap:wrap; 
        justify-content:center; 
    }
    nav { 
        margin-left:0; 
    }
    nav ul { 
        flex-wrap:wrap; 
        justify-content:center;
    }
}