﻿/* DotNet Expert — Blog-specific styles.
   Shared shell, typography, sections, responsive spacing and entrance animation: site.css. */

#blog-overview img {
    max-width: 100%;
    height: auto;
}

#blog-overview a {
    text-decoration: none;
}

#blog-overview .blog-search {
    background: linear-gradient(135deg, #eefbfd 0%, #ffffff 82%);
}

#blog-overview .blog-search__form {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

#blog-overview .blog-search__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

#blog-overview .blog-search__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--site-primary-dark);
    transform: translateY(-50%);
    pointer-events: none;
}

    #blog-overview .blog-search__icon svg {
        display: block;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

#blog-overview .blog-search__field input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 18px 0 45px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--site-ink);
    font: inherit;
    font-size: 15px;
}

    #blog-overview .blog-search__field input:focus {
        border-color: rgba(21,159,202,.48);
        box-shadow: 0 0 0 4px rgba(34,201,223,.09);
    }

    #blog-overview .blog-search__field input::placeholder {
        color: var(--site-muted);
    }

#blog-overview .blog-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 112px;
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .25s var(--site-ease), box-shadow .25s ease;
}

    #blog-overview .blog-search__button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(21,159,202,.22);
    }

#blog-overview .blog-list {
    display: grid;
    gap: 16px;
}

#blog-overview .blog-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38,54,58,.04);
    cursor: pointer;
    transition: transform .3s var(--site-ease), border-color .3s ease, box-shadow .3s ease;
}

    #blog-overview .blog-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, var(--site-primary), var(--site-accent));
        opacity: 0;
        transition: opacity .25s ease;
    }

    #blog-overview .blog-card:hover {
        transform: translateY(-4px);
        border-color: #c4e2e8;
        box-shadow: 0 22px 48px rgba(38,54,58,.13);
    }

        #blog-overview .blog-card:hover::before {
            opacity: 1;
        }

#blog-overview .blog-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 118px;
    padding: 21px 20px 19px 24px;
}

#blog-overview .blog-card__content {
    min-width: 0;
    flex: 1 1 auto;
}

#blog-overview .blog-card__title {
    margin: 0;
    color: var(--site-heading);
    font-size: 20px;
    font-weight: 720;
    line-height: 1.4;
    letter-spacing: -.015em;
}

#blog-overview .blog-card:hover .blog-card__title {
    color: var(--site-primary-dark);
}

#blog-overview .blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 18px;
    margin-top: 12px;
    color: var(--site-muted);
    font-size: 12px;
}

    #blog-overview .blog-card__meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    #blog-overview .blog-card__meta strong {
        color: var(--site-text);
        font-weight: 750;
    }

    #blog-overview .blog-card__meta img {
        width: 14px;
        height: 14px;
        object-fit: contain;
    }

#blog-overview .blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--site-primary-dark);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

    #blog-overview .blog-card__read-more > span {
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        border-radius: 50%;
        background: #e9fafd;
        transition: transform .25s var(--site-ease), background .25s ease;
    }

#blog-overview .blog-card:hover .blog-card__read-more > span {
    transform: translateX(3px);
    background: var(--site-primary);
    color: #fff;
}

#blog-overview .blog-card--loading {
    cursor: default;
}

    #blog-overview .blog-card--loading:hover {
        transform: none;
        border-color: var(--site-border);
        box-shadow: 0 8px 24px rgba(38,54,58,.04);
    }

    #blog-overview .blog-card--loading::before {
        display: none;
    }

#blog-overview .blog-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #edf3f5;
}

    #blog-overview .blog-skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
        animation: blogSkeleton 1.5s infinite;
    }

#blog-overview .blog-skeleton--title {
    width: 68%;
    height: 22px;
}

#blog-overview .blog-skeleton--meta {
    width: 42%;
    height: 10px;
    margin-top: 18px;
}

#blog-overview .blog-skeleton--action {
    width: 82px;
    height: 30px;
}

@keyframes blogSkeleton {
    100% {
        transform: translateX(100%);
    }
}

#blog-overview .blog-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 26px auto 0;
    padding: 0 12px;
}

    #blog-overview .blog-pagination[hidden] {
        display: none !important;
    }

#blog-overview .blog-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#blog-overview .blog-pagination__item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

#blog-overview .blog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
    color: var(--site-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    #blog-overview .blog-pagination__link:hover:not(:disabled) {
        transform: translateY(-2px);
        border-color: var(--site-primary);
        background: #e9fafd;
        color: var(--site-primary-dark);
        box-shadow: 0 7px 18px rgba(21, 159, 202, .14);
    }

    #blog-overview .blog-pagination__link:focus-visible {
        outline: 3px solid rgba(34, 201, 223, .55);
        outline-offset: 3px;
    }

    #blog-overview .blog-pagination__link:disabled {
        cursor: wait;
        opacity: .6;
        transform: none;
        box-shadow: none;
    }

