/* ===================================
   AI AUTOMATION LAB COMMUNITY PAGE
   Uses existing design patterns from styles.css.
   Only page-specific additions below.
   =================================== */

/* Community card icons */
.community-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 196, 77, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* 3-column grid for "What's Inside" */
.community-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Steps section */
.community-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.community-step {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
}

.community-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.community-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.community-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.community-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* About section */
.community-about {
    padding: 6rem 0;
    background: var(--bg-white);
}

.community-about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.community-about-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--border-color);
}

.community-about-text .hero-badge {
    margin-bottom: 1rem;
}

.community-about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.community-about-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.community-about-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.community-about-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.community-about-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero */
.community-hero {
    background: #101211;
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.community-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 196, 77, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 196, 77, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    animation: heroGridPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.community-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 77, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: heroOrbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

.community-hero .container {
    position: relative;
    z-index: 1;
}

/* Video player thumbnail */
.community-hero-player {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.community-hero-player img {
    width: 100%;
    height: auto;
    display: block;
}

.community-hero-player-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-hero-player:hover .community-hero-player-overlay {
    opacity: 1;
}

.community-play-btn {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.75rem;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 196, 77, 0.4);
}

.community-hero-player:hover .community-play-btn {
    transform: scale(1.1);
}

/* CTAs below player */
.community-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.community-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.community-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Powered by BRYGHT badge */
.community-hero-powered {
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.community-hero-powered strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

/* Video modal */
.community-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.community-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.community-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.community-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.community-video-modal.active .community-video-modal-content {
    transform: scale(1);
}

.community-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.community-video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.community-video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Community preview / screenshots */
.community-preview {
    padding: 6rem 0;
    background: var(--bg-light);
}

.community-preview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 1rem;
}

.community-preview-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.community-preview-card--large {
    grid-row: 1 / 3;
}

.community-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-preview-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 220px;
    height: 100%;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 2rem;
}

.community-preview-img-placeholder i {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Trust / social proof section */
.community-trust {
    padding: 6rem 0;
    background: var(--bg-white);
}

.community-trust-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.community-trust-stat {
    text-align: center;
}

.community-trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    line-height: 1.1;
}

.community-trust-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.community-trust-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
    flex-shrink: 0;
}

.community-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.community-testimonial {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.community-testimonial-stars {
    display: flex;
    gap: 0.2rem;
    color: #f59e0b;
    font-size: 0.9rem;
}

.community-testimonial-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.community-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.community-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.community-testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.community-testimonial-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Final CTA section */
.community-cta {
    padding: 6rem 0;
    background: #101211;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 196, 77, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 196, 77, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    animation: heroGridPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.community-cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 77, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: heroOrbFloat 13s ease-in-out infinite;
    pointer-events: none;
}

.community-cta .container {
    position: relative;
    z-index: 1;
}

.community-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.community-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA checklist */
.community-cta-checklist {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
    text-align: left;
}

.community-cta-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.community-cta-checklist i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Sticky CTA bar */
.community-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.community-sticky-cta.visible {
    transform: translateY(0);
}

.community-sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.community-sticky-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

.community-sticky-cta-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Partners override for community page */
.community-partners {
    background: var(--bg-white);
}

/* Responsive */
@media (max-width: 968px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .community-about-text .hero-badge {
        justify-content: center;
    }

    .community-about-links {
        justify-content: center;
    }

    .community-testimonials {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .community-trust-stats {
        gap: 2rem;
    }

    .community-trust-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .community-sticky-cta-text {
        display: none;
    }

    .community-sticky-cta-btn {
        width: 100%;
        text-align: center;
    }
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-steps {
        flex-direction: column;
        gap: 0;
    }

    .community-step {
        padding: 1.5rem;
    }

    .community-step-arrow {
        padding-top: 0;
        justify-content: center;
        transform: rotate(90deg);
    }

    .community-about-photo {
        width: 160px;
        height: 160px;
    }

    .community-cta-content h2 {
        font-size: 2rem;
    }

    .community-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .community-video-modal {
        padding: 16px;
    }

    .community-video-modal-close {
        top: -45px;
        width: 36px;
        height: 36px;
    }

    .community-preview-grid {
        grid-template-columns: 1fr;
    }

    .community-preview-card--large {
        grid-row: auto;
    }

    .community-trust-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .community-trust-divider {
        display: none;
    }

    .community-trust-stat {
        flex: 0 0 calc(50% - 1rem);
    }

    .community-trust-number {
        font-size: 1.75rem;
    }
}
