/* Public Ecosystem Page Styles v2 */

/* Force card layout reset */
.ecosystem-product-card * {
    box-sizing: border-box;
}

/* No longer needed - using background-image instead of img tags */

:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-color: #feaf50;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --content-max-width: 1280px;
}

/* Clean Reset */
html, body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Add padding for fixed header */
body {
    padding-top: 80px;
}

/* Section 1: Manifesto */
.ecosystem-manifesto-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 50%, 
        rgba(10, 10, 10, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
}

.ecosystem-manifesto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, 
        rgba(254, 175, 80, 0.1) 0%, 
        transparent 60%
    );
    pointer-events: none;
}

.ecosystem-manifesto-inner {
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 24px;
}

.ecosystem-manifesto-container {
    /* Remove container styling to match fullpass design */
}

.ecosystem-manifesto-section h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.ecosystem-manifesto-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Section 2: Jornadas Guiadas */
.ecosystem-journeys-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(0, 0, 0, 0.9) 100%
    );
}

.ecosystem-journeys-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.ecosystem-journey-card {
    max-width: 700px;
    padding: 4rem;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.ecosystem-journey-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ecosystem-journey-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.ecosystem-journey-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffc107 100%);
    color: #000000;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(254, 175, 80, 0.2);
}

.ecosystem-journey-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(254, 175, 80, 0.3);
    text-decoration: none;
    color: #000000;
}

/* Section 3: A Biblioteca */
.ecosystem-library-section {
    padding: 8rem 0;
}

.ecosystem-library-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.ecosystem-library-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ecosystem-library-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 6rem;
    line-height: 1.6;
}

/* Wings/Alas */
.ecosystem-wing {
    margin-bottom: 6rem;
}

.wing-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wing-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.wing-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.wing-carousel::-webkit-scrollbar {
    height: 8px;
}

.wing-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.wing-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Card link wrapper */
.ecosystem-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.ecosystem-product-card-link:hover,
.ecosystem-product-card-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.ecosystem-product-card {
    flex: 0 0 320px;
    height: 400px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    gap: 0;
    position: relative;
}

.ecosystem-product-card-link:hover .ecosystem-product-card,
.ecosystem-product-card-link:focus .ecosystem-product-card {
    transform: scale(1.02);
    border-color: rgba(254, 175, 80, 0.3);
    box-shadow: 0 8px 32px rgba(254, 175, 80, 0.15);
}

.product-card-image {
    width: 320px !important;
    height: 180px !important;
    overflow: hidden;
    border-radius: 19px 19px 0 0;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative;
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.5);
    min-width: 320px !important;
    max-width: 320px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.3s ease;
}

.ecosystem-product-card-link:hover .product-card-image,
.ecosystem-product-card-link:focus .product-card-image {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 320px;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(254, 175, 80, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.product-card-content {
    padding: 2rem;
    margin: 0;
    border-radius: 0 0 19px 19px;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    flex-grow: 1;
    margin-top: -1px;
}

.product-card-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Arrow icon in bottom right corner */
.product-card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: rgba(254, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 175, 80, 0.2);
}

.product-card-arrow i {
    color: var(--accent-color);
    font-size: 14px;
    transition: transform 0.3s ease-in-out;
}

.ecosystem-product-card-link:hover .product-card-arrow,
.ecosystem-product-card-link:focus .product-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.ecosystem-product-card-link:hover .product-card-arrow i,
.ecosystem-product-card-link:focus .product-card-arrow i {
    transform: translateX(2px);
}

/* Section 4: Obras de Referência */
.ecosystem-books-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(0, 0, 0, 0.9) 100%
    );
}

.ecosystem-books-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.ecosystem-books-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.ecosystem-book-card {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.ecosystem-book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 175, 80, 0.2);
}

.book-card-image {
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.book-card-image img {
    width: 100%;
    min-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(10, 10, 10, 0.5);
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.ecosystem-book-card:hover .book-card-image img {
    transform: scale(1.05);
}

.book-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(254, 175, 80, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.book-card-content {
    padding: 2.5rem;
    margin: 0;
    border-radius: 0 0 23px 23px;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    flex-grow: 1;
    margin-top: -1px;
}

.book-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.book-card-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.book-card-link {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.book-card-link:hover {
    background: rgba(254, 175, 80, 0.1);
    border-color: rgba(254, 175, 80, 0.6);
    text-decoration: none;
    color: var(--accent-color);
}

/* Section 5: Convite Final */
.ecosystem-final-invite-section {
    padding: 2rem 0;
}

.ecosystem-final-invite-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.ecosystem-final-invite-content {
    max-width: 700px;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.ecosystem-final-invite-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ecosystem-final-invite-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.ecosystem-final-invite-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffc107 100%);
    color: #000000;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(254, 175, 80, 0.2);
}

.ecosystem-final-invite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(254, 175, 80, 0.3);
    text-decoration: none;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .ecosystem-manifesto-section h1 {
        font-size: 2.2rem;
    }
    
    .ecosystem-manifesto-subtitle {
        font-size: 1.1rem;
    }
    
    .ecosystem-manifesto-container,
    .ecosystem-journey-card,
    .ecosystem-final-invite-content {
        padding: 2.5rem 2rem;
        width: 95%;
        margin: 0 auto;
    }
    
    .ecosystem-library-section h2 {
        font-size: 2.2rem;
    }
    
    .wing-title {
        font-size: 1.7rem;
    }
    
    .wing-carousel {
        gap: 1.5rem;
    }
    
    .ecosystem-product-card {
        flex: 0 0 280px;
        height: 380px;
    }
    
    .product-card-image,
    .product-card-placeholder {
        width: 280px !important;
        height: 160px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ecosystem-books-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ecosystem-manifesto-section h1 {
        font-size: 1.8rem;
    }
    
    .ecosystem-manifesto-subtitle {
        font-size: 1rem;
    }
    
    .ecosystem-manifesto-container,
    .ecosystem-journey-card,
    .ecosystem-final-invite-content {
        padding: 2rem 1.5rem;
    }
    
    .ecosystem-library-section h2 {
        font-size: 2rem;
    }
    
    .wing-title {
        font-size: 1.5rem;
    }
    
    .ecosystem-product-card {
        flex: 0 0 260px;
        height: 360px;
    }
    
    .product-card-image,
    .product-card-placeholder {
        width: 260px !important;
        height: 150px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .product-card-content,
    .book-card-content {
        padding: 1.5rem;
    }
    
    .product-card-arrow {
        bottom: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
    }
    
    .product-card-arrow i {
        font-size: 12px;
    }
}