/**
 * Livro - Support Page Styles
 */

/* Support Chat Section */
.support-chat-section {
    padding: 3rem 0;
    background-color: var(--livro-pearl);
}

.support-chat-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.chat-welcome-message {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: var(--livro-cerulean);
    margin: 0 0 2rem 0;
    line-height: 1.2;
}

/* AI Chat Field */
.ai-chat-field {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0;
    transition: border-color 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.ai-chat-field:focus-within {
    border-color: var(--livro-cerulean);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    background: transparent;
    color: var(--livro-dark);
}

.chat-input::placeholder {
    color: #999;
    font-family: 'Figtree', sans-serif;
}

.chat-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 8px;
}

.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--livro-cerulean);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.chat-btn:hover {
    color: #065a76;
    transform: scale(1.1);
}

.chat-btn .material-symbols-rounded {
    font-size: 24px;
    font-variation-settings: 'FILL' 1;
}

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

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

.page-banner.white-bg {
    background-color: white;
}

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

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

.static-header.red-bg {
    background-color: var(--livro-red);
}

/* Support Options Section */
.support-options {
    padding: 6rem 0;
    background-color: white;
}

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

.support-card {
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--livro-pearl);
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.support-icon {
    width: 80px;
    height: 80px;
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.support-icon .material-symbols-rounded {
    font-size: 40px;
}

.support-card h3 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: var(--livro-cerulean);
}

.support-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.support-btn {
    align-self: center;
}

/* Knowledge Base Links Section */
.kb-links {
    padding: 6rem 0;
    background-color: var(--livro-pearl);
}

.kb-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.kb-category {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.kb-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kb-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--livro-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.kb-icon-container .material-symbols-rounded {
    font-size: 24px;
    color: var(--livro-dark);
}

.kb-category:hover .kb-icon-container .material-symbols-rounded {
    color: white;
}

.kb-category-header h3 {
    font-size: 22px;
    margin: 0;
    color: var(--livro-cerulean);
}

.kb-list {
    list-style: none;
    margin-bottom: 0;
}

.kb-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
    transition: transform 0.2s ease;
}

.kb-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--livro-cyan);
}

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

.kb-list li a {
    color: var(--livro-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-list li a:hover {
    color: var(--livro-cyan);
}

.kb-search {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.kb-search h3 {
    margin-bottom: 1.5rem;
    color: var(--livro-cerulean);
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid var(--livro-pearl);
    border-radius: 50px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--livro-cyan);
    box-shadow: 0 0 0 3px rgba(6, 174, 213, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--livro-cyan);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--livro-cerulean);
}

/* Video Tutorials Section */
.tutorials {
    padding: 6rem 0;
    background-color: white;
}

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

.tutorial-card {
    background-color: var(--livro-pearl);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.tutorial-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

.tutorial-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 20px;
    color: var(--livro-cerulean);
}

.tutorial-card p {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 0;
}

.tutorials-cta {
    text-align: center;
    margin-top: 3rem;
}

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

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-item.active .faq-question {
    background-color: var(--livro-papaya);
}

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

.faq-toggle {
    font-size: 28px;
    color: var(--livro-cyan);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

/* Contact Options Section */
.contact-options {
    padding: 6rem 0;
    background-color: white;
}

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

.contact-card {
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--livro-pearl);
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.contact-icon .material-symbols-rounded {
    font-size: 35px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 1rem;
    color: var(--livro-cerulean);
}

.contact-card p {
    margin-bottom: 1.5rem;
}

.contact-link {
    display: block;
    color: var(--livro-cyan);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--livro-cerulean);
}

.hours {
    font-size: 14px;
    color: #666;
    margin-top: 0.5rem;
}

/* Testimonials Section */
.support-testimonials {
    background-color: var(--livro-pearl);
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    line-height: 0.8;
    color: rgba(240, 200, 8, 0.2);
    font-family: Georgia, serif;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 18px;
    color: var(--livro-cerulean);
}

.testimonial-role {
    color: #777;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    background-color: transparent;
    border-radius: 0;
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: transparent;
}

.social-icon {
    width: 42px;
    height: 42px;
    filter: brightness(0) invert(1); /* Makes the icons white */
}

/* Newsletter Section in Footer */
.newsletter-title {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--livro-yellow);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
}

.newsletter-text {
    margin-bottom: 1rem;
    font-size: 18px;
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.newsletter-form .btn {
    align-self: flex-start;
    border-radius: 4px;
    background-color: var(--livro-cyan);
    box-shadow: none;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 18px;
    text-align: left;
    width: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .kb-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tutorial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .faq-question h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .support-options,
    .kb-links,
    .tutorials,
    .support-faq,
    .contact-options,
    .support-testimonials {
        padding: 4rem 0;
    }
    
    .kb-categories,
    .support-grid,
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .kb-search {
        padding: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        position: static;
        width: 100%;
        border-radius: 50px;
    }
    
    .faq-question {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .support-options,
    .kb-links,
    .tutorials,
    .support-faq,
    .contact-options,
    .support-testimonials {
        padding: 3rem 0;
    }
    
    .kb-category {
        padding: 1.5rem;
    }
    
    .kb-category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .kb-icon-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
