/**
 * Livro - Features Page Styles
 */

/* Page Banner Styling */
.page-banner {
    text-align: center;
}

.page-banner h1, 
.page-banner p {
    color: white;
}

.page-banner.yellow-bg h1,
.page-banner.yellow-bg p {
    color: var(--livro-dark);
}

.page-banner.red-bg {
    background-color: var(--livro-red);
}

/* Features Detail Section */
.features-detail {
    padding: 6rem 0;
    background-color: white;
}

/* Grid Layout for Feature Cards */
.features-grid.large-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Unified Card Structure Using Grid */
.feature-card,
.role-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--livro-pearl);
    color: var(--livro-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Card Hover Effect */
.feature-card:hover,
.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Card Icons */
.feature-icon,
.role-icon {
    grid-row: 1;
    width: 90px;
    height: 90px;
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    justify-self: center;
}

/* Icon Hover Effect */
.feature-card:hover .feature-icon,
.role-card:hover .role-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--livro-cyan);
    color: white;
}

.feature-icon .material-symbols-rounded,
.role-icon .material-symbols-rounded {
    font-size: 45px;
}

/* Card Headings */
.feature-card h3,
.role-card h3 {
    grid-row: 2;
    margin-bottom: 1rem;
    color: var(--livro-cerulean);
    font-size: 24px;
}

/* Card Paragraphs */
.feature-card p,
.role-card p {
    grid-row: 3;
    margin-bottom: 0;
    color: var(--livro-dark);
    line-height: 1.6;
}

/* Feature Highlight Section */
.feature-highlight {
    background-color: var(--livro-pearl);
    padding: 7rem 0;
}

.feature-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-highlight-content h2 {
    color: var(--livro-cerulean);
    margin-bottom: 1.5rem;
    font-size: 42px;
}

.feature-highlight-content p {
    font-size: 18px;
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.6;
}

.feature-highlight-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-highlight-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.feature-highlight-list li:hover {
    transform: translateX(5px);
}

.feature-highlight-list li .material-symbols-rounded {
    font-size: 24px;
    color: var(--livro-cyan);
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-highlight-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.feature-highlight-image:hover img {
    transform: scale(1.03);
}

/* User Groups Section */
.user-groups {
    padding: 7rem 0;
    background-color: white;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Integrations Section */
.integrations {
    background-color: var(--livro-pearl);
    padding: 7rem 0;
}

.integration-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.integration-logo:hover {
    transform: translateY(-10px);
}

.integration-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.integration-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.integration-logo span {
    font-weight: 600;
    color: var(--livro-dark);
    font-size: 16px;
}

.integration-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.integration-cta:hover {
    transform: translateY(-5px);
}

.integration-cta p {
    font-size: 20px;
    margin-bottom: 1.5rem;
    color: var(--livro-cerulean);
}

/* Features Video Section */
.features-video {
    padding: 6rem 0;
    background-color: var(--livro-pearl);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* 16:9 Aspect Ratio for responsive video */
.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .feature-highlight-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-highlight-content {
        order: 1;
    }
    
    .feature-highlight-image {
        order: 2;
        text-align: center;
    }
    
    .feature-highlight-image img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .features-detail,
    .feature-highlight,
    .user-groups,
    .integrations,
    .features-video {
        padding: 4rem 0;
    }
    
    .features-grid.large-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .role-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .feature-highlight-content h2 {
        font-size: 36px;
    }
    
    .integration-logos {
        gap: 2.5rem;
    }
    
    .integration-logo img {
        height: 60px;
    }
    
    .feature-icon,
    .role-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon .material-symbols-rounded,
    .role-icon .material-symbols-rounded {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .features-detail,
    .feature-highlight,
    .user-groups,
    .integrations,
    .features-video {
        padding: 3rem 0;
    }
    
    .feature-card,
    .role-card {
        padding: 1.8rem;
    }
    
    .feature-icon,
    .role-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon .material-symbols-rounded,
    .role-icon .material-symbols-rounded {
        font-size: 35px;
    }
    
    .integration-logos {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .integration-logo img {
        height: 50px;
    }
    
    .integration-cta p {
        font-size: 18px;
    }
}