/**
 * Livro - Pricing Page Styles
 */

/* Page Banner Styling */
.page-banner {
    text-align: center;
    background-color: var(--livro-cerulean);
    color: white;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background-color: white;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.toggle-option {
    font-weight: 600;
    font-size: 18px;
    padding: 0 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.toggle-option.active {
    opacity: 1;
    color: var(--livro-cyan);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--livro-yellow);
    border-radius: 20px;
    margin: 0 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch.yearly::after {
    transform: translateX(30px);
}

.toggle-switch:hover {
    background-color: var(--livro-cyan);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Pricing Card - Using Role Card Design */
.pricing-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    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;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Highlight Badge */
.highlight-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 14px;
    border-bottom-left-radius: 8px;
    z-index: 1;
}

.pricing-card.highlight {
    border: 3px solid var(--livro-yellow);
    transform: scale(1.03);
}

.pricing-card.highlight:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Pricing Header */
.pricing-header {
    grid-row: 1;
    margin-bottom: 2rem;
}

.pricing-icon {
    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;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--livro-cyan);
    color: white;
}

.pricing-icon .material-symbols-rounded {
    font-size: 45px;
}

.pricing-name {
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 0.5rem;
    color: var(--livro-cerulean);
}

.pricing-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--livro-cerulean);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price .currency {
    font-size: 24px;
    vertical-align: super;
    font-weight: 600;
}

.pricing-period {
    color: #666;
    font-size: 16px;
    margin-bottom: 1rem;
}

/* Pricing Features */
.pricing-features {
    grid-row: 2;
    margin-bottom: 2rem;
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 0;
    text-align: left;
}

.pricing-feature {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.pricing-feature:hover {
    transform: translateX(5px);
}

.pricing-feature .material-symbols-rounded {
    color: var(--livro-cyan);
    font-size: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.pricing-feature.not-included {
    color: #999;
}

.pricing-feature.not-included .material-symbols-rounded {
    color: #ccc;
}

/* Pricing CTA */
.pricing-cta {
    grid-row: 3;
    padding-top: 1rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--livro-pearl);
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.faq-icon {
    color: var(--livro-cyan);
    font-size: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq-question h3 {
    font-weight: 700;
    font-size: 20px;
    color: var(--livro-cerulean);
    margin: 0;
}

.faq-answer {
    color: #555;
    padding-left: 2.8rem; /* Align with the question text */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-section,
    .faq-section {
        padding: 4rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-toggle {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toggle-option {
        margin-bottom: 0.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-icon {
        width: 80px;
        height: 80px;
    }
    
    .pricing-icon .material-symbols-rounded {
        font-size: 40px;
    }
    
    .pricing-price {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .pricing-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-icon {
        width: 70px;
        height: 70px;
    }
    
    .pricing-icon .material-symbols-rounded {
        font-size: 35px;
    }
    
    .pricing-price {
        font-size: 36px;
    }
    
    .pricing-name {
        font-size: 24px;
    }
    
    .faq-question h3 {
        font-size: 18px;
    }
}