/* SharpED brand styles – barvy dle grafickeho navrhu */
:root {
    --sharped-blue: #1FA5FF;      /* odkazy + akcenty */
    --sharped-blue-dark: #001170; /* nadpisy, menu, tlacitka */
    --sharped-black: #000000;
    --sharped-gray: #444444;
    --sharped-bg: #ffffff;
    --sharped-bg-soft: #f5f8fc;
    --sharped-border: #e5ebf3;
}

* { box-sizing: border-box; }

body {
    font-family: "Nunito", Aptos, Arial, "Helvetica Neue", sans-serif;
    color: var(--sharped-gray);
    background: var(--sharped-bg);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    color: var(--sharped-blue-dark);
    font-weight: 800;
    line-height: 1.15;
}

a { color: var(--sharped-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container-sharped {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.sharped-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--sharped-border);
}
.sharped-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.sharped-logo img { height: 40px; display: block; }
.sharped-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.sharped-nav > a {
    color: var(--sharped-blue-dark);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    white-space: nowrap;
}
.sharped-nav > a:hover { background: var(--sharped-bg-soft); text-decoration: none; }
.sharped-nav > a.active { background: var(--sharped-blue-dark); color: #fff; }
.sharped-nav .user-chip {
    color: var(--sharped-gray);
    font-weight: 600;
    padding: 8px 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}
.sharped-nav .user-chip .bi { font-size: 1.1rem; line-height: 1; }
.sharped-nav .nav-logout { display: inline-flex; margin: 0; }
.sharped-nav .nav-logout .btn-sharped,
.sharped-nav > a.btn-sharped {
    padding: 7px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
}

/* Admin dropdown in header */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sharped-blue-dark);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.25;
    box-shadow: none;
}
.nav-dropdown-toggle .bi { font-size: 0.75rem; opacity: 0.7; transition: transform .15s ease; }
.nav-dropdown.open .nav-dropdown-toggle .bi,
.nav-dropdown-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.nav-dropdown-toggle:hover {
    background: var(--sharped-bg-soft);
}
.nav-dropdown.active .nav-dropdown-toggle {
    background: var(--sharped-blue-dark);
    color: #fff;
}
.nav-dropdown.active .nav-dropdown-toggle .bi { opacity: 1; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--sharped-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 40, 80, .12);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--sharped-blue-dark);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-dropdown-menu a .bi { opacity: 0.75; }
.nav-dropdown-menu a:hover { background: var(--sharped-bg-soft); text-decoration: none; }
.nav-dropdown-menu a.active {
    background: rgba(0, 17, 112, 0.08);
    color: var(--sharped-blue-dark);
}
.nav-dropdown-menu a.active .bi { opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sharped-blue-dark); margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn-sharped {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid var(--sharped-blue-dark);
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.25;
    text-align: center;
}
/* vyssi specificita (a.btn…), aby .sharped-nav a neprepsalo bilou barvu textu */
a.btn-sharped,
button.btn-sharped {
    text-decoration: none;
}
.btn-sharped-primary,
a.btn-sharped-primary,
button.btn-sharped-primary,
.sharped-nav a.btn-sharped-primary {
    background: var(--sharped-blue-dark);
    color: #fff;
}
.btn-sharped-primary:hover,
a.btn-sharped-primary:hover,
button.btn-sharped-primary:hover,
.sharped-nav a.btn-sharped-primary:hover {
    background: #fff;
    border-color: var(--sharped-blue-dark);
    color: var(--sharped-blue-dark);
    text-decoration: none;
}
.btn-sharped-outline,
a.btn-sharped-outline,
button.btn-sharped-outline {
    background: #fff;
    color: var(--sharped-blue-dark);
}
.btn-sharped-outline:hover,
a.btn-sharped-outline:hover,
button.btn-sharped-outline:hover {
    background: var(--sharped-bg-soft);
    color: var(--sharped-blue-dark);
    text-decoration: none;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0; }
.hero .grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero h1 { font-size: 3.4rem; color: var(--sharped-blue-dark); margin: 0 0 8px; }
.hero h1 .brand-ed { color: var(--sharped-blue); }
.hero .claim { font-size: 1.9rem; color: var(--sharped-blue-dark); font-weight: 800; margin: 0 0 18px; }
.hero .claim .hl { color: var(--sharped-blue); }
.hero p.lead { font-size: 1.05rem; max-width: 520px; margin: 0 0 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .art img { width: 100%; max-width: 460px; display: block; margin: 0 auto; }

/* ---------- Feature cards ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--sharped-bg-soft); }
.section-title { text-align: center; margin-bottom: 36px; }
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card-sharped {
    background: #fff;
    border: 1px solid var(--sharped-border);
    border-radius: 14px;
    padding: 26px 22px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card-sharped:hover { box-shadow: 0 10px 30px rgba(0,45,114,.08); transform: translateY(-2px); }
.card-sharped .ico { color: var(--sharped-blue); font-size: 2rem; margin-bottom: 12px; }
.card-sharped h3 { font-size: 1.15rem; margin: 0 0 8px; }
.card-sharped p { font-size: 0.95rem; margin: 0 0 14px; }
.card-sharped a { font-weight: 700; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
    background: #fff;
    border: 1px solid var(--sharped-border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}
.team-card img {
    width: 96px; height: 96px; object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: block;
}
.team-card .name { font-weight: 800; color: var(--sharped-blue-dark); }
.team-card .email { font-size: 0.9rem; }

/* ---------- Footer ---------- */
.sharped-footer { background: var(--sharped-bg-soft); border-top: 1px solid var(--sharped-border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; gap: 30px; align-items: start; }
.footer-grid h4 { font-size: 1rem; margin: 0 0 14px; color: var(--sharped-blue-dark); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-art img { width: 100%; max-width: 200px; }
.footer-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; margin: 36px 0 18px; padding-top: 26px; border-top: 1px solid var(--sharped-border); }
.footer-logos img { height: 44px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--sharped-gray); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--sharped-gray); }

/* ---------- Admin edit FAB (na verejnych strankach) ---------- */
.admin-edit-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--sharped-blue-dark);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 17, 112, 0.28);
    text-decoration: none !important;
    transition: transform .15s ease, background .15s ease;
}
.admin-edit-fab:hover {
    background: #000d5c;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---------- SharpED tool page ---------- */
.sharped-tool-card > .card-header {
    background: var(--sharped-blue-dark);
    color: #fff;
    border-bottom: 0;
}
.sharped-tool-card > .card-header h2 {
    color: var(--sharped-blue);
    font-weight: 800;
}
.sharped-tool-licence {
    font-size: 0.92rem;
    color: var(--sharped-gray);
    margin: 8px 0 0;
}
.admin-edit-fab i { font-size: 1.1rem; }

.sticky-admin-save {
    position: sticky;
    bottom: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--sharped-border);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .grid { grid-template-columns: 1fr; }
    .hero .art { order: -1; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .sharped-nav {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--sharped-border);
        padding: 12px 20px; gap: 4px;
    }
    .sharped-nav.open { display: flex; }
    .sharped-nav > a,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 8px;
        min-width: 0;
        margin-top: 2px;
    }
    .sharped-nav .nav-logout .btn-sharped,
    .sharped-nav > a.btn-sharped {
        width: 100%;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero .claim { font-size: 1.5rem; }
    .cards, .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
