﻿/* =========================================================
   dobrytip.sk – hlavný vizuálny štýl
   Základ vychádza zo štruktúry iman.sk, ale bez duplicitných override blokov.
   Brand farby a hero obrázok môžu byť prepísané zo Site.Master.cs cez Web.config.
   ========================================================= */

/* Theme via CSS variables (overridden from Site.Master.cs) */
:root {
    --brand-primary: #ff7a00;
    --brand-secondary: #0f766e;
    --brand-accent: #facc15;
    --hero-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=2000&q=80');
    --imax-muted: #64748b;
    --imax-bg: #fff7ed;
    --imax-card-radius: 18px;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: radial-gradient(circle at top left, rgba(255, 122, 0, .10), transparent 32rem), radial-gradient(circle at top right, rgba(15, 118, 110, .08), transparent 28rem), #fffaf5;
    color: #1f2937;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }


/* =========================================================
   Navbar
   ========================================================= */

.navbar {
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--brand-primary) !important;
}

    .navbar-brand::before {
        content: "💡 ";
    }

.nav-link {
    font-weight: 500;
}

    .nav-link:hover {
        color: var(--brand-primary) !important;
    }

.navbar .dropdown-menu {
    max-height: 60vh;
    overflow: auto;
}

.dropdown-menu-kategorie {
    min-width: 280px;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    background: linear-gradient(135deg, rgba(255, 122, 0, .86), rgba(15, 118, 110, .78)), var(--hero-image) center/cover no-repeat;
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: "";
        position: absolute;
        right: -80px;
        bottom: -80px;
        width: 240px;
        height: 240px;
        background: rgba(250, 204, 21, .28);
        border-radius: 999px;
    }

    .hero h1 {
        font-weight: 900;
        letter-spacing: -.04em;
        text-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    }

    .hero p {
        opacity: .95;
    }

    .hero .lead {
        max-width: 760px;
        margin: 1rem auto 0;
        color: #fff;
        font-weight: 600;
    }


/* =========================================================
   Article grid
   ========================================================= */

.article-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: #fff;
    border: 1px solid rgba(255, 122, 0, .10);
    border-radius: var(--imax-card-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease;
    padding-bottom: .75rem;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 44px rgba(15, 23, 42, .13);
    }

.article-image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.article-title {
    display: block;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: .6rem .9rem .25rem;
    color: #111827;
}

    .article-title::before {
        content: "TIP: ";
        color: var(--brand-primary);
        font-weight: 900;
    }

    .article-title:hover {
        text-decoration: underline;
    }

.article-card a[id$="lnkKategoria"] {
    display: inline-block;
    margin: .25rem .9rem 0;
    color: var(--imax-muted);
    font-size: .85rem;
}


/* =========================================================
   List group / article stream
   ========================================================= */

.list-group {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.list-group-item {
    padding: 1.25rem 1rem;
    border-color: rgba(255, 122, 0, .10);
}

.list-group-item-line {
    border-bottom: 1px solid rgba(255, 122, 0, .10);
}

.list-group-item img.img-thumbnail {
    border-radius: 12px;
    border: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.list-group-item-heading a {
    color: #111827;
    font-weight: 900;
}

    .list-group-item-heading a:hover {
        text-decoration: underline;
    }

.lead {
    color: #fff;
    font-weight: 600;
}

.list-group-item-text.lead {
    color: #334155;
    font-weight: 400;
}


/* =========================================================
   Pagination
   ========================================================= */

.pages {
    text-align: center;
    margin: 2rem 0;
}

    .pages a {
        display: inline-block;
        margin: .2rem;
        border: 1px solid #fed7aa;
        padding: .45rem .75rem;
        border-radius: 10px;
        background: #fff;
        color: #9a3412;
        font-weight: 700;
    }

        .pages a:hover,
        .pages .btn-primary,
        .pages a.active {
            background: var(--brand-primary);
            border-color: var(--brand-primary);
            color: #fff;
            text-decoration: none;
        }


/* =========================================================
   Utilities
   ========================================================= */

.badge-cat {
    display: inline-block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: .25rem .5rem;
    margin: .6rem .9rem .25rem .6rem;
    font-weight: 800;
}

.article-meta {
    font-size: .85rem;
    color: var(--imax-muted);
}


/* =========================================================
   Detail článku
   ========================================================= */

.post-header h1 {
    font-weight: 800;
    margin-bottom: .25rem;
    color: #111827;
    letter-spacing: -.03em;
}

.post-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2937;
}

    .post-content a {
        color: var(--brand-secondary);
        font-weight: 700;
    }

    .post-content img {
        max-width: 100%;
        border-radius: 12px;
    }


/* =========================================================
   Category header
   ========================================================= */

.category-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ecfeff 100%);
    border: 1px solid rgba(255, 122, 0, .18);
    border-radius: 22px;
    padding: 1.35rem 1.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

    .category-header h1 {
        font-weight: 900;
        color: #111827;
        letter-spacing: -.03em;
    }


