/*
Theme Name: WebdyAuto
Theme URI: https://webdy.vn/
Author: Webdy
Author URI: https://webdy.vn/
Description: Theme marketplace hiện đại cho hệ thống WebdyAuto, dùng để trưng bày demo và tạo website tự động.
Version: 0.0.19
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: webdyauto
*/

:root {
    --wa-blue: #3157ff;
    --wa-blue-dark: #1f36d4;
    --wa-violet: #6947ff;
    --wa-green: #10b981;
    --wa-orange: #f59e0b;
    --wa-ink: #101828;
    --wa-heading: #182033;
    --wa-text: #667085;
    --wa-muted: #98a2b3;
    --wa-line: #dfe5f2;
    --wa-soft-line: #edf1f7;
    --wa-surface: #ffffff;
    --wa-page: #f7faff;
    --wa-shadow: 0 18px 50px rgba(31, 54, 212, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--wa-page);
    color: var(--wa-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.6;
    margin: 0;
    min-width: 320px;
}

a {
    color: var(--wa-blue);
    text-decoration: none;
}

a:hover {
    color: var(--wa-blue-dark);
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

.webdyauto-container {
    margin: 0 auto;
    max-width: 1480px;
    padding: 0 28px;
}

.webdyauto-site-header {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 229, 242, 0.9);
    position: sticky;
    top: 0;
    z-index: 80;
}

.webdyauto-header-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 72px;
}

.webdyauto-brand {
    align-items: center;
    color: var(--wa-heading);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 26px;
    font-weight: 900;
    gap: 10px;
    line-height: 1;
}

.webdyauto-brand:hover {
    color: var(--wa-heading);
}

.webdyauto-brand-mark {
    display: inline-grid;
    gap: 3px;
    grid-template-columns: repeat(3, 12px);
    height: 32px;
    transform: skew(-12deg);
    width: 48px;
}

.webdyauto-brand-mark span {
    background: linear-gradient(135deg, var(--wa-blue), var(--wa-violet));
    border-radius: 4px;
}

.webdyauto-brand-mark span:nth-child(1) {
    height: 31px;
}

.webdyauto-brand-mark span:nth-child(2) {
    height: 24px;
    margin-top: 7px;
}

.webdyauto-brand-mark span:nth-child(3) {
    height: 31px;
}

