/*
  ---------------------------------------------------------------
  AdFuse Styles Combined from resources/css
  ---------------------------------------------------------------
*/

/* Line Clamp Utilities for Text Overflow */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.line-clamp-5 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

/* Ad Preview Specific Styles */
.ad-preview-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.ad-preview-content::-webkit-scrollbar {
    width: 6px;
}

.ad-preview-content::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.ad-preview-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ad-preview-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Fallback for browsers that don't support line-clamp */
@supports not (-webkit-line-clamp: 1) {
    .line-clamp-1,
    .line-clamp-2,
    .line-clamp-3,
    .line-clamp-4,
    .line-clamp-5 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .line-clamp-2,
    .line-clamp-3,
    .line-clamp-4,
    .line-clamp-5 {
        white-space: normal;
        max-height: 1.2em;
        line-height: 1.2;
    }
    
    .line-clamp-3,
    .line-clamp-4,
    .line-clamp-5 {
        max-height: 2.4em;
    }
    
    .line-clamp-4,
    .line-clamp-5 {
        max-height: 3.6em;
    }
    
    .line-clamp-5 {
        max-height: 4.8em;
    }
}

/* Smooth scroll for anchor links */
html, body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #020103;
    background-color: #020B03;
    scroll-behavior: smooth;
}

/* Sticky navbar styles */
.navbar.fixed-top.is-sticky {
    background-color: #0C140D !important;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    overflow-x: hidden;
}

/* Global button radius for website */
button, .btn, [type="button"], [type="submit"] {
    border-radius: 23px;
}

/* CTA button styles */
.cta-button {
    background: transparent linear-gradient(90deg, #55FFE4 0%, #52FFDA 9%, #4BFFC1 24%, #40FF97 44%, #31FF5E 66%, #2AFF44 76%) 0% 0% no-repeat padding-box;
    border: none;
    font-weight: 600;
    padding: 14px 32px;
    color: #020103;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    text-decoration: none;
}

.cta-button.cta-button-dark {
    background: #020B03;
    color: #fff;
}

.section-spacing {
    padding: 80px 0;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #979797;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 34px;
    font-weight: 600;
    color: #020103;
    margin-bottom: 1rem;
}

/* Typography styles */
.color-primary-green {
    color: #40FF98;
}

.bg-green-light {
    background-color: #EEFFF0;
}

/* FAQ Page Styles */
.faq-sidebar {
    position: sticky;
    top: 6rem; /* 96px - accounts for header height + some padding */
    height: fit-content;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 1rem; /* Add some padding for better spacing */
}

.faq-nav-btn {
    transition: all 0.2s ease-in-out;
}

.faq-nav-btn:hover {
    transform: translateX(4px);
}

/* FAQ Item with Gradient Border */
.faq-item {
    background: linear-gradient(257deg, #40ff98 0%, #646464 36%, #020b03 100%);
    padding: 2px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.accordion-item.faq-item {
    background: linear-gradient(257deg, #40ff98 0%, #646464 36%, #020b03 100%);
    padding: 2px;
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.accordion-item.faq-item .accordion-header {
    background-color: #0C140D;
    border-radius: 6px;
    margin: 0;
}

.accordion-item.faq-item .accordion-body {
    background-color: #0C140D;
    border-radius: 0 0 6px 6px;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question:hover {
    color: #22c55e;
}

.faq-toggle {
    transition: all 0.2s ease-in-out;
}

.faq-toggle:hover {
    background-color: rgba(34, 197, 94, 0.2);
    transform: scale(1.1);
}

.faq-answer {
    transition: all 0.3s ease-in-out;
    color: #e9ecef;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0;
    color: white;
}

.faq-toggle-button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background-color: transparent;
    transition: all 0.3s ease;
}

.faq-toggle-button img {
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-button {
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Mobile CTA button overrides */
    .cta-button {
        padding: 14px 24px !important;
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        border-radius: 22px !important;
        min-height: auto !important;
    }
    
    .faq-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 2rem;
        padding-right: 0;
    }
    
    /* Prevent horizontal overflow on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure carousels don't overflow on mobile */
    .splide__track {
        overflow: hidden !important;
    }
    
    .splide__list {
        margin: 0;
    }
}

@media (max-width: 480px) {
    /* Small phone CTA button overrides */
    .cta-button {
        padding: 12px 20px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        border-radius: 20px !important;
        min-height: auto !important;
    }
}

@media (max-width: 768px) {
    .faq-nav-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
