/* ================================================================
   PAGE BASE STYLES
   Shared layout for all public content pages
   ================================================================ */

/* Page Hero */
.page-hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 201, 80, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Theme color variants */
.page-hero[data-theme="green"] .page-hero-icon { background: rgba(0, 201, 80, 0.1); color: var(--main-green); border-color: rgba(0, 201, 80, 0.25); }
.page-hero[data-theme="red"] .page-hero-icon { background: rgba(224, 25, 30, 0.1); color: var(--main-red); border-color: rgba(224, 25, 30, 0.25); }
.page-hero[data-theme="blue"] .page-hero-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.25); }
.page-hero[data-theme="dark"] .page-hero-icon { background: rgba(2, 6, 24, 0.08); color: var(--main-dark-blue); border-color: rgba(2, 6, 24, 0.15); }

.page-hero[data-theme="green"] .page-hero-badge { background: rgba(0, 201, 80, 0.08); color: var(--main-green); border-color: rgba(0, 201, 80, 0.2); }
.page-hero[data-theme="red"] .page-hero-badge { background: rgba(224, 25, 30, 0.08); color: var(--main-red); border-color: rgba(224, 25, 30, 0.2); }
.page-hero[data-theme="blue"] .page-hero-badge { background: rgba(59, 130, 246, 0.08); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.page-hero[data-theme="dark"] .page-hero-badge { background: rgba(2, 6, 24, 0.06); color: var(--main-dark-blue); border-color: rgba(2, 6, 24, 0.15); }

.page-hero-icon {
    width: 72px;
    height: 72px;
    border: 1px solid;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease;
}

.page-hero:hover .page-hero-icon {
    transform: scale(1.05) rotate(-3deg);
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.page-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--main-dark-blue);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

/* ================================================================
   PAGE CONTENT AREA
   ================================================================ */
.page-content {
    padding: 3.5rem 0;
    min-height: 400px;
}

/* Coming Soon Placeholder */
.coming-soon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    box-shadow: 0 4px 16px rgba(2, 6, 24, 0.04);
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-green), var(--main-red));
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #d97706;
    margin: 0 auto 1.25rem;
    animation: csPulse 2s ease-in-out infinite;
}

@keyframes csPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin: 0 0 0.5rem 0;
}

.coming-soon-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.coming-soon-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
}

.coming-soon-cta:hover {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
    color: #ffffff;
}

/* Feature Preview Cards */
.page-features-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin: 0 0 1.75rem 0;
}

.page-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.page-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: pfFadeIn 0.5s ease forwards;
}

.page-feature-card:nth-child(1) { animation-delay: 0.05s; }
.page-feature-card:nth-child(2) { animation-delay: 0.12s; }
.page-feature-card:nth-child(3) { animation-delay: 0.19s; }
.page-feature-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes pfFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.page-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--main-green);
    box-shadow: 0 10px 24px rgba(0, 201, 80, 0.1);
}

.page-feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 201, 80, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    font-size: 1.4rem;
    margin: 0 auto 0.85rem;
    transition: all 0.3s ease;
}

.page-feature-card:hover .page-feature-icon {
    background: var(--main-green);
    color: #ffffff;
    transform: scale(1.08) rotate(-5deg);
}

.page-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin: 0 0 0.35rem 0;
}

.page-feature-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Loading State */
.page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .page-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-hero-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .page-hero-title {
        font-size: 1.5rem;
    }
    
    .page-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .page-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .page-content {
        padding: 2.5rem 0;
    }
    
    .coming-soon-card {
        padding: 2rem 1.25rem;
    }
    
    .page-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}