/* =========================================================
   Subcategories
   ========================================================= */

.subcat-wrap {
    margin-top: 14px;
}

.subcat-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
    margin-bottom: 10px;
}

.subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subcat-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fed7aa;
    color: #9a3412;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

    .subcat-chip:hover {
        background: #fff7ed;
        border-color: #fdba74;
        text-decoration: none;
    }

    .subcat-chip.active {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        color: #fff;
    }

.subcat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.subcat-chip.active + .subcat-count,
.subcat-item .subcat-chip.active ~ .subcat-count {
    background: #dbeafe;
    color: #1d4ed8;
}


/* =========================================================
   Breadcrumbs
   ========================================================= */

.article-breadcrumbs {
    margin: 6px 0 14px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item,
.breadcrumb-sep {
    font-size: 13px;
    line-height: 1.4;
}

    .breadcrumb-item a {
        color: #6c757d;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: .03em;
        font-weight: 600;
    }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

    .breadcrumb-item.active {
        color: #9aa3ad;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 500;
    }

.breadcrumb-sep {
    color: #adb5bd;
}


/* =========================================================
   Category cloud
   ========================================================= */

.category-cloud-box {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 58%, #ecfeff 100%);
    border: 1px solid rgba(255, 122, 0, .16);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
    padding: 26px 24px;
    width: 100%;
}

    .category-cloud-box + .list-group,
    .category-cloud-box + .pages {
        margin-top: 0;
    }

.category-cloud-header {
    margin-bottom: 18px;
}

.category-cloud-title {
    margin: 0 0 6px 0;
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.03em;
}

.category-cloud-perex {
    margin: 0;
    color: #6c757d;
    font-size: .98rem;
}

.category-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
}

.category-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-cloud-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.15;
    transition: color .2s ease, transform .2s ease;
}

    .category-cloud-link:hover {
        color: var(--brand-primary);
        transform: translateY(-1px);
        text-decoration: none;
    }

.category-cloud-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.cloud-size-1 {
    font-size: 1rem;
}

.cloud-size-2 {
    font-size: 1.15rem;
}

.cloud-size-3 {
    font-size: 1.3rem;
}

.cloud-size-4 {
    font-size: 1.5rem;
}

.cloud-size-5 {
    font-size: 1.75rem;
}


/* =========================================================
   Article sharing
   ========================================================= */

.article-share-box {
    margin: 32px 0 10px;
    padding: 18px 20px;
    background: #fffaf5;
    border: 1px solid rgba(255, 122, 0, .14);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.article-share-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #dbe3ea;
    background: #f8f9fb;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
    cursor: pointer;
}

    .share-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    }

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

.share-x:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.share-email:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.share-copy:hover {
    background: #212529;
    color: #fff;
    border-color: #212529;
}


/* =========================================================
   Article tags
   ========================================================= */

.article-tags-box {
    padding: 18px 20px;
    border: 1px solid rgba(255, 122, 0, .14);
    border-radius: 14px;
    background: #fffaf5;
}

.article-tags-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    text-decoration: none;
    font-size: .95rem;
    line-height: 1.2;
    font-weight: 700;
}

    .article-tag:hover {
        background: #fed7aa;
        text-decoration: none;
    }


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 36px 0 24px;
    margin-top: 48px;
}

    .site-footer a {
        color: #f3f4f6;
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

.footer-brand {
    font-size: 1.1rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.6;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #cbd5e1;
    font-size: .95rem;
}

.footer-cookie-link {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}


/* =========================================================
   Cookie banner
   ========================================================= */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);
    padding: 18px;
}

.cookie-banner-inner {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 520px;
    line-height: 1.55;
}

    .cookie-banner-text a {
        color: #fff;
        text-decoration: underline;
    }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-settings-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 10000;
    padding: 20px;
}

.cookie-settings-box {
    max-width: 760px;
    margin: 40px auto;
    background: #fff;
    color: #111827;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.cookie-settings-header {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.cookie-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
}

    .cookie-setting-row:first-of-type {
        border-top: none;
    }

.cookie-setting-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-setting-desc {
    color: #4b5563;
    line-height: 1.5;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .category-cloud-box {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .category-cloud-title {
        font-size: 1.35rem;
    }

    .cloud-size-1 {
        font-size: .95rem;
    }

    .cloud-size-2 {
        font-size: 1.05rem;
    }

    .cloud-size-3 {
        font-size: 1.15rem;
    }

    .cloud-size-4 {
        font-size: 1.25rem;
    }

    .cloud-size-5 {
        font-size: 1.4rem;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
    }

    .cookie-settings-box {
        margin: 10px auto;
        padding: 18px;
    }

    .cookie-setting-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3.5rem 0;
    }

    .article-image {
        height: 180px;
    }

    .category-header {
        padding: 1rem;
        border-radius: 18px;
    }
}
