/*
 * LinuxCapable GeneratePress Element CSS
 * Target: Shared layer for Homepage + Archive + Search
 * Source: extracted from unified stylesheet sections.
 * Version: 2026.02.20-2
 */
/* ============================================
   HOMEPAGE DYNAMIC POST SECTIONS
   ============================================ */

.lc-home-sections-wrap {
    --lc-home-ink: #1a1930;
    --lc-home-muted: #5f6174;
    --lc-home-accent: #4f46e5;
    --lc-home-accent-2: #745acc;
    --lc-home-surface: #ffffff;
    --lc-home-border: #e7e4f3;
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
    width: min(1240px, 100%);
    box-sizing: border-box;
    margin: clamp(30px, 3.3vw, 48px) auto 0;
    border: 1px solid #d7d0ea;
    border-radius: 22px;
    padding: clamp(20px, 4vw, 44px) clamp(10px, 2.2vw, 26px);
    background: radial-gradient(1200px 380px at 10% 0%, rgba(116, 90, 204, 0.08), rgba(116, 90, 204, 0) 60%), linear-gradient(180deg, #f7f8fc 0%, #f1f3fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(29, 22, 58, 0.06);
}

.lc-home-section {
    position: relative;
    overflow: hidden;
    background: var(--lc-home-surface);
    border: 1px solid var(--lc-home-border);
    border-radius: 18px;
    padding: clamp(18px, 2.4vw, 26px);
    box-shadow: 0 16px 34px rgba(25, 18, 45, 0.08);
}

.lc-home-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lc-home-accent) 0%, var(--lc-home-accent-2) 55%, #a78bfa 100%);
}

.lc-home-section-header {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeebf8;
}

.lc-home-kicker {
    margin: 0;
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid #d9d1f5;
    border-radius: 999px;
    background: #f4f0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b3b92;
}

.lc-home-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 1.88rem);
    line-height: 1.25;
    color: var(--lc-home-ink);
    letter-spacing: -0.02em;
}

.lc-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lc-home-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #e9e6f4;
    border-radius: 14px;
    overflow: hidden;
    background: #fcfbff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lc-home-card:hover {
    transform: translateY(-4px);
    border-color: #cfc6ef;
    box-shadow: 0 14px 32px rgba(33, 24, 69, 0.14);
}

.lc-home-card-thumb {
    display: block;
    overflow: hidden;
    background: #efeaff;
}

.lc-home-card-image,
.lc-home-card-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lc-home-card-image-placeholder {
    background: linear-gradient(135deg, #302b63 0%, #745acc 100%);
}

.lc-home-card-image {
    transition: transform 0.35s ease;
}

.lc-home-card:hover .lc-home-card-image {
    transform: scale(1.035);
}

.lc-home-card-body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px 14px 14px 14px;
}

.lc-home-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-home-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ece6ff;
    color: #3e2e84;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lc-home-card-tag:hover {
    background: #dfd4ff;
    color: #2f215f;
}

.lc-home-card-tag-empty {
    background: #f4f4f8;
    color: #5a5d69;
}

.lc-home-card-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.36;
    min-height: 2.72em;
}

.lc-home-card-title a {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1e1d33;
    text-decoration: none;
}

.lc-home-card-title a:hover {
    color: #4a36a6;
}

.lc-home-card-excerpt {
    margin: 0;
    color: #5c5875;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lc-home-card-meta-text {
    margin: auto 0 0 0;
    font-size: 12px;
    color: var(--lc-home-muted);
}

.lc-home-card-meta-text time {
    font-weight: 600;
    color: #4d5070;
}

.lc-home-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f4fd;
    color: #3f3860;
}

.lc-search-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px 0;
    padding: 12px 14px;
    border: 1px solid #e2dbf4;
    border-radius: 12px;
    background: #f8f5ff;
}

.lc-search-tools-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4f3f97;
}

.lc-search-tools-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(480px, 100%);
    margin: 0;
}

.lc-search-tools-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d7cdec;
    border-radius: 10px;
    background: #fff;
    color: #211a44;
    font-size: 14px;
}

.lc-search-tools-input:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 1px;
    border-color: #a78bfa;
}

