/**
 * InvestHub Public Pages Styles
 * Styles for landing page, blog, events, and other public-facing templates
 */

/* ============================================
   Main Content Container
   ============================================ */
.ih-main {
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   Hero Section (Landing Page)
   ============================================ */
.ih-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 120px 40px 80px;
}

.ih-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.ih-hero h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ih-hero-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ih-hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.ih-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.ih-btn-hero {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ih-btn-hero-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.ih-btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.ih-btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.ih-btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

/* ============================================
   Features / Cards Grid
   ============================================ */
.ih-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 80px;
    padding: 0 40px;
}

.ih-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
}

.ih-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ih-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
}

.ih-feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.ih-feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Blog Section
   ============================================ */
.ih-blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.ih-blog-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ih-blog-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.ih-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.ih-blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.ih-blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ih-blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.ih-blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ih-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.ih-blog-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ih-blog-card-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ih-blog-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.ih-blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.ih-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.ih-blog-read-more:hover {
    gap: 10px;
}

/* ============================================
   Blog Single Article
   ============================================ */
.ih-article {
    max-width: 800px;
    margin: 0 auto;
}

.ih-article-header {
    margin-bottom: 40px;
    text-align: center;
}

.ih-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.ih-article h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.ih-article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
}

.ih-article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.ih-article-content p {
    margin-bottom: 20px;
}

.ih-article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.ih-article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.ih-article-content ul,
.ih-article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.ih-article-content li {
    margin-bottom: 12px;
}

.ih-article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    font-style: italic;
}

.ih-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* ============================================
   Access Denied / Paywall
   ============================================ */
.ih-access-denied {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    margin: 40px 0;
}

.ih-access-denied-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.ih-access-denied h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ih-access-denied p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ih-access-denied-cta {
    display: inline-flex;
    gap: 16px;
}

/* ============================================
   Pricing Section
   ============================================ */
.ih-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.ih-pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.ih-pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 20px 60px var(--accent-glow);
    transform: scale(1.05);
}

.ih-pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.ih-pricing-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ih-pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ih-pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ih-pricing-period {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.ih-pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.ih-pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ih-pricing-features li:last-child {
    border-bottom: none;
}

.ih-pricing-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: var(--gradient-purple);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ih-pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   FAQ Section
   ============================================ */
.ih-faq-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 40px;
}

.ih-faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.ih-faq-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ih-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ih-faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.ih-faq-question:hover {
    color: var(--accent);
}

.ih-faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.ih-faq-item.open .ih-faq-question svg {
    transform: rotate(180deg);
}

.ih-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ih-faq-item.open .ih-faq-answer {
    max-height: 500px;
}

.ih-faq-answer-content {
    padding: 0 24px 24px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.ih-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 40px;
    margin-top: 120px;
}

.ih-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.ih-footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.ih-footer-links {
    list-style: none;
}

.ih-footer-links li {
    margin-bottom: 12px;
}

.ih-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ih-footer-links a:hover {
    color: var(--accent);
}

.ih-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Responsive - Tablet & Mobile
   ============================================ */
@media (max-width: 1024px) {
    .ih-hero h1 {
        font-size: 56px;
    }

    .ih-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .ih-main {
        padding: 100px 20px 60px;
    }

    .ih-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .ih-hero h1 {
        font-size: 40px;
    }

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

    .ih-hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .ih-btn-hero {
        width: 100%;
        justify-content: center;
    }

    .ih-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 60px;
    }

    .ih-blog-header h1 {
        font-size: 36px;
    }

    .ih-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ih-article h1 {
        font-size: 32px;
    }

    .ih-article-featured-image {
        height: 250px;
    }

    .ih-article-content {
        font-size: 16px;
    }

    .ih-pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .ih-pricing-card.featured {
        transform: scale(1);
    }

    .ih-faq-section {
        padding: 0 20px;
    }

    .ih-faq-header h2 {
        font-size: 32px;
    }

    .ih-footer {
        padding: 40px 20px 20px;
    }

    .ih-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
