/* =========================================================
   CHATNEX — WEBSITE TEMPLATES PAGE COMPONENT
   File: /css/components/website-templates.css

   Purpose:
   Page-specific styling for:
   /pages/website-templates.html

   Global styles:
   /css/main.css

   Shared template styles:
   /css/templates.css

   Responsive rules:
   /css/responsive.css
   ========================================================= */


/* =========================================================
   01. PAGE FOUNDATION
   ========================================================= */

.website-templates-page {
    --website-section-gap: 110px;
    --website-card-radius: var(--radius-lg);
}

.website-templates-main {
    position: relative;
    overflow: hidden;
}

.website-templates-main > section {
    position: relative;
}


/* =========================================================
   02. WEBSITE TEMPLATES HERO
   ========================================================= */

.website-templates-hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(59, 130, 246, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(139, 92, 246, 0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--bg-primary),
            var(--bg-secondary)
        );

    border-bottom: 1px solid var(--border-color);
}

.website-templates-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    right: -140px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 211, 238, 0.12),
            transparent 68%
        );

    pointer-events: none;
}

.website-templates-hero::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    bottom: -220px;
    left: -160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59, 130, 246, 0.10),
            transparent 70%
        );

    pointer-events: none;
}

.website-templates-hero-content {
    position: relative;
    z-index: 1;

    max-width: 850px;
    margin: 0 auto;

    text-align: center;
}

.website-templates-hero-content .section-label {
    display: inline-flex;
    margin-bottom: 18px;
}

.website-templates-hero-content h1 {
    margin: 0;

    font-size: clamp(
        42px,
        6vw,
        76px
    );

    line-height: 1.04;
    letter-spacing: -0.045em;

    background:
        linear-gradient(
            135deg,
            var(--text-white) 15%,
            var(--brand-blue-light) 50%,
            var(--brand-cyan-light) 85%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.website-templates-hero-content p {
    max-width: 720px;

    margin: 24px auto 0;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.8;
}

.website-templates-hero-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;

    margin-top: 34px;
}


/* =========================================================
   03. CATEGORY SECTION
   ========================================================= */

.website-category-section {
    padding: 90px 0 45px;

    background:
        linear-gradient(
            180deg,
            var(--bg-primary),
            var(--bg-secondary)
        );
}

.website-category-section .section-header {
    margin-bottom: 30px;
}

.website-category-section .section-header > p {
    max-width: 520px;
}

.website-category-list {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px;

    overflow-x: auto;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    background:
        rgba(17, 26, 45, 0.62);

    box-shadow: var(--shadow-sm);

    scrollbar-width: thin;
}

.website-category-list::-webkit-scrollbar {
    height: 5px;
}

.website-category-list::-webkit-scrollbar-track {
    background: transparent;
}

.website-category-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-pill);
}

.website-category-list .template-category-btn {
    flex: 0 0 auto;

    min-height: 42px;
    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    background: transparent;

    color: var(--text-secondary);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-fast);
}

.website-category-list
.template-category-btn:hover {
    color: var(--text-primary);

    background:
        rgba(59, 130, 246, 0.08);

    border-color:
        rgba(96, 165, 250, 0.18);

    transform: translateY(-1px);
}

.website-category-list
.template-category-btn.active {
    color: var(--text-white);

    background:
        linear-gradient(
            135deg,
            var(--brand-blue),
            var(--brand-purple)
        );

    border-color:
        rgba(255, 255, 255, 0.10);

    box-shadow:
        0 8px 24px
        rgba(59, 130, 246, 0.20);
}


/* =========================================================
   04. TEMPLATE BROWSER
   ========================================================= */

.website-template-browser {
    padding: 45px 0 var(--website-section-gap);

    background: var(--bg-secondary);
}

.template-browser-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.template-browser-heading {
    max-width: 760px;
}

.template-browser-heading .section-label {
    margin-bottom: 12px;
}

.template-browser-heading h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(
        30px,
        4vw,
        48px
    );

    line-height: 1.1;
    letter-spacing: -0.025em;
}

.template-browser-heading p {
    max-width: 700px;

    margin: 15px 0 0;

    color: var(--text-secondary);

    line-height: 1.75;
}