.lc-search-tools-btn {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #5f4dc1;
    border-radius: 10px;
    background: linear-gradient(135deg, #5141b4 0%, #7556cd 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.lc-search-tools-btn:hover {
    border-color: #725de0;
    background: linear-gradient(135deg, #5d4cc7 0%, #8062d9 100%);
}

.lc-search-empty {
    padding: clamp(16px, 2.2vw, 24px);
    border: 1px solid #e2dbf4;
    border-radius: 14px;
    background: linear-gradient(180deg, #faf8ff 0%, #f4efff 100%);
}

.lc-search-empty-title {
    margin: 0 0 8px 0;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.25;
    color: #241d49;
}

.lc-search-empty-text {
    margin: 0 0 14px 0;
    color: #4b4665;
    font-size: 14px;
    line-height: 1.6;
}

.lc-search-empty-form {
    width: min(560px, 100%);
    margin-bottom: 12px;
}

.lc-search-empty-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-search-empty-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d7cdec;
    border-radius: 999px;
    background: #fff;
    color: #3e2e84;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.lc-search-empty-links a:hover {
    border-color: #b9a8ec;
    background: #f7f2ff;
}

body.search .lc-home-sections-wrap-archive {
    position: relative;
    margin-top: clamp(30px, 3.3vw, 48px);
    border: 1px solid #d7d0ea;
    border-radius: 22px;
    background:
        radial-gradient(980px 360px at 8% -8%, rgba(116, 90, 204, 0.13), rgba(116, 90, 204, 0) 62%),
        linear-gradient(180deg, #f0eef8 0%, #e8e7f2 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(29, 22, 58, 0.06);
}

body.search .lc-home-section-archive {
    border-color: #d5cdeb;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    box-shadow: 0 14px 30px rgba(33, 24, 68, 0.09);
}

body.search .lc-home-section-archive::before {
    height: 4px;
    background: linear-gradient(90deg, #6f5ad8 0%, #927aec 56%, #bda9ff 100%);
}

body.search .lc-home-section-archive::after {
    opacity: 0.42;
}

body.search .lc-search-tools {
    background: linear-gradient(180deg, #faf8ff 0%, #f4f0ff 100%);
    border-color: #d6caee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.search .lc-search-empty {
    background: #ffffff;
    border-color: #cfc2eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(28, 21, 53, 0.05);
}

.lc-home-loadmore-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.lc-home-loadmore {
    appearance: none;
    border: 1px solid #5f4dc1;
    border-radius: 10px;
    background: linear-gradient(135deg, #5141b4 0%, #7556cd 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 15px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lc-home-loadmore:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(48, 34, 97, 0.2);
}

.lc-home-loadmore.is-loading {
    opacity: 0.82;
    cursor: wait;
}

.lc-home-loadmore-status {
    font-size: 12px;
    color: var(--lc-home-muted);
}

.lc-home-loadmore-wrap.is-complete .lc-home-loadmore {
    display: none;
}

.lc-home-loadmore-sentinel {
    width: 1px;
    height: 1px;
    opacity: 0;
}

.lc-home-pagination {
    margin-top: 16px;
}

.lc-home-pagination-ajax {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-home-pagination-ajax.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.lc-home-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lc-home-pagination .page-numbers li {
    margin: 0;
}

.lc-home-pagination .page-numbers a,
.lc-home-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #dbd5ef;
    border-radius: 9px;
    background: #fff;
    color: #3e3a5b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.lc-home-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 2px;
}

.lc-home-pagination .page-numbers .disabled {
    opacity: 0.55;
}

.lc-home-pagination .page-numbers .current {
    border-color: #5e4dc0;
    background: #5e4dc0;
    color: #fff;
}

.lc-home-pagination .page-numbers a:hover {
    border-color: #8f7adf;
    color: #5643ad;
}

.lc-home-pagination .page-numbers a:focus-visible {
    outline: 2px solid #9f8df1;
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .lc-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lc-home-sections-wrap {
        padding: 20px 8px;
        gap: 18px;
        border-radius: 16px;
    }

    .lc-home-section {
        border-radius: 14px;
        padding: 16px;
    }

    .lc-home-title {
        font-size: clamp(1.22rem, 5.4vw, 1.52rem);
    }

    .lc-home-grid {
        grid-template-columns: 1fr;
    }

    .lc-archive-hero + .lc-home-sections-wrap-archive {
        padding-top: 12px;
    }

    .lc-search-tools {
        align-items: stretch;
    }

    .lc-search-tools-form {
        width: 100%;
    }

    body.search .lc-home-sections-wrap-archive {
        border-radius: 16px;
    }

    body.search .lc-home-section-archive {
        border-radius: 14px;
    }
}

