/* ========================================
   PlanningHUB Premium Components
   Shared layout & visual components
   ======================================== */

/* === Page Hero with Image Background === */
.ph-page-hero {
    position: relative;
    overflow: hidden;
}

.ph-page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ph-page-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.4);
}

.ph-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(8, 8, 13, 0.5) 0%,
        rgba(8, 8, 13, 0.85) 70%,
        var(--ph-bg) 100%
    );
}

.ph-page-hero > *:not(.ph-page-hero__bg) {
    position: relative;
    z-index: 1;
}

/* === Feature Showcase Card === */
.ph-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.ph-feature-card:nth-child(even) {
    direction: rtl;
}

.ph-feature-card:nth-child(even) > * {
    direction: ltr;
}

.ph-feature-card__image {
    position: relative;
    border-radius: var(--ph-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--ph-border);
}

.ph-feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ph-ease);
}

.ph-feature-card:hover .ph-feature-card__image img {
    transform: scale(1.05);
}

.ph-feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ph-feature-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-mint);
    background: var(--ph-mint-subtle);
    border: 1px solid rgba(92, 198, 195, 0.2);
    border-radius: var(--ph-radius-full);
}

.ph-feature-card__content h3 {
    font-family: var(--ph-font-display);
    font-size: 1.8rem;
    font-weight: 400;
}

.ph-feature-card__content p {
    font-size: 0.95rem;
    color: var(--ph-text-muted);
    line-height: 1.7;
}

.ph-feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ph-mint);
    transition: gap 0.3s ease;
}

.ph-feature-card__link:hover {
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .ph-feature-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ph-feature-card:nth-child(even) {
        direction: ltr;
    }
}

/* === Trust / Stats Bar === */
.ph-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--ph-border);
    border-bottom: 1px solid var(--ph-border);
}

.ph-trust-item {
    text-align: center;
}

.ph-trust-item__number {
    font-family: var(--ph-font-display);
    font-size: 2.5rem;
    font-style: italic;
    background: linear-gradient(135deg, var(--ph-mint), var(--ph-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ph-trust-item__label {
    font-size: 0.8rem;
    color: var(--ph-text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .ph-trust-bar {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .ph-trust-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .ph-trust-item__number {
        font-size: 2rem;
    }
}

/* === CTA Section === */
.ph-cta-section {
    position: relative;
    padding: 6rem 1.5rem;
    text-align: center;
    overflow: hidden;
}

.ph-cta-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ph-cta-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: brightness(0.5);
}

.ph-cta-section__bg .bg-grid-pattern {
    position: absolute;
    inset: 0;
}

.ph-cta-section > *:not(.ph-cta-section__bg) {
    position: relative;
    z-index: 1;
}

/* === Enhanced Footer === */
.ph-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--ph-border);
}

.ph-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ph-footer__brand p {
    color: var(--ph-text-subtle);
    font-size: 0.85rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.ph-footer__col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ph-text-subtle);
    margin-bottom: 1rem;
}

.ph-footer__col a {
    display: block;
    font-size: 0.85rem;
    color: var(--ph-text-muted);
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.ph-footer__col a:hover {
    color: var(--ph-text);
}

.ph-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .ph-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ph-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* === Auth Split Layout === */
.ph-auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.ph-auth-split__visual {
    position: relative;
    overflow: hidden;
}

.ph-auth-split__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.ph-auth-split__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(92, 198, 195, 0.1) 0%,
        rgba(8, 8, 13, 0.7) 50%,
        rgba(139, 111, 168, 0.1) 100%
    );
    display: flex;
    align-items: flex-end;
}

.ph-auth-split__visual-content {
    padding: 3rem;
    max-width: 350px;
}

.ph-auth-split__visual-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.ph-auth-split__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ph-auth-split {
        grid-template-columns: 1fr;
    }
    .ph-auth-split__visual {
        display: none;
    }
}

/* === Gradient Divider === */
.ph-divider-gradient {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--ph-mint) 20%,
        var(--ph-purple) 80%,
        transparent
    );
    opacity: 0.3;
}