.template-browser-header
.template-results {
    flex: 0 0 auto;
}

.template-browser-header
.template-count {
    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding: 0 14px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-pill);

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   05. TEMPLATE TOOLBAR
   ========================================================= */

.template-toolbar {
    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        auto
        auto;

    align-items: end;

    gap: 18px;

    margin-bottom: 18px;

    padding: 18px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    background:
        rgba(17, 26, 45, 0.72);

    box-shadow: var(--shadow-sm);
}

.template-search-wrapper {
    position: relative;
}

.template-search-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    z-index: 2;

    color: var(--text-muted);

    font-size: 21px;

    transform: translateY(-52%);

    pointer-events: none;
}

.template-search-wrapper .template-search {
    width: 100%;

    min-height: 48px;

    padding:
        0 16px 0 46px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-md);

    background:
        rgba(7, 11, 20, 0.65);

    color: var(--text-primary);

    font: inherit;

    outline: none;

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal);
}

.template-search-wrapper
.template-search::placeholder {
    color: var(--text-muted);
}

.template-search-wrapper
.template-search:hover {
    border-color:
        rgba(96, 165, 250, 0.25);
}

.template-search-wrapper
.template-search:focus {
    border-color:
        var(--brand-blue);

    background:
        var(--bg-card);

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.10);
}

.template-filter-group {
    display: flex;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}

.template-filter-label {
    color: var(--text-muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.template-filter-group
.template-filter-label {
    margin-right: 4px;
}

.template-filter-group
.template-filter-btn {
    min-height: 38px;

    padding: 0 13px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-pill);

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-secondary);

    font: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        transform var(--transition-fast);
}

.template-filter-group
.template-filter-btn:hover {
    color: var(--text-primary);

    border-color:
        var(--border-strong);

    transform: translateY(-1px);
}

.template-filter-group
.template-filter-btn.active {
    color: var(--text-white);

    background:
        var(--brand-blue);

    border-color:
        var(--brand-blue);

    box-shadow:
        0 7px 18px
        rgba(59, 130, 246, 0.18);
}

.template-sort-wrapper {
    display: flex;

    align-items: center;

    gap: 9px;
}

.template-sort {
    min-height: 42px;

    padding:
        0 38px 0 13px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-md);

    background-color:
        var(--bg-card);

    color: var(--text-primary);

    font: inherit;

    font-size: 13px;

    outline: none;

    cursor: pointer;

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.template-sort:hover {
    border-color:
        var(--border-strong);
}

.template-sort:focus {
    border-color:
        var(--brand-blue);

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.10);
}


/* =========================================================
   06. BROWSER CONTROLS
   ========================================================= */

.template-browser-controls {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;

    padding:
        13px 16px;

    border-bottom:
        1px solid var(--border-color);
}

.template-featured-toggle {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.template-featured-toggle input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.template-featured-check {
    position: relative;

    width: 19px;
    height: 19px;

    border:
        1px solid var(--border-color);

    border-radius: 6px;

    background:
        var(--bg-card);

    transition:
        background var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.template-featured-toggle
input:checked
+ .template-featured-check {
    background:
        var(--brand-blue);

    border-color:
        var(--brand-blue);

    box-shadow:
        0 5px 14px
        rgba(59, 130, 246, 0.20);
}

.template-featured-toggle
input:checked
+ .template-featured-check::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 4px;

    left: 5px;
    top: 5px;

    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(-45deg);
}

.template-view-controls {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-md);

    background:
        rgba(255, 255, 255, 0.025);
}

.template-view-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 32px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: var(--text-muted);

    font-size: 17px;

    cursor: pointer;

    transition:
        color var(--transition-normal),
        background var(--transition-normal);
}

.template-view-btn:hover {
    color: var(--text-primary);

    background:
        rgba(255, 255, 255, 0.05);
}

.template-view-btn.active {
    color: var(--text-white);

    background:
        var(--bg-card-hover);

    box-shadow: var(--shadow-xs);
}


/* =========================================================
   07. TEMPLATE GRID PAGE VARIANT
   ========================================================= */

