/*
 * SICONET Amazon Connector
 * Vzhled navazuje na www.siconet.cz: bílé plochy, firemní modrá, zelený akcent,
 * výrazný modrý pruh pod hlavičkou a konzervativní firemní typografie.
 */
:root {
    /* Barvy převzaté z oficiálního loga SICONET. */
    --siconet-blue: #003871;
    --siconet-blue-nav: #237dc1;
    --siconet-blue-nav-dark: #1267aa;
    --siconet-green: #b3d235;

    --text: #1d2732;
    --muted: #687480;
    --line: #d7dde3;
    --soft-line: #e8edf1;
    --bg: #f3f4f5;
    --white: #ffffff;
    --danger: #a42b2b;
    --danger-bg: #fff2f2;
    --success: #24773a;
    --success-bg: #eef8f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: var(--siconet-blue-nav); }

.page {
    width: min(1210px, calc(100% - 28px));
    margin: 10px auto 30px;
}

.shell {
    overflow: hidden;
    background: var(--white);
    border-top: 4px solid #69b4e4;
    box-shadow: 0 3px 15px rgba(0, 56, 113, .14);
}

/* -------------------------------------------------------------------------- */
/* Hlavička ve stylu hlavního webu SICONET                                    */
/* -------------------------------------------------------------------------- */
.header {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px 20px;
    background: #fff;
}

.brand-block { min-width: 0; }
.brand-logo {
    width: min(470px, 54vw);
    height: auto;
    display: block;
}
.brand-tagline {
    margin: 8px 0 0 2px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.company-contact {
    align-self: flex-start;
    margin-top: 3px;
    max-width: 430px;
    color: #454545;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
}
.company-contact a {
    display: inline-block;
    color: #1573bd;
    text-decoration: none;
    font-size: 14px;
}
.company-contact a:hover { text-decoration: underline; }

/* Modrý pruh připomíná hlavní navigaci na siconet.cz. */
.brand-nav {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 26px;
    background: var(--siconet-blue-nav);
    border-left: 5px solid var(--siconet-blue-nav-dark);
    border-right: 5px solid var(--siconet-blue-nav-dark);
}
.brand-nav-title {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
}
.languages a {
    min-width: 34px;
    padding: 8px 9px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-left: 1px solid rgba(255,255,255,.2);
}
.languages a:hover,
.languages a.active {
    background: rgba(0, 56, 113, .55);
}

/* -------------------------------------------------------------------------- */
/* Obsah                                                                       */
/* -------------------------------------------------------------------------- */
.content {
    max-width: 880px;
    margin: 0 auto;
    padding: 42px 42px 48px;
}

h1 {
    margin: 0;
    color: var(--siconet-blue);
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 700;
}
.subtitle {
    margin: 10px 0 30px;
    color: var(--muted);
    text-align: center;
    font-size: 17px;
}

.connection {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin: 22px auto 30px;
    max-width: 680px;
}
.endpoint {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #b9c7d4;
    border-top: 4px solid var(--siconet-blue);
    background: #fff;
    padding: 14px;
    font-weight: 700;
}
.endpoint small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 400;
}
.link-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--siconet-green);
    color: var(--siconet-blue);
    font-size: 25px;
    font-weight: 700;
    box-shadow: 0 0 0 6px rgba(179, 210, 53, .16);
}

.lead {
    max-width: 680px;
    margin: 0 auto 24px;
    text-align: center;
}

.info,
.status-card {
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid #cddcea;
    border-left: 4px solid var(--siconet-blue-nav);
    background: #f7fbfe;
}
.info strong { color: var(--siconet-blue); }

.seller-card {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fff;
}
.seller-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.seller-id {
    padding: 7px 10px;
    background: #f1f3f5;
    border: 1px solid #e0e4e8;
    font-family: Consolas, Monaco, monospace;
    overflow-wrap: anywhere;
}

button.primary {
    width: 100%;
    border: 0;
    border-bottom: 3px solid #174f83;
    padding: 14px 18px;
    background: var(--siconet-blue-nav);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
button.primary:hover { background: var(--siconet-blue-nav-dark); }
button.primary:focus {
    outline: 3px solid rgba(179,210,53,.45);
    outline-offset: 2px;
}

.secure {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.alert {
    margin: 18px 0;
    padding: 15px 18px;
    border-left: 4px solid currentColor;
}
.alert.error {
    color: var(--danger);
    background: var(--danger-bg);
    border-top: 1px solid #f0caca;
    border-right: 1px solid #f0caca;
    border-bottom: 1px solid #f0caca;
}
.alert.success {
    color: var(--success);
    background: var(--success-bg);
    border-top: 1px solid #cde8d2;
    border-right: 1px solid #cde8d2;
    border-bottom: 1px solid #cde8d2;
}

.status-card {
    padding: 30px 24px;
    text-align: center;
}
.status-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
}
.status-icon.success { background: var(--success-bg); color: var(--success); }
.status-icon.error { background: var(--danger-bg); color: var(--danger); }
.status-card h2 { margin: 5px 0 10px; color: var(--siconet-blue); }
.reference { margin-top: 14px; color: var(--muted); font-size: 13px; }
.reference code { padding: 3px 6px; background: #eef1f3; }

.footer {
    padding: 18px 24px;
    background: #f6f6f6;
    border-top: 1px solid #ddd;
    color: #505050;
    text-align: center;
    font-size: 12px;
}
.footer a { color: var(--siconet-blue-nav); }
.footer .links { margin-top: 6px; }

@media (max-width: 760px) {
    .page { width: min(100% - 14px, 1210px); margin: 7px auto; }
    .header {
        min-height: 0;
        padding: 20px 18px 16px;
        align-items: flex-start;
        flex-direction: column;
    }
    .brand-logo { width: min(470px, 90vw); }
    .company-contact { align-self: stretch; margin-top: 0; text-align: left; }
    .brand-nav { padding: 7px 12px; align-items: flex-start; flex-direction: column; gap: 4px; }
    .languages { justify-content: flex-start; }
    .languages a:first-child { border-left: 0; }
    .content { padding: 30px 18px 34px; }
    .connection { grid-template-columns: 1fr; }
    .link-icon { margin: 0 auto; transform: rotate(90deg); }
    .seller-row { align-items: flex-start; flex-direction: column; gap: 7px; }
}
