/* zastrology.com — homepage redesign (scoped to .zsx-home) */

.frame.zsx-frame {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 56px;
    box-sizing: border-box;
    float: none;
}

.zsx-home {
    --zsx-ink: #1b1830;
    --zsx-muted: #6b6685;
    --zsx-line: #ebe8f7;
    --zsx-violet: #6d4aff;
    --zsx-pink: #e974a4;
    --zsx-gold: #f0b45f;
    --zsx-soft: #f6f5fb;
    color: var(--zsx-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.zsx-home * {
    box-sizing: border-box;
}

.zsx-home img {
    max-width: 100%;
    display: block;
}

.zsx-home a {
    color: inherit;
}

.zsx-home a:hover {
    color: inherit;
    text-decoration: none;
}

.zsx-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zsx-gold);
}

/* ---------- Hero ---------- */
.zsx-hero {
    position: relative;
    margin-top: 24px;
    padding: 52px 52px 0;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 82% -10%, rgba(233, 116, 164, 0.4), transparent 60%),
        radial-gradient(700px 500px at 8% 110%, rgba(109, 74, 255, 0.55), transparent 62%),
        linear-gradient(135deg, #14102e 0%, #221949 52%, #37204e 100%);
    box-shadow: 0 40px 70px -40px rgba(35, 20, 90, 0.65);
}

.zsx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 28% 64%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 46% 26%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 62% 78%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 74% 34%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 88% 58%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 94% 14%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 36% 86%, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.zsx-hero-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 48px;
    align-items: center;
}

.zsx-hero-copy {
    min-width: 0;
}

.zsx-hero-title {
    margin: 16px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.zsx-hero-desc {
    margin: 18px 0 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.zsx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.zsx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.zsx-btn-primary {
    color: #1b1030 !important;
    background: linear-gradient(120deg, #ffd08a, #f0b45f);
    box-shadow: 0 14px 30px -14px rgba(240, 180, 95, 0.9);
}

.zsx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -14px rgba(240, 180, 95, 1);
}

.zsx-btn-ghost {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.zsx-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.zsx-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.zsx-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.zsx-orbit-1 {
    width: 200px;
    height: 200px;
    animation: zsx-spin 26s linear infinite;
    border-style: dashed;
}

.zsx-orbit-2 {
    width: 280px;
    height: 280px;
    border-color: rgba(233, 116, 164, 0.35);
}

.zsx-orbit-3 {
    width: 360px;
    height: 360px;
    border-color: rgba(255, 255, 255, 0.08);
}

.zsx-hero-sign {
    position: relative;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 22px rgba(255, 208, 138, 0.75));
}

.zsx-hero-sign-name {
    position: relative;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: 0.02em;
}

.zsx-hero-sign-date {
    position: relative;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
}

.zsx-hero-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.zsx-hero-story {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 22px 24px 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease;
}

.zsx-hero-story:first-child {
    padding-left: 0;
}

.zsx-hero-story:last-child {
    border-right: 0;
    padding-right: 0;
}

.zsx-hero-story:hover {
    background: rgba(255, 255, 255, 0.05);
}

.zsx-hero-story-sign {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zsx-gold);
}

.zsx-hero-story-title {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.zsx-hero-story-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Sections ---------- */
.zsx-section {
    margin-top: 64px;
}

.zsx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.zsx-section-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.15;
    color: var(--zsx-ink);
}

.zsx-section-sub {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--zsx-muted);
}

.zsx-view-all {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--zsx-violet);
    white-space: nowrap;
}

.zsx-view-all:hover {
    color: var(--zsx-pink);
}

/* ---------- Zodiac signs ---------- */
.zsx-signs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.zsx-sign-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 12px 18px;
    border: 1px solid var(--zsx-line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.zsx-sign-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 74, 255, 0.45);
    box-shadow: 0 18px 34px -22px rgba(70, 45, 160, 0.45);
}

.zsx-sign-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--zsx-soft);
}

.zsx-sign-icon img {
    width: 48px;
    height: 48px;
}

.zsx-sign-name {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--zsx-ink);
}

.zsx-sign-date {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--zsx-muted);
}

/* ---------- Daily horoscope ---------- */
.zsx-daily {
    padding: 40px;
    border-radius: 26px;
    background: linear-gradient(180deg, #f7f5ff 0%, #f2effc 100%);
}

.zsx-daily-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.zsx-daily-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(109, 74, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zsx-daily-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -26px rgba(60, 40, 140, 0.5);
}

.zsx-daily-sign {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--zsx-violet) !important;
}

.zsx-daily-sign img {
    width: 30px;
    height: 30px;
}

.zsx-daily-title {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    color: var(--zsx-ink) !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 65px;
}