.website-templates-grid {
    position: relative;

    min-height: 180px;
}

.website-templates-grid
.template-card {
    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.website-templates-grid
.template-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(96, 165, 250, 0.24);

    box-shadow:
        var(--shadow-lg),
        0 0 35px
        rgba(59, 130, 246, 0.08);
}


/* =========================================================
   08. WEBSITE CARD IMAGE AREA
   ========================================================= */

.website-templates-grid
.template-card-preview {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--bg-tertiary),
            var(--bg-card)
        );
}

.website-templates-grid
.template-card-preview::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.06),
            transparent 40%,
            rgba(139, 92, 246, 0.06)
        );

    opacity: 0;

    transition:
        opacity var(--transition-normal);

    pointer-events: none;
}

.website-templates-grid
.template-card:hover
.template-card-preview::after {
    opacity: 1;
}

.website-templates-grid
.template-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition-slow),
        opacity var(--transition-normal);
}

.website-templates-grid
.template-card:hover
.template-card-image {
    transform: scale(1.035);
}


/* =========================================================
   09. WEBSITE CATEGORY COLOR HELPERS
   ========================================================= */

.website-templates-page
.category-business {
    --category-color: var(--brand-blue);
}

.website-templates-page
.category-portfolio {
    --category-color: var(--brand-purple);
}

.website-templates-page
.category-agency {
    --category-color: var(--brand-cyan);
}

.website-templates-page
.category-ecommerce {
    --category-color: var(--brand-green);
}

.website-templates-page
.category-landing-page {
    --category-color: var(--brand-blue-light);
}

.website-templates-page
.category-blog {
    --category-color: var(--brand-purple-light);
}

.website-templates-page
.category-technology {
    --category-color: var(--brand-cyan-light);
}


/* =========================================================
   10. BENEFITS SECTION
   ========================================================= */

.website-template-benefits {
    padding: var(--website-section-gap) 0;

    background:
        linear-gradient(
            180deg,
            var(--bg-secondary),
            var(--bg-primary)
        );

    border-top:
        1px solid var(--border-color);
}

.website-template-benefits
.section-header {
    max-width: 760px;

    margin: 0 auto 48px;

    text-align: center;
}

.website-template-benefits
.section-header .section-label {
    margin-bottom: 13px;
}

.website-template-benefits
.section-header h2 {
    margin: 0;

    font-size: clamp(
        30px,
        4vw,
        48px
    );

    line-height: 1.12;

    letter-spacing: -0.025em;
}

.website-template-benefits
.section-header p {
    max-width: 650px;

    margin: 16px auto 0;

    color: var(--text-secondary);

    line-height: 1.75;
}

.website-benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.website-benefit-card {
    position: relative;

    min-height: 250px;

    padding: 28px;

    border:
        1px solid var(--border-color);

    border-radius: var(--website-card-radius);

    background:
        linear-gradient(
            145deg,
            rgba(17, 26, 45, 0.94),
            rgba(14, 22, 40, 0.82)
        );

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.website-benefit-card::before {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    top: -100px;
    right: -70px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59, 130, 246, 0.13),
            transparent 68%
        );

    pointer-events: none;
}

.website-benefit-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(96, 165, 250, 0.24);

    box-shadow:
        var(--shadow-lg),
        var(--shadow-blue);
}

.website-benefit-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 22px;

    border:
        1px solid rgba(96, 165, 250, 0.20);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.14),
            rgba(139, 92, 246, 0.12)
        );

    color: var(--brand-blue-light);

    font-size: 20px;

    box-shadow:
        inset 0 0 18px
        rgba(59, 130, 246, 0.05);
}

.website-benefit-card h3 {
    margin: 0;

    color: var(--text-primary);

    font-size: 18px;
    line-height: 1.3;
}

.website-benefit-card p {
    margin: 12px 0 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   11. TECHNOLOGY SECTION
   ========================================================= */

.website-technology-section {
    padding: var(--website-section-gap) 0;

    background: var(--bg-primary);

    border-top:
        1px solid var(--border-color);
}

.website-technology-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.85fr);

    align-items: center;

    gap: 70px;
}