#blog-overview .blog-pagination__item--active .blog-pagination__link {
    border-color: var(--site-primary-dark);
    background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(21,159,202,.20);
}

#blog-overview .blog-empty {
    padding: 50px 25px;
    border: 1px dashed var(--site-border);
    border-radius: 16px;
    background: var(--site-soft);
    text-align: center;
}

#blog-overview .blog-empty__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 14px;
    background: #e9fafd;
    color: var(--site-primary-dark);
}

#blog-overview .blog-empty h2 {
    margin: 0 0 7px;
    color: var(--site-heading);
    font-size: 21px;
}

#blog-overview .blog-empty p {
    max-width: 460px;
    margin: 0 auto 20px;
    color: var(--site-muted);
    font-size: 14px;
}

#blog-overview .blog-empty__button {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--site-primary-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

#blog-overview .blog-sidebar {
    position: sticky;
    top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

#blog-overview .blog-sidebar__card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--site-shadow);
}

/* Recommended Reading — shared visual design with Blog Details */
#blog-overview .blog-sidebar__card--affiliate {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe9ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(38, 54, 58, .08);
}

#blog-overview .blog-book {
    position: relative;
    min-width: 0;
    padding: 27px 23px 21px;
    background: radial-gradient(circle at 100% 0%, rgba(34, 201, 223, .12), transparent 45%), radial-gradient(circle at 0% 100%, rgba(255, 184, 77, .11), transparent 48%), linear-gradient(145deg, #fff, #f5fbfd 65%, #fffaf2);
}

    #blog-overview .blog-book::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 5px;
        background: linear-gradient(90deg, #087aa1, #159fca 35%, #22c9df 65%, #ffb52e);
    }

#blog-overview .blog-book__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 19px;
}

#blog-overview .blog-book__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #087aa1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

#blog-overview .blog-book__top .blog-book__eyebrow {
    margin-bottom: 0;
}

#blog-overview .blog-book__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #c7eaf1;
    border-radius: 11px;
    background: #e6f7fb;
    font-size: 18px;
}

#blog-overview .blog-book__tag {
    padding: 5px 10px;
    border: 1px solid #f2ddb4;
    border-radius: 20px;
    background: #fff3db;
    color: #926000;
    font-size: 10px;
    font-weight: 750;
}

#blog-overview .blog-sidebar .blog-book__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #e5a52e;
    border-radius: 11px;
    background: linear-gradient(115deg, #ffad24 0%, #ffd16a 35%, #ffe6a7 58%, #ffba42 100%);
    color: #172b3d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(180, 111, 0, .13);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

    #blog-overview .blog-sidebar .blog-book__link:hover {
        color: #172b3d;
        filter: brightness(1.04);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(180, 111, 0, .22);
    }

    #blog-overview .blog-sidebar .blog-book__link:focus-visible {
        outline: 3px solid #087aa1;
        outline-offset: 3px;
    }

#blog-overview .blog-sidebar .blog-book__link-arrow {
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

#blog-overview .blog-book .affiliate-note {
    margin: 19px 0 0;
    padding-top: 15px;
    border-top: 1px solid #dce7ea;
    color: #718187;
    font-size: 11px;
    line-height: 1.65;
}

@media (max-width: 480px) {
    #blog-overview .blog-book {
        padding: 25px 18px 19px;
    }
}

/* Slider motion, controls and navigation */
#blog-overview .blog-book__slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
}

#blog-overview .blog-book__slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 400ms ease, transform 400ms ease, visibility 400ms ease;
}

    #blog-overview .blog-book__slide.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    #blog-overview .blog-book__slide h2 {
        margin: 0 0 12px;
        color: #26343a;
        font-size: 19px;
        font-weight: 750;
        line-height: 1.35;
    }

    #blog-overview .blog-book__slide > p {
        margin: 0 0 18px;
        color: #58676d;
        font-size: 13px;
        line-height: 1.65;
    }

#blog-overview .blog-book__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}

#blog-overview .blog-book__nav {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d5e3e7;
    border-radius: 9px;
    background: #fff;
    color: #087aa1;
    font-size: 16px;
    cursor: pointer;
}

