/* =========================================
   Community Page Styles — community.css
   Extends but doesn't override styles.css
   ========================================= */

/* ----- Text Shimmer animation (shared) ----- */
.text-shimmer {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Pulse button animation */
.pulse-btn {
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(27,161,169,0.3); }
    50% { box-shadow: 0 8px 30px rgba(27,161,169,0.6); }
}

/* ----- Scroll Animations ----- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ----- Glassmorphism Card (shared) ----- */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ----- Button utilities ----- */
.btn-full { width: 100%; }

/* =========================================
   Community Hero Section
   ========================================= */
.comm-hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0d1117 0%, #1a1b2a 50%, #1a2a2a 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.comm-hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.comm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}
.comm-orb-1 {
    width: 500px; height: 500px;
    background: var(--color-primary);
    top: -100px; left: -150px;
}
.comm-orb-2 {
    width: 400px; height: 400px;
    background: var(--color-secondary);
    bottom: -80px; right: -100px;
    opacity: 0.15;
}
.comm-orb-3 {
    width: 300px; height: 300px;
    background: #9b59b6;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.comm-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left: Hero Text */
.comm-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comm-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(27, 161, 169, 0.15);
    border: 1px solid rgba(27, 161, 169, 0.4);
    color: var(--color-primary);
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.comm-hero-title {
    font-size: 3.75rem;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1px;
}

.comm-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 520px;
}

/* Social Proof */
.comm-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.comm-avatars {
    display: flex;
    align-items: center;
}

.comm-avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    margin-left: -10px;
    object-fit: cover;
}
.comm-avatars img:first-child { margin-left: 0; }

.comm-avatar-count {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: -10px;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Free Access Banner */
.comm-free-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(253,190,57,0.15) 0%, rgba(253,190,57,0.05) 100%);
    border: 1px solid rgba(253, 190, 57, 0.35);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
}

.comm-free-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(253, 190, 57, 0.2);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.comm-free-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comm-free-text strong {
    color: var(--color-secondary);
    font-size: 1rem;
}

.comm-free-text span {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.comm-free-spots {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(253, 190, 57, 0.2);
    border-radius: var(--border-radius-md);
    padding: 0.6rem 1rem;
    min-width: 72px;
}

.spots-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.spots-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   Waitlist Form Card
   ========================================= */
.comm-form-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative; /* Ensure it stays in normal flow */
}

.comm-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.comm-form-header h2 {
    font-size: 1.75rem;
    color: var(--color-bg-dark);
    margin-bottom: 0.5rem;
}

.comm-form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Groups */
.comm-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comm-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comm-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comm-form-group label i {
    color: var(--color-primary);
}

.comm-form-group input,
.comm-form-group select {
    padding: 0.85rem 1.1rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--color-bg-offlight);
    transition: var(--transition);
    width: 100%;
    outline: none;
}

.comm-form-group input:focus,
.comm-form-group select:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(27, 161, 169, 0.12);
}

.comm-form-group input::placeholder {
    color: var(--text-light-muted);
}

.comm-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.comm-select-wrapper select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.comm-select-arrow {
    position: absolute;
    right: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.25rem;
}

.comm-submit-btn {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.comm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

.comm-form-fine {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Success Message */
.comm-success-message {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.comm-success-message.hidden { display: none; }

.comm-success-icon {
    font-size: 4rem;
    line-height: 1;
}

.comm-success-message h3 {
    font-size: 1.5rem;
    color: var(--color-bg-dark);
}

.comm-success-message p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 340px;
}

.comm-success-actions {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comm-share-cta {
    font-weight: 600;
    color: var(--color-bg-dark);
    font-size: 0.9rem;
}

.comm-share-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.comm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.comm-share-twitter {
    background: #1DA1F2;
    color: white;
}
.comm-share-twitter:hover { background: #0c85d0; transform: translateY(-2px); }

.comm-share-whatsapp {
    background: #25D366;
    color: white;
}
.comm-share-whatsapp:hover { background: #1db954; transform: translateY(-2px); }

/* Hidden utility */
.hidden { display: none !important; }

/* =========================================
   Global Trust Stats Bar
   ========================================= */
.comm-stats-bar {
    position: relative;
    z-index: 10; 
    margin-top: 2rem;
    margin-bottom: 4rem; 
    padding: 0 1.5rem;
}

.comm-stats-container {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.comm-stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
}

.comm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

.comm-stat-item:hover .comm-stat-icon {
    transform: translateY(-5px) scale(1.1);
}

.comm-stat-icon.rating { color: #fbbc05; background: rgba(251, 188, 5, 0.15); }
.comm-stat-icon.global { color: var(--color-primary); background: rgba(27, 161, 169, 0.15); }
.comm-stat-icon.community { color: var(--color-secondary); background: rgba(253, 190, 57, 0.15); }

.comm-stat-info {
    display: flex;
    flex-direction: column;
}

.comm-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.comm-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.comm-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
}

@media (max-width: 992px) {
    .comm-stats-bar {
        margin-top: 2rem;
    }
    .comm-stats-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    .comm-stat-divider {
        width: 80%;
        height: 1px;
    }
    .comm-stat-item {
        width: 100%;
    }
}

/* =========================================
   Community Features Section
   ========================================= */
.comm-features {
    padding: 8rem 0 6rem; /* High padding to clear the floating bar */
    background: var(--color-bg-offlight);
    position: relative;
    z-index: 1;
}

.comm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.comm-feature-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.comm-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27,161,169,0.2);
}

.comm-feat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.comm-feature-card:hover .comm-feat-icon {
    transform: scale(1.1) rotate(5deg);
}

.comm-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-bg-dark);
}

.comm-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =========================================
   Bottom CTA
   ========================================= */
.comm-bottom-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a2a2a 100%);
    text-align: center;
}

.comm-bottom-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.comm-bottom-cta h2 {
    font-size: 2.5rem;
    color: white;
}

.comm-bottom-cta p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
}

/* =========================================
   Footer (reused from main styles)
   ========================================= */
.footer {
    background: var(--color-bg-darker);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-logo {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.35);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .comm-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .comm-hero-content { align-items: center; }
    .comm-badge { margin: 0 auto; }
    .comm-hero-subtitle { text-align: center; margin: 0 auto; }
    .comm-free-banner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .comm-social-proof { justify-content: center; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
    .comm-hero { padding-top: 90px; }
    .comm-hero-title { font-size: 2.5rem; }
    .comm-form-card { padding: 1.75rem 1.25rem; }
    .comm-share-btns { flex-direction: column; }
    .comm-bottom-cta h2 { font-size: 2rem; }
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-light);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        z-index: -1;
        gap: 1.5rem;
    }
    .nav-menu.active { top: 0; }
    .nav-list { flex-direction: column; align-items: center; gap: 1.5rem; }
    .nav-toggle { display: block; }
    .nav-actions { margin-top: 1rem; }
}

@media (max-width: 480px) {
    .comm-hero-title { font-size: 2rem; }
    .comm-features-grid { grid-template-columns: 1fr; }
}
