/* Carousel Styles */
.gallery-text {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 2rem;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 350px;
    overflow: hidden;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 600px;
    height: 350px;
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.8);
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-item.prev,
.carousel-item.next {
    opacity: 0.5;
    z-index: 1;
}

.carousel-item.prev {
    transform: translateX(-100%) scale(0.8);
}

.carousel-item.next {
    transform: translateX(100%) scale(0.8);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.carousel-item.active img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.carousel-button:hover {
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
    }

    .carousel-item {
        width: 90%;
        height: 250px;
    }

    .carousel-item.prev {
        transform: translateX(-120%) scale(0.8);
    }

    .carousel-item.next {
        transform: translateX(120%) scale(0.8);
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


.signup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

:root {
    --primary-purple: #8B5CF6;
    --primary-pink: #EC4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Loading Spinner Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EDE9FE, #FCE7F3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--primary-purple);
    border-left-color: var(--primary-pink);
    animation: spin 1s linear infinite;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Content Container */
.content-container {
    display: none;
}

.content-container.visible {
    display: block;
}

body {
    background: linear-gradient(135deg, #EDE9FE, #FCE7F3);
    min-height: 100vh;
}

.navbar {
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    color: transparent;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.signup-button {
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.signup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.signin-button {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-purple);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.signin-button:hover {
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    color: white;
    border-color: transparent;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    }
}

.form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group input[type="checkbox"]+label {
    display: inline;
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.how-it-works {
    margin-top: 4rem;
    padding: 0 2rem;
}

.description-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    max-width: 800px;
}

.description-card p {
    line-height: 1.8;
    color: #666;
}

.footer-links {
    margin-top: 3rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
}

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

/* Public Preview Feed Styles */
.public-feed-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.public-feed-title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 0.5rem;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

.public-feed-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Use identical styling to the actual feed */
.public-feed-section .post {
    max-width: 600px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.public-feed-section .post:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.public-feed-section .post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-feed-section .post-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.public-feed-section .post-user-info {
    flex-grow: 1;
}

.public-feed-section .post-username {
    font-weight: 600;
    color: #8B5CF6;
    text-decoration: none;
}

.public-feed-section .post-time {
    font-size: 0.75rem;
    font-style: italic;
    color: #888;
    margin-top: 2px;
}

.public-feed-section .post-content {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.public-feed-section .post-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.public-feed-section .reactions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.public-feed-section .reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: default;
    color: #333;
}

.public-feed-section .reaction-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: #8B5CF6;
}

.public-feed-section .reaction-count {
    font-size: 0.875rem;
    color: #333;
}

.public-feed-section .post-expiry {
    font-size: 0.75rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Growth stage badges */
.public-feed-section .growth-badge {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.public-feed-section .growth-badge.meer-badge-visible { display: inline-flex; }
.public-feed-section .meer-badge-hot { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: #ea580c; border: 1px solid #fb923c; box-shadow: 0 0 12px rgba(249, 115, 22, 0.25); }
.public-feed-section .meer-badge-hot::before { content: '🔥'; animation: flame-flicker 0.9s ease-in-out infinite; }
.public-feed-section .meer-badge-pumped { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0891b2; border: 1px solid #22d3ee; box-shadow: 0 0 12px rgba(34, 211, 238, 0.25); }
.public-feed-section .meer-badge-pumped::before { content: '⚡'; animation: bolt-jolt 1.6s ease-in-out infinite; }
.public-feed-section .meer-badge-elite { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; border: 1px solid #a78bfa; box-shadow: 0 0 14px rgba(167, 139, 250, 0.3); }
.public-feed-section .meer-badge-elite::before { content: '⭐'; animation: sparkle-twinkle 1.8s ease-in-out infinite; }
.public-feed-section .meer-badge-legendary { background: linear-gradient(135deg, #fef3c7, #fde68a, #fcd34d); color: #92400e; border: 1px solid #fbbf24; box-shadow: 0 0 18px rgba(251, 191, 36, 0.4); }
.public-feed-section .meer-badge-legendary::before { content: '👑'; animation: crown-bounce 1.4s ease-in-out infinite; }

/* Growth stage post effects for public feed */
.public-feed-section .growth-sprout { border-left: 3px solid #34d399; }
.public-feed-section .growth-bloom {
    border-left: 4px solid #f59e0b;
    scale: 1.005;
    animation: garden-rock-hot 2.5s ease-in-out infinite, garden-fire-glow 1.7s ease-in-out infinite, garden-fire-border 2.5s linear infinite;
}
.public-feed-section .growth-tree {
    border-left: 5px solid #06b6d4;
    --pulse-min: 1.005;
    --pulse-max: 1.025;
    animation: garden-rock 2.8s ease-in-out infinite, garden-pulsate 2.2s ease-in-out infinite, garden-electric-surge 2.2s ease-in-out infinite, garden-electric-border 2.5s linear infinite;
}
.public-feed-section .growth-star {
    border: 2px solid #8b5cf6;
    border-left-width: 6px;
    --pulse-min: 1.015;
    --pulse-max: 1.04;
    animation: garden-rock 3.2s ease-in-out infinite, garden-pulsate 2.6s ease-in-out infinite, garden-aurora-glow 3s ease-in-out infinite, garden-aurora-border 5s linear infinite;
}
.public-feed-section .growth-legend {
    border: 2px solid #fbbf24;
    border-left-width: 6px;
    --pulse-min: 1.025;
    --pulse-max: 1.06;
    animation: garden-rock 2.2s ease-in-out infinite, garden-pulsate 2s ease-in-out infinite, garden-pulse-gold 2s ease-in-out infinite, legend-gold-border 5s linear infinite;
}

@keyframes garden-rock {
    0%, 100% { rotate: 0deg; }
    25% { rotate: 0.5deg; }
    75% { rotate: -0.5deg; }
}
@keyframes garden-rock-hot {
    0%, 100% { rotate: 0deg; }
    20% { rotate: 0.5deg; }
    45% { rotate: -0.4deg; }
    70% { rotate: 0.45deg; }
    85% { rotate: -0.5deg; }
}
@keyframes garden-pulsate {
    0%, 100% { scale: var(--pulse-min, 1); }
    50% { scale: var(--pulse-max, 1.03); }
}
@keyframes garden-fire-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3), 0 0 24px rgba(239, 68, 68, 0.12); }
    27% { box-shadow: 0 4px 18px rgba(249, 115, 22, 0.45), 0 0 34px rgba(239, 68, 68, 0.22); }
    52% { box-shadow: 0 3px 14px rgba(249, 115, 22, 0.35), 0 0 26px rgba(239, 68, 68, 0.15); }
    71% { box-shadow: 0 5px 24px rgba(249, 115, 22, 0.5), 0 0 42px rgba(239, 68, 68, 0.28); }
}
@keyframes garden-fire-border {
    0%, 100% { border-left-color: #f59e0b; }
    30% { border-left-color: #ef4444; }
    55% { border-left-color: #fb923c; }
    80% { border-left-color: #f97316; }
}
@keyframes garden-electric-surge {
    0%, 100% { box-shadow: 0 3px 18px rgba(6, 182, 212, 0.4), 0 0 42px rgba(34, 211, 238, 0.3), 0 0 70px rgba(59, 130, 246, 0.18); }
    50% { box-shadow: 0 5px 30px rgba(6, 182, 212, 0.6), 0 0 70px rgba(34, 211, 238, 0.5), 0 0 110px rgba(59, 130, 246, 0.3); }
}
@keyframes garden-electric-border {
    0%, 100% { border-left-color: #06b6d4; }
    25% { border-left-color: #3b82f6; }
    50% { border-left-color: #22d3ee; }
    75% { border-left-color: #60a5fa; }
}
@keyframes garden-aurora-glow {
    0%, 100% { box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45), 0 0 60px rgba(139, 92, 246, 0.3), 0 0 100px rgba(139, 92, 246, 0.15); }
    33% { box-shadow: 0 4px 30px rgba(217, 70, 239, 0.5), 0 0 72px rgba(217, 70, 239, 0.35), 0 0 115px rgba(217, 70, 239, 0.18); }
    66% { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5), 0 0 72px rgba(99, 102, 241, 0.35), 0 0 115px rgba(99, 102, 241, 0.18); }
}
@keyframes garden-aurora-border {
    0%, 100% { border-color: #8b5cf6; }
    33% { border-color: #d946ef; }
    66% { border-color: #6366f1; }
}
@keyframes garden-pulse-gold {
    0%, 100% { box-shadow: 0 6px 30px rgba(251, 191, 36, 0.45), 0 0 70px rgba(251, 191, 36, 0.3), 0 0 110px rgba(249, 115, 22, 0.15); }
    50% { box-shadow: 0 10px 48px rgba(251, 191, 36, 0.65), 0 0 110px rgba(251, 191, 36, 0.5), 0 0 160px rgba(249, 115, 22, 0.28); }
}
@keyframes legend-gold-border {
    0%, 100% { border-color: #fbbf24; }
    25% { border-color: #f59e0b; }
    50% { border-color: #fde047; }
    75% { border-color: #f97316; }
}
@keyframes flame-flicker {
    0%, 100% { transform: scale(1) rotate(-3deg); opacity: 1; }
    30% { transform: scale(1.18) rotate(4deg); opacity: 0.85; }
    55% { transform: scale(0.95) rotate(-2deg); opacity: 1; }
    80% { transform: scale(1.1) rotate(3deg); opacity: 0.9; }
}
@keyframes bolt-jolt {
    0%, 100% { transform: rotate(0deg) scale(1); }
    8% { transform: rotate(-14deg) scale(1.25); }
    16% { transform: rotate(10deg) scale(1.15); }
    24% { transform: rotate(0deg) scale(1); }
}
@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.25) rotate(18deg); }
}
@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-2px) rotate(5deg); }
}

/* Share button in public feed (non-clickable) */
.public-feed-section .share-btn-preview {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: default;
}

.public-feed-section .share-btn-preview svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #8B5CF6;
}

.public-feed-cta {
    text-align: center;
    margin: 2rem 0 3rem;
}

.public-feed-cta-button {
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.public-feed-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.public-feed-loading {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

.public-feed-empty {
    text-align: center;
    padding: 2rem;
    color: #888;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* GEO: Descriptive content block for AI crawlers */
.geo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.geo-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.geo-content .feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s;
}

.geo-content .feature-card:hover {
    transform: translateY(-4px);
}

.geo-content .feature-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.geo-content .feature-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.geo-content .feature-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.stats-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stats-banner .stat {
    text-align: center;
}

.stats-banner .stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    color: transparent;
}

.stats-banner .stat-label {
    font-size: 0.85rem;
    color: #888;
}
