/*!
 * Voltride FAQ Box Styles
 * Version: 1.0.2
 * Last Updated: 2025-04-05
 */

/* Contact Box Styles */
.voltride-faq-container {
    width: 100%;
    margin: 0;
}

.voltride-faq-box {
    padding: 48px 24px 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #161616;
    position: relative;
    overflow: hidden;
    background: 
      linear-gradient(#161616, #161616) padding-box,
      linear-gradient(135deg, #1BB546, var(--volt-pink-dark)) border-box;
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    box-shadow: 
      -1px -1px 10px rgba(18, 59, 29, 0.05),
       2px 2px 10px rgba(18, 59, 29, 0.12);
}

.voltride-faq-container .moreq-title {
    color: var(--Power-Lime, #ADFF60);
    font-family: Shrikhand;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 90%;
    margin-bottom: 16px;
}

.voltride-faq-container .test-ride-text {
    color: #D8FFB4;
    font-family: Biryani;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 160%;
    letter-spacing: 0.28px;
    margin-bottom: 24px;
    text-align: center;
    max-width: 400px;
}
.voltride-faq-container .test-ride-text a {
    color: #D8FFB4;
    text-decoration: underline;
}

.faq-button {
    display: inline-flex;
    padding: 16px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 48px;
    background: var(--Power-Lime, #ADFF60);
    margin-bottom: 24px;
    
    /* Text styles */
    color: #0F3F36;
    text-align: center;
    font-family: Biryani;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    
    /* Transition */
    transition: all 0.3s ease;
}

.faq-button:hover {
    background-color: #9EEE51;
    color: #0F3F36;
}

.test-ride-text.kontakt-info {
    margin-bottom: 0px;
}

/* Image styles */
.voltride-faq-image {
    width: calc(100% + 48px);
    margin-left: -24px; 
    margin-right: -24px; 
    margin-top: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.voltride-faq-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .voltride-faq-container {
        padding-left: 16px;
    }
}

/* ================================================
   Skeleton Loading State
   ================================================ */

/* Shimmer animation */
@keyframes faq-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton container */
.voltride-faq-box.is-loading {
    min-height: 400px;
}

/* Hide actual content when loading */
.voltride-faq-box.is-loading > *:not(.faq-skeleton) {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

/* Skeleton wrapper */
.faq-skeleton {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

.voltride-faq-box.is-loading .faq-skeleton {
    display: flex;
}

/* Skeleton base styles */
.faq-skeleton-item {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: faq-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton title */
.faq-skeleton-title {
    width: 70%;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* Skeleton text lines */
.faq-skeleton-text {
    width: 90%;
    height: 14px;
    margin-bottom: 8px;
}

.faq-skeleton-text:nth-child(3) {
    width: 75%;
    margin-bottom: 24px;
}

/* Skeleton button */
.faq-skeleton-button {
    width: 160px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 48px;
}

/* Skeleton contact info */
.faq-skeleton-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.faq-skeleton-contact-line {
    height: 14px;
    border-radius: 4px;
}

.faq-skeleton-contact-line:nth-child(1) {
    width: 140px;
}

.faq-skeleton-contact-line:nth-child(2) {
    width: 100px;
}

.faq-skeleton-contact-line:nth-child(3) {
    width: 130px;
}

/* Skeleton image placeholder */
.faq-skeleton-image {
    width: calc(100% + 48px);
    height: 180px;
    margin-left: -24px;
    margin-right: -24px;
    margin-top: auto;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: faq-skeleton-shimmer 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Smooth transition when content loads */
.voltride-faq-box {
    transition: min-height 0.3s ease;
}

.voltride-faq-box > *:not(.faq-skeleton) {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Loaded state - fade in content */
.voltride-faq-box.is-loaded > *:not(.faq-skeleton) {
    opacity: 1;
    visibility: visible;
    animation: faq-content-fade-in 0.5s ease forwards;
}

@keyframes faq-content-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