.website-technology-copy {
    max-width: 650px;
}

.website-technology-copy
.section-label {
    margin-bottom: 14px;
}

.website-technology-copy h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(
        32px,
        4vw,
        52px
    );

    line-height: 1.08;

    letter-spacing: -0.035em;
}

.website-technology-copy p {
    max-width: 620px;

    margin: 20px 0 0;

    color: var(--text-secondary);

    line-height: 1.8;
}

.website-technology-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 28px;
}

.website-technology-tags span {
    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding: 0 14px;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-pill);

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 700;

    transition:
        color var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal),
        transform var(--transition-fast);
}

.website-technology-tags span:hover {
    color: var(--text-primary);

    border-color:
        var(--border-strong);

    background:
        rgba(59, 130, 246, 0.07);

    transform: translateY(-2px);
}


/* =========================================================
   12. CODE PREVIEW
   ========================================================= */

.website-code-preview {
    position: relative;

    min-height: 300px;

    padding: 0;

    overflow: hidden;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-xl);

    background:
        #080d18;

    box-shadow:
        var(--shadow-lg),
        0 0 70px
        rgba(59, 130, 246, 0.08);

    transform:
        perspective(1000px)
        rotateY(-4deg)
        rotateX(2deg);

    transition:
        transform var(--transition-slow),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.website-code-preview:hover {
    transform:
        perspective(1000px)
        rotateY(0deg)
        rotateX(0deg)
        translateY(-4px);

    border-color:
        rgba(96, 165, 250, 0.25);

    box-shadow:
        var(--shadow-lg),
        0 0 80px
        rgba(59, 130, 246, 0.12);
}

.website-code-header {
    display: flex;

    align-items: center;

    gap: 7px;

    height: 48px;

    padding: 0 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

    background:
        rgba(255, 255, 255, 0.025);
}

.website-code-header span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.22);
}

.website-code-header span:first-child {
    background: rgba(239, 68, 68, 0.75);
}

.website-code-header span:nth-child(2) {
    background: rgba(234, 179, 8, 0.75);
}

.website-code-header span:nth-child(3) {
    background: rgba(34, 197, 94, 0.75);
}

.website-code-content {
    display: flex;

    flex-direction: column;

    gap: 15px;

    padding: 32px 28px;

    color: var(--text-secondary);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 14px;

    line-height: 1.7;
}

.website-code-content .code-line {
    display: block;

    opacity: 0.86;

    transition:
        opacity var(--transition-normal),
        transform var(--transition-normal);
}

.website-code-preview:hover
.code-line {
    opacity: 1;

    transform: translateX(4px);
}

.website-code-content
.code-line:nth-child(1) {
    color: var(--brand-purple-light);
}

.website-code-content
.code-line:nth-child(2) {
    color: var(--brand-cyan-light);
}

.website-code-content
.code-line:nth-child(3) {
    color: var(--brand-green-light);
}

.website-code-content
.code-line:nth-child(4) {
    color: var(--brand-purple-light);
}


/* =========================================================
   13. CROSS-LINK SECTION
   ========================================================= */

.website-cross-link-section {
    padding: 0 0 var(--website-section-gap);

    background: var(--bg-primary);
}

.website-cross-link-card {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 48px;

    overflow: hidden;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(139, 92, 246, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(17, 26, 45, 0.98),
            rgba(10, 16, 32, 0.98)
        );

    box-shadow: var(--shadow-lg);
}

.website-cross-link-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -140px;
    left: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 211, 238, 0.10),
            transparent 70%
        );

    pointer-events: none;
}

.website-cross-link-card > div {
    position: relative;
    z-index: 1;
}

.website-cross-link-card .section-label {
    margin-bottom: 12px;
}

.website-cross-link-card h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(
        26px,
        3vw,
        38px
    );

    line-height: 1.12;

    letter-spacing: -0.025em;
}

.website-cross-link-card p {
    max-width: 650px;

    margin: 13px 0 0;

    color: var(--text-secondary);

    line-height: 1.7;
}

.website-cross-link-card .btn {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;
}


/* =========================================================
   14. TEMPLATE LOADING STATE
   ========================================================= */

