
/* ==========================================
   ASTRO HOROSCOPE PERIOD PAGE
========================================== */

.astro-period-page {
    --astro-brown: #713408;
    --astro-gold: #d7a137;
    --astro-cream: #fff9ee;
    --astro-border: #efe2ce;
    color: #172033;
    background: #fffdfa;
}

.astro-period-page * {
    box-sizing: border-box;
}

/* Hero */

.astro-period-hero {
    text-align: center;
    padding: 75px 20px 65px;
    background: linear-gradient(135deg, #fff9ed, #fff4df, #fffaf2);
}

.astro-period-tag,
.astro-period-eyebrow {
    display: inline-block;
    color: #a26a18;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
}

.astro-period-tag {
    padding: 9px 19px;
    background: #f9e4ad;
    border-radius: 50px;
}

.astro-period-hero h1 {
    font-size: clamp(34px, 4vw, 58px);
    color: var(--astro-brown);
    font-weight: 800;
    margin: 20px 0;
    line-height: 1.25;
}

.astro-period-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.85;
    color: #657080;
}

/* Content */

.astro-period-content {
    padding: 50px 0 80px;
}

/* Tabs */

.astro-period-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 55px;
}

.astro-period-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 12px;
    background: #fff;
    color: #663b15;
    border: 1px solid var(--astro-border);
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(90, 55, 15, .05);
    transition: .3s ease;
}

.astro-period-tab:hover,
.astro-period-tab.active {
    background: #78370c;
    color: #fff;
    border-color: #78370c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 45, 10, .16);
}

.astro-tab-icon {
    font-size: 25px;
    line-height: 1;
    color: var(--astro-gold);
}

/* Heading */

.astro-period-heading {
    margin-bottom: 30px;
}

.astro-period-heading h2 {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    color: var(--astro-brown);
    margin: 8px 0;
}

.astro-period-heading p {
    color: #77808c;
    font-size: 17px;
    margin: 0;
}

/* Zodiac Grid */

.astro-period-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.astro-period-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 165px;
    padding: 22px 18px;
    border: 1px solid var(--astro-border);
    border-radius: 17px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(70, 45, 10, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.astro-period-card::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background: #fff6e4;
    border-radius: 50%;
    top: -32px;
    right: -25px;
}

.astro-period-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(70, 45, 10, .12);
}

.astro-period-card-icon {
    flex: 0 0 75px;
    position: relative;
    z-index: 1;
}

.astro-period-card-icon img {
    display: block;
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: transform .35s ease;
}

.astro-period-card:hover img {
    transform: scale(1.1);
}

.astro-period-card-body {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.astro-period-english {
    display: block;
    font-size: 11px;
    color: #a78050;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.astro-period-card h3 {
    font-size: 23px;
    color: var(--astro-brown);
    margin: 5px 0 10px;
    line-height: 1.3;
}

.astro-period-date {
    display: block;
    color: #89909a;
    font-size: 12px;
    margin-bottom: 12px;
}

.astro-period-read {
    color: #a44a0a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.astro-period-read:hover {
    color: #d49b2e;
}

.astro-period-unavailable {
    color: #999;
    font-size: 13px;
}

/* Latest */

.astro-period-latest {
    padding: 75px 0;
    background: #f8fafc;
}

.astro-period-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.astro-period-latest-card {
    background: #fff;
    border: 1px solid var(--astro-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgba(70, 45, 10, .05);
    transition: .3s ease;
}

.astro-period-latest-card:hover {
    transform: translateY(-5px);
}

.astro-period-latest-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.astro-period-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.astro-period-latest-body {
    padding: 22px;
}

.astro-period-latest-body > span {
    font-size: 13px;
    color: #9b792d;
}

.astro-period-latest-body h3 {
    font-size: 21px;
    line-height: 1.5;
    margin: 12px 0 20px;
}

.astro-period-latest-body h3 a {
    color: #172033;
    text-decoration: none;
}

.astro-period-latest-body h3 a:hover {
    color: #a44a0a;
}

.astro-period-empty {
    padding: 35px;
    background: #fff;
    border: 1px solid var(--astro-border);
    border-radius: 14px;
    text-align: center;
}

/* Responsive */

@media (max-width: 1199px) {
    .astro-period-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .astro-period-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .astro-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .astro-period-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .astro-period-hero {
        padding: 55px 16px;
    }

    .astro-period-hero p {
        font-size: 16px;
    }

    .astro-period-content,
    .astro-period-latest {
        padding: 45px 0;
    }

    .astro-period-tabs {
        gap: 10px;
        margin-bottom: 35px;
    }

    .astro-period-tab {
        padding: 15px 8px;
        font-size: 15px;
        gap: 7px;
    }

    .astro-tab-icon {
        font-size: 20px;
    }

    .astro-period-grid {
        gap: 12px;
    }

    .astro-period-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
        gap: 10px;
    }

    .astro-period-card-icon {
        flex-basis: auto;
    }

    .astro-period-card-icon img {
        width: 65px;
        height: 65px;
    }

    .astro-period-card h3 {
        font-size: 19px;
    }

    .astro-period-latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .astro-period-tab {
        font-size: 13px;
    }

    .astro-period-card h3 {
        font-size: 17px;
    }
}