.webdyauto-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.webdyauto-nav ul,
.webdyauto-nav__fallback {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.webdyauto-nav a {
    border-bottom: 2px solid transparent;
    color: #263247;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    min-height: 72px;
    padding: 25px 14px 21px;
}

.webdyauto-nav .current-menu-item > a,
.webdyauto-nav a:hover {
    background: linear-gradient(180deg, rgba(49, 87, 255, 0.08), rgba(49, 87, 255, 0));
    border-bottom-color: var(--wa-blue);
    color: var(--wa-blue);
}

.webdyauto-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.webdyauto-action-link {
    align-items: center;
    color: #182033;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
    white-space: nowrap;
}

.webdyauto-icon-button,
.webdyauto-auth-link {
    align-items: center;
    background: #fff;
    border: 1px solid var(--wa-line);
    border-radius: 8px;
    color: #182033;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 0 16px;
    position: relative;
    white-space: nowrap;
}

.webdyauto-icon-button svg,
.webdyauto-action-link svg {
    height: 21px;
    width: 21px;
}

.webdyauto-badge {
    align-items: center;
    background: var(--wa-blue);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 5px;
    position: absolute;
    right: -5px;
    top: -7px;
}

.webdyauto-auth-link--primary {
    background: linear-gradient(135deg, var(--wa-blue), var(--wa-violet));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px rgba(49, 87, 255, 0.24);
}

.webdyauto-main {
    min-height: calc(100vh - 72px);
}

.webdyauto-hero {
    background:
        radial-gradient(circle at 82% 28%, rgba(16, 185, 129, 0.14), transparent 22%),
        radial-gradient(circle at 8% 12%, rgba(49, 87, 255, 0.15), transparent 27%),
        linear-gradient(180deg, #f3f8ff 0%, #eef6ff 78%, #fff 100%);
    overflow: hidden;
    padding: 54px 0 0;
}

.webdyauto-hero__grid {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
}

.webdyauto-eyebrow {
    color: var(--wa-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.webdyauto-hero h1 {
    color: var(--wa-heading);
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 18px;
    max-width: 720px;
}

.webdyauto-hero p {
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
    max-width: 650px;
}

.webdyauto-search {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--wa-soft-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(31, 54, 212, 0.12);
    display: flex;
    margin-top: 28px;
    max-width: 700px;
    overflow: hidden;
}

.webdyauto-search input {
    background: transparent;
    border: 0;
    color: #263247;
    flex: 1 1 auto;
    font-size: 16px;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 0 22px;
}

.webdyauto-search input::placeholder {
    color: #98a2b3;
}

.webdyauto-search button {
    background: linear-gradient(135deg, var(--wa-blue), var(--wa-violet));
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    min-width: 140px;
    padding: 0 28px;
}

.webdyauto-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 34px;
    margin-top: 22px;
}

.webdyauto-trust-item {
    align-items: center;
    color: var(--wa-blue);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.webdyauto-check {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    height: 18px;
    justify-content: center;
    line-height: 1;
    width: 18px;
}

.webdyauto-hero-visual {
    min-height: 360px;
    position: relative;
}

.webdyauto-demo-label {
    background: linear-gradient(135deg, var(--wa-blue), var(--wa-violet));
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(49, 87, 255, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    left: 0;
    line-height: 1.3;
    padding: 14px 24px;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 18px;
    z-index: 4;
}

.webdyauto-demo-label::after {
    border: solid var(--wa-blue);
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 90px;
    content: "";
    height: 110px;
    left: -18px;
    position: absolute;
    top: 54px;
    transform: rotate(-18deg);
    width: 120px;
}

.webdyauto-device {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(24, 32, 51, 0.24);
    overflow: hidden;
    position: absolute;
}

.webdyauto-device--desktop {
    height: 360px;
    right: 92px;
    top: 0;
    width: 520px;
}

.webdyauto-device--tablet {
    height: 270px;
    left: 108px;
    top: 112px;
    width: 230px;
    z-index: 2;
}

.webdyauto-device--phone {
    border-radius: 18px;
    bottom: -22px;
    height: 265px;
    right: 0;
    width: 150px;
    z-index: 3;
}

.webdyauto-device__bar {
    align-items: center;
    background: #222936;
    display: flex;
    gap: 6px;
    height: 24px;
    padding: 0 12px;
}

.webdyauto-device__bar span {
    background: #f87171;
    border-radius: 999px;
    height: 7px;
    width: 7px;
}

.webdyauto-device__bar span:nth-child(2) {
    background: #fbbf24;
}

.webdyauto-device__bar span:nth-child(3) {
    background: #34d399;
}

.webdyauto-device__screen {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.18)),
        linear-gradient(135deg, #111827 0%, #2f3746 48%, #f4eadb 49%, #ffffff 100%);
    height: calc(100% - 24px);
    padding: 28px;
    position: relative;
}

.webdyauto-device__screen::before {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 6px;
    bottom: 28px;
    content: "";
    height: 72px;
    left: 28px;
    position: absolute;
    right: 28px;
}

.webdyauto-device__title {
    color: #fff;
    display: block;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.18;
    max-width: 280px;
    position: relative;
    z-index: 1;
}

.webdyauto-device--tablet .webdyauto-device__screen,
.webdyauto-device--phone .webdyauto-device__screen {
    padding: 20px;
}

.webdyauto-device--tablet .webdyauto-device__title {
    font-size: 18px;
}

.webdyauto-device--phone .webdyauto-device__title {
    font-size: 15px;
}

.webdyauto-plant {
    background: linear-gradient(180deg, #d8efe3, #ffffff);
    border-radius: 60px 60px 12px 12px;
    bottom: 0;
    height: 250px;
    position: absolute;
    right: 2px;
    transform: translateX(66%);
    width: 82px;
}

.webdyauto-plant::before {
    background:
        radial-gradient(ellipse at center, transparent 0 45%, #74b985 46% 58%, transparent 59%),
        radial-gradient(ellipse at center, transparent 0 45%, #74b985 46% 58%, transparent 59%);
    content: "";
    height: 210px;
    left: -52px;
    position: absolute;
    top: -86px;
    transform: rotate(-20deg);
    width: 160px;
}

.webdyauto-marketplace {
    background: #fff;
    padding: 34px 0 42px;
}

.webdyauto-section-head {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.webdyauto-section-head h2 {
    color: var(--wa-heading);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.webdyauto-section-head p {
    color: var(--wa-text);
    margin: 8px 0 0;
}

.webdyauto-outline-link {
    border: 1px solid #bfc9ff;
    border-radius: 8px;
    color: var(--wa-blue);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 16px;
    white-space: nowrap;
}

.webdyauto-market-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 250px minmax(0, 1fr);
}

.webdyauto-categories {
    background: #fff;
    border: 1px solid var(--wa-line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
    padding: 16px;
    position: sticky;
    top: 92px;
}

.webdyauto-categories h3 {
    color: #182033;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 10px;
}

.webdyauto-category-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.webdyauto-category-list button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #344054;
    cursor: pointer;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 7px 8px;
    text-align: left;
    width: 100%;
}

.webdyauto-category-list button:hover,
.webdyauto-category-list button.is-active {
    background: #eef1ff;
    color: var(--wa-blue);
}

.webdyauto-category-icon {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    display: inline-flex;
    font-size: 12px;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.webdyauto-category-count {
    background: #edf1ff;
    border-radius: 999px;
    color: var(--wa-blue);
    font-size: 12px;
    font-weight: 900;
    padding: 1px 8px;
}

.webdyauto-category-more {
    background: #f0f3ff;
    border: 0;
    border-radius: 8px;
    color: var(--wa-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
    min-height: 38px;
    width: 100%;
}

.webdyauto-template-board {
    min-width: 0;
}

.webdyauto-plugin-missing {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-weight: 700;
    padding: 18px;
}

.webdyauto-template-board .webdy-builder {
    color: var(--wa-text);
    padding: 0;
}

.webdyauto-template-board .webdy-builder__search {
    display: none;
}

.webdyauto-template-board .webdy-builder__grid {
    gap: 24px !important;
    grid-template-columns: repeat(var(--webdy-columns, 4), minmax(0, 1fr)) !important;
}

.webdyauto-template-board .webdy-builder-card {
    border: 1px solid var(--wa-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(24, 32, 51, 0.08) !important;
    overflow: hidden;
    transform: translateY(0);
}

.webdyauto-template-board .webdy-builder-card:hover {
    box-shadow: 0 18px 42px rgba(49, 87, 255, 0.16) !important;
    transform: translateY(-3px);
}

.webdyauto-template-board .webdy-builder-card__preview {
    background: #edf2f8 !important;
    height: 176px !important;
    position: relative;
}

.webdyauto-template-board .webdy-builder-card__preview::after {
    align-items: center;
    background: #fff;
    border: 1px solid var(--wa-line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(24, 32, 51, 0.12);
    color: #475467;
    content: "♡";
    display: flex;
    font-size: 24px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
}

.webdyauto-template-board .webdy-builder-card__preview img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    width: 100% !important;
}

.webdyauto-template-board .webdy-builder-card__placeholder {
    font-size: 15px !important;
}

.webdyauto-template-board .webdy-builder-card__price {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(223, 229, 242, 0.9);
    border-radius: 999px;
    bottom: 10px !important;
    box-shadow: 0 10px 22px rgba(24, 32, 51, 0.12);
    color: var(--wa-blue) !important;
    font-size: 14px !important;
    min-width: 0 !important;
    padding: 5px 10px !important;
    right: 10px !important;
}

.webdyauto-template-board .webdy-builder-card__price::before {
    display: none !important;
}

.webdyauto-template-board .webdy-builder-card__footer {
    align-items: stretch !important;
    display: grid !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 14px !important;
}

.webdyauto-template-board .webdy-builder-card__meta {
    display: flex;
    flex-direction: column;
    min-height: 52px;
}

.webdyauto-template-board .webdy-builder-card__meta h3 {
    color: var(--wa-heading) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.webdyauto-template-board .webdy-builder-card__meta span {
    color: #7c8798 !important;
    font-size: 13px !important;
    font-weight: 600;
    margin: 0 0 5px !important;
    order: -1;
}

.webdyauto-template-board .webdy-builder-card__create {
    background: linear-gradient(135deg, var(--wa-blue), var(--wa-violet)) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 22px rgba(49, 87, 255, 0.22) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    min-height: 42px !important;
    width: 100%;
}

.webdyauto-template-board .webdy-builder-card__create:hover {
    background: linear-gradient(135deg, var(--wa-blue-dark), var(--wa-blue)) !important;
}

.webdyauto-template-board .webdy-builder-card__create span {
    font-size: 22px !important;
}

.webdyauto-template-board .webdy-builder-my-sites {
    background: #f8fbff;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    margin-top: 34px;
    padding: 26px;
}

.webdyauto-benefits {
    background: #fff;
    padding: 16px 0 48px;
}

.webdyauto-benefits__inner {
    background: linear-gradient(180deg, #fbfdff, #f5f8ff);
    border: 1px solid var(--wa-soft-line);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(24, 32, 51, 0.06);
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 24px 30px;
}

.webdyauto-benefit {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.webdyauto-benefit__icon {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: var(--wa-blue);
    display: inline-flex;
    flex: 0 0 auto;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.webdyauto-benefit strong {
    color: #182033;
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.webdyauto-benefit span {
    color: #7c8798;
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
}

.webdyauto-page-content {
    background: #fff;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(24, 32, 51, 0.06);
    margin: 42px auto;
    max-width: 960px;
    padding: 34px;
}

.webdyauto-page-content h1,
.webdyauto-page-content h2,
.webdyauto-page-content h3 {
    color: var(--wa-heading);
    line-height: 1.25;
}

.webdyauto-site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 30px 0;
}

.webdyauto-footer-inner {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

@media (max-width: 1380px) {
    .webdyauto-template-board .webdy-builder__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .webdyauto-device--desktop {
        right: 70px;
        width: 470px;
    }
}

@media (max-width: 1180px) {
    .webdyauto-header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .webdyauto-nav {
        order: 3;
        width: 100%;
    }

    .webdyauto-nav ul,
    .webdyauto-nav__fallback {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .webdyauto-nav a {
        min-height: 42px;
        padding: 10px 12px;
    }

    .webdyauto-hero__grid {
        grid-template-columns: 1fr;
    }

    .webdyauto-hero-visual {
        min-height: 430px;
    }

    .webdyauto-device--desktop {
        left: auto;
        right: 130px;
    }

    .webdyauto-market-layout {
        grid-template-columns: 1fr;
    }

    .webdyauto-categories {
        position: static;
    }

    .webdyauto-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .webdyauto-benefits__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .webdyauto-container {
        padding: 0 18px;
    }

    .webdyauto-header-actions {
        display: none;
    }

    .webdyauto-hero {
        padding-top: 38px;
    }

    .webdyauto-hero p {
        font-size: 16px;
    }

    .webdyauto-search {
        display: grid;
    }

    .webdyauto-search input,
    .webdyauto-search button {
        min-height: 54px;
        width: 100%;
    }

    .webdyauto-hero-visual {
        min-height: 330px;
    }

    .webdyauto-demo-label {
        left: 8px;
        top: 0;
    }

    .webdyauto-device--desktop {
        height: 245px;
        right: 48px;
        top: 70px;
        width: 350px;
    }

    .webdyauto-device--tablet {
        height: 210px;
        left: 12px;
        top: 126px;
        width: 168px;
    }

    .webdyauto-device--phone {
        bottom: -10px;
        height: 210px;
        right: 0;
        width: 116px;
    }

    .webdyauto-device__screen {
        padding: 18px;
    }

    .webdyauto-device__title {
        font-size: 18px;
    }

    .webdyauto-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .webdyauto-category-list {
        grid-template-columns: 1fr;
    }

    .webdyauto-template-board .webdy-builder__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .webdyauto-brand {
        font-size: 22px;
    }

    .webdyauto-brand-mark {
        grid-template-columns: repeat(3, 9px);
        height: 27px;
        width: 38px;
    }

    .webdyauto-hero h1 {
        font-size: 34px;
    }

    .webdyauto-trust-list {
        gap: 12px;
    }

    .webdyauto-hero-visual {
        min-height: 265px;
    }

    .webdyauto-demo-label {
        font-size: 11px;
        padding: 10px 14px;
    }

    .webdyauto-device--desktop {
        height: 198px;
        right: 22px;
        width: 282px;
    }

    .webdyauto-device--tablet {
        display: none;
    }

    .webdyauto-device--phone {
        height: 182px;
        width: 96px;
    }

    .webdyauto-template-board .webdy-builder__grid,
    .webdyauto-benefits__inner {
        grid-template-columns: 1fr !important;
    }

    .webdyauto-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