.zsx-daily-title:hover {
    color: var(--zsx-pink) !important;
}

.zsx-daily-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    color: var(--zsx-muted);
}

.zsx-read {
    font-weight: 700;
    color: var(--zsx-violet) !important;
    white-space: nowrap;
}

.zsx-read:hover {
    color: var(--zsx-pink) !important;
}

/* ---------- Article cards ---------- */
.zsx-grid {
    display: grid;
    gap: 22px;
}

.zsx-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zsx-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zsx-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--zsx-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.zsx-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 74, 255, 0.35);
    box-shadow: 0 24px 40px -28px rgba(60, 40, 140, 0.5);
}

.zsx-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--zsx-soft);
    overflow: hidden;
}

.zsx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zsx-card:hover .zsx-card-media img {
    transform: scale(1.04);
}

.zsx-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(27, 24, 48, 0.72);
    backdrop-filter: blur(4px);
}

.zsx-tag-tarot {
    background: rgba(109, 74, 255, 0.86);
}

.zsx-tag-num {
    background: rgba(233, 116, 164, 0.9);
}

.zsx-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.zsx-card-title {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--zsx-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.zsx-card-desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--zsx-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.zsx-card-date {
    margin-top: 14px;
    font-size: 12px;
    color: #a29db8;
}

/* ---------- CTA ---------- */
.zsx-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 64px;
    padding: 42px 48px;
    border-radius: 24px;
    background:
        radial-gradient(600px 260px at 100% 0%, rgba(233, 116, 164, 0.28), transparent 65%),
        linear-gradient(120deg, #1a1538, #2b1f52);
    color: #fff;
}

.zsx-cta-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
}

.zsx-cta-copy p {
    margin: 12px 0 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.zsx-cta .zsx-btn {
    flex: none;
}

@keyframes zsx-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .zsx-hero {
        padding: 44px 40px 0;
    }

    .zsx-hero-title {
        font-size: 34px;
    }

    .zsx-signs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .zsx-hero-main {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
        gap: 28px;
    }

    .zsx-orbit-3 {
        display: none;
    }

    .zsx-daily {
        padding: 32px 26px;
    }

    .zsx-daily-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .zsx-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 30px;
    }
}

@media (max-width: 750px) {
    .frame.zsx-frame {
        padding: 0 14px 40px;
        margin-top: 8px;
    }

    .zsx-hero {
        margin-top: 4px;
        padding: 32px 22px 0;
        border-radius: 20px;
    }

    .zsx-hero-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .zsx-hero-visual {
        display: none;
    }

    .zsx-hero-title {
        font-size: 27px;
        -webkit-line-clamp: 4;
    }

    .zsx-hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .zsx-hero-actions {
        margin-top: 22px;
    }

    .zsx-btn {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

    .zsx-hero-strip {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 30px;
    }

    .zsx-hero-story,
    .zsx-hero-story:first-child,
    .zsx-hero-story:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .zsx-hero-story:last-child {
        border-bottom: 0;
    }

    .zsx-section {
        margin-top: 44px;
    }

    .zsx-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .zsx-section-title {
        font-size: 25px;
    }

    .zsx-section-sub {
        font-size: 13px;
        margin-top: 8px;
    }

    .zsx-signs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .zsx-sign-card {
        padding: 16px 8px 14px;
        border-radius: 14px;
    }

    .zsx-sign-icon {
        width: 52px;
        height: 52px;
    }

    .zsx-sign-icon img {
        width: 38px;
        height: 38px;
    }

    .zsx-sign-name {
        margin-top: 10px;
        font-size: 13px;
    }

    .zsx-sign-date {
        font-size: 10px;
    }

    .zsx-daily {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .zsx-daily-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .zsx-daily-card {
        padding: 16px 14px;
    }

    .zsx-daily-title {
        font-size: 13px;
        min-height: 58px;
    }

    .zsx-daily-foot {
        padding-top: 12px;
    }

    .zsx-grid,
    .zsx-grid-3,
    .zsx-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .zsx-card {
        border-radius: 14px;
    }

    .zsx-card-body {
        padding: 14px 14px 16px;
    }

    .zsx-card-title {
        font-size: 14px;
    }

    .zsx-card-desc {
        display: none;
    }

    .zsx-card-date {
        margin-top: 10px;
        font-size: 11px;
    }

    .zsx-tag {
        left: 10px;
        top: 10px;
        padding: 4px 9px;
        font-size: 10px;
    }

    .zsx-cta {
        margin-top: 44px;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .zsx-cta-copy h2 {
        font-size: 23px;
    }

    .zsx-cta-copy p {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .zsx-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .zsx-hero-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zsx-orbit-1 {
        animation: none;
    }

    .zsx-home * {
        transition: none !important;
    }
}