#blog-overview .blog-book__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#blog-overview .blog-book__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cadde2;
    cursor: pointer;
    transition: width 250ms ease, background-color 250ms ease;
}

    #blog-overview .blog-book__dot.is-active {
        width: 22px;
        background: #159fca;
    }

    #blog-overview .blog-book__nav:focus-visible,
    #blog-overview .blog-book__dot:focus-visible {
        outline: 2px solid #087aa1;
        outline-offset: 3px;
    }

@media (prefers-reduced-motion: reduce) {
    #blog-overview .blog-book__slide {
        transition: none;
        transform: none;
    }
}


#blog-overview .blog-sidebar__header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--site-border);
}

#blog-overview .blog-sidebar__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 16px;
    background: #e9fafd;
    color: var(--site-primary);
}

    #blog-overview .blog-sidebar__icon svg {
        display: block;
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

#blog-overview .blog-sidebar__heading {
    min-width: 0;
}

#blog-overview .blog-sidebar__eyebrow {
    display: block;
    margin: 0 0 4px;
    color: var(--site-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    line-height: 1.2;
}

#blog-overview .blog-sidebar__header h2 {
    margin: 0;
    color: var(--site-heading);
    font-size: 22px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -.025em;
}

#blog-overview .blog-sidebar__links {
    padding: 7px 0;
}

    #blog-overview .blog-sidebar__links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        min-height: 58px;
        padding: 11px 22px;
        border-bottom: 1px solid #f0f4f5;
        color: var(--site-text);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        transition: padding .2s ease, color .2s ease, background .2s ease;
    }

        #blog-overview .blog-sidebar__links a:last-child {
            border-bottom: 0;
        }

        #blog-overview .blog-sidebar__links a:hover {
            padding-left: 26px;
            background: var(--site-soft);
            color: var(--site-primary-dark);
        }

#blog-overview .blog-sidebar__arrow {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: var(--site-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease, stroke .2s ease;
}

#blog-overview .blog-sidebar__links a:hover .blog-sidebar__arrow {
    transform: translateX(3px);
    stroke: var(--site-primary);
}

#blog-overview .blog-card:focus-visible,
#blog-overview .blog-search__button:focus-visible,
#blog-overview .blog-search__field input:focus-visible,
#blog-overview .blog-pagination__link:focus-visible,
#blog-overview .blog-empty__button:focus-visible,
#blog-overview .blog-sidebar__links a:focus-visible {
    outline: 3px solid rgba(34,201,223,.25);
    outline-offset: 2px;
}

@media (max-width: 960px) {
    #blog-overview .blog-sidebar {
        position: relative;
        top: auto;
        z-index: 1;
    }
}

@media (max-width: 720px) {
    #blog-overview .blog-search__form {
        flex-direction: column;
    }

    #blog-overview .blog-search__button {
        width: 100%;
    }

    #blog-overview .blog-card__body {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    #blog-overview .blog-pagination {
        margin-top: 22px;
        padding-right: 8px;
        padding-left: 8px;
    }

    #blog-overview .blog-pagination__list {
        gap: 6px;
    }

    #blog-overview .blog-pagination__link {
        min-width: 36px;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 13px;
    }

    #blog-overview .blog-card__read-more {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--site-border);
    }

    #blog-overview .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    #blog-overview .blog-sidebar__card--affiliate {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #blog-overview .blog-sidebar {
        grid-template-columns: 1fr;
    }

    #blog-overview .blog-sidebar__card--affiliate {
        width: 100%;
    }

    #blog-overview .blog-sidebar__header {
        min-height: 96px;
        padding: 18px;
        gap: 13px;
    }

    #blog-overview .blog-sidebar__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

        #blog-overview .blog-sidebar__icon svg {
            width: 22px;
            height: 22px;
        }

    #blog-overview .blog-sidebar__header h2 {
        font-size: 20px;
    }

    #blog-overview .blog-sidebar__links a {
        min-height: 54px;
        padding-left: 18px;
        padding-right: 18px;
    }

    #blog-overview .blog-pagination__list {
        gap: 5px;
    }

    #blog-overview .blog-pagination__link {
        min-width: 33px;
        min-height: 36px;
        padding: 0 6px;
        border-radius: 8px;
        font-size: 12px;
    }

    #blog-overview .blog-card__title {
        font-size: 18px;
    }

    #blog-overview .blog-card__meta {
        gap: 7px 12px;
    }

        #blog-overview .blog-card__meta span {
            font-size: 11px;
        }
}

/* Sidebar alignment within the shared page grid. */
#blog-overview .blog-sidebar {
    align-self: start;
}

@media (max-width: 960px) {
    #blog-overview .blog-sidebar {
        position: relative;
        top: auto;
    }
}