.website-templates-page
.templates-loading {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 260px;

    padding: 50px 20px;

    color: var(--text-secondary);
}

.website-templates-page
.templates-loading[aria-hidden="true"] {
    display: none;
}

.website-templates-page
.template-loading-spinner {
    width: 42px;
    height: 42px;

    margin-bottom: 16px;

    border:
        3px solid
        rgba(148, 163, 184, 0.15);

    border-top-color:
        var(--brand-blue);

    border-right-color:
        var(--brand-cyan);

    border-radius: 50%;

    animation:
        websiteTemplateSpin
        0.8s linear infinite;
}

.website-templates-page
.templates-loading p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   15. EMPTY STATE
   ========================================================= */

.website-templates-page
.templates-empty {
    max-width: 620px;

    margin: 40px auto;

    padding: 55px 30px;

    text-align: center;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-xl);

    background:
        rgba(17, 26, 45, 0.65);

    box-shadow: var(--shadow-md);
}

.website-templates-page
.templates-empty[hidden] {
    display: none;
}

.templates-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    border:
        1px solid var(--border-color);

    border-radius: 18px;

    background:
        rgba(59, 130, 246, 0.07);

    color: var(--brand-blue-light);

    font-size: 27px;
}

.website-templates-page
.templates-empty h3 {
    margin: 0;

    color: var(--text-primary);

    font-size: 23px;
}

.website-templates-page
.templates-empty p {
    max-width: 480px;

    margin: 12px auto 24px;

    color: var(--text-secondary);

    line-height: 1.7;
}


/* =========================================================
   16. PAGE REVEAL ANIMATION
   ========================================================= */

.website-templates-page
.template-reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;

    transition-delay:
        var(--reveal-delay, 0ms);
}

.website-templates-page
.template-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   17. INTERACTION STATES
   ========================================================= */

.website-templates-page
.category-switcher-card.is-hovered {
    z-index: 2;
}

.website-templates-page
.template-collection-card.is-opening {
    transform: translateY(-3px);
}

.website-templates-page
.website-benefit-card:focus-within {
    border-color:
        var(--border-strong);

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.08);
}

.website-templates-page
.website-cross-link-card
.btn:focus-visible,
.website-templates-page
.template-category-btn:focus-visible,
.website-templates-page
.template-filter-btn:focus-visible,
.website-templates-page
.template-view-btn:focus-visible,
.website-templates-page
.template-featured-toggle:focus-within,
.website-templates-page
.template-sort:focus-visible,
.website-templates-page
.template-search:focus-visible {
    outline:
        2px solid
        var(--brand-cyan);

    outline-offset: 3px;
}


/* =========================================================
   18. LIGHT MODE
   ========================================================= */

body.light-mode.website-templates-page
.website-templates-hero {
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(59, 130, 246, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(139, 92, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--bg-primary),
            var(--bg-secondary)
        );
}

body.light-mode.website-templates-page
.website-category-list,
body.light-mode.website-templates-page
.template-toolbar,
body.light-mode.website-templates-page
.website-benefit-card,
body.light-mode.website-templates-page
.website-cross-link-card,
body.light-mode.website-templates-page
.templates-empty {
    background:
        rgba(255, 255, 255, 0.76);
}

body.light-mode.website-templates-page
.template-search-wrapper
.template-search {
    background:
        rgba(255, 255, 255, 0.90);
}

body.light-mode.website-templates-page
.template-sort {
    background:
        var(--bg-card);
}

body.light-mode.website-templates-page
.website-code-preview {
    background:
        #101827;
}

body.light-mode.website-templates-page
.website-code-preview {
    box-shadow:
        0 20px 60px
        rgba(15, 23, 42, 0.12);
}


/* =========================================================
   19. MOTION CONTROL
   ========================================================= */

@keyframes websiteTemplateSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@media (prefers-reduced-motion: reduce) {

    .website-templates-page *,
    .website-templates-page *::before,
    .website-templates-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .website-templates-page
    .template-reveal {
        opacity: 1;
        transform: none;
    }

}


/* =========================================================
   20. END
   ========================================================= */
