/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: hsl(250, 84%, 54%);
    --primary-light: hsl(250, 84%, 64%);
    --primary-dark: hsl(250, 84%, 44%);
    --secondary: hsl(168, 76%, 42%);
    --background: hsl(240, 20%, 98%);
    --surface: hsl(0, 0%, 100%);
    --text: hsl(240, 20%, 10%);
    --text-muted: hsl(240, 10%, 45%);
    --border: hsl(240, 10%, 90%);
    --shadow: hsla(240, 20%, 10%, 0.08);
    --shadow-lg: hsla(240, 20%, 10%, 0.12);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: var(--surface);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.625rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--background);
}

.nav-link.active {
    color: var(--primary);
    background: hsla(250, 84%, 54%, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsla(250, 84%, 54%, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px hsla(250, 84%, 54%, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(250, 84%, 54%, 0.45);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-img {
    font-size: 2rem;
}

.mini-product span {
    font-weight: 600;
}

/* Featured Section */
.featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-all:hover {
    gap: 0.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-seller {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.whatsapp-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: hsl(142, 70%, 45%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* How It Works */
.how-it-works {
    background: var(--surface);
    padding: 5rem 1.5rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    padding: 1.5rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* CTA Section */
.cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.cta-content {
    background: var(--gradient);
    padding: 4rem;
    border-radius: calc(var(--radius) * 2);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px hsla(0, 0%, 0%, 0.2);
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-content p {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Marketplace Page */
.marketplace-page {
    min-height: 100vh;
}

.marketplace-controls {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.marketplace-page .products-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.add-product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.add-product-section h2 {
    margin-bottom: 0.5rem;
}

.add-product-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal h2 {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Announcements Page */
.announcements-page {
    min-height: 100vh;
}

.announcements-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.announcement-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.2s ease;
}

.announcement-card:hover {
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.announcement-card.featured {
    border: 2px solid var(--primary);
}

.announcement-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.announcement-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.announcement-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.announcement-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.announcement-card ul {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.announcement-card li {
    margin-bottom: 0.5rem;
}

.announcement-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--background);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* About Page */
.about-page {
    min-height: 100vh;
}

.about-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-graphic {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.mission-section {
    background: var(--surface);
    padding: 5rem 1.5rem;
    text-align: center;
}

.mission-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.mission-cards {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mission-card {
    padding: 2rem 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.team-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.difference-item {
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
}

.diff-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.difference-item h3 {
    margin-bottom: 0.5rem;
}

.difference-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-section {
    background: var(--surface);
    padding: 4rem 1.5rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-section > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.contact-icon {
    font-size: 1.5rem;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .mission-cards {
        grid-template-columns: 1fr;
    }

    .difference-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
