/* css/pages/how-it-works.css */

.how-it-works-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(95, 39, 205, 0.05), rgba(255, 107, 129, 0.05));
}

.how-it-works-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.how-it-works-hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Steps Section */
.steps-adventure {
    padding: 80px 0;
}

.adventure-step {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
}

.adventure-step:nth-child(even) {
    flex-direction: row-reverse;
}

.adventure-step:last-child {
    margin-bottom: 0;
}

/* All images use the same perfect tilt direction */
.step-image {
    flex: 0.7;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.adventure-step:nth-child(even) .step-image {
    transform: perspective(1000px) rotateY(-5deg);
    /* Match the perfect left tilt */
}

.adventure-step .step-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 50px rgba(95, 39, 205, 0.25);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

.step-info {
    flex: 1.3;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.3);
}

.step-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-info p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: 80px;
    box-shadow: var(--shadow-card);
}

.faq-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1;
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3 i {
    color: var(--accent-yellow);
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Privileges Section */
.privileges-section {
    padding: 80px 0;
    background: var(--bg-main);
}

.privileges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.privilege-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 2px solid transparent;
}

.privilege-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover);
}

.privilege-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    background: rgba(95, 39, 205, 0.05);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.privilege-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.privilege-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Content Helper Classes (replacing inline styles) */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    margin-top: 20px;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.badge-blue {
    background: rgba(72, 219, 251, 0.1) !important;
    color: var(--accent-blue) !important;
}

.badge-red {
    background: rgba(255, 107, 129, 0.1) !important;
    color: var(--secondary-color) !important;
}

.badge-green {
    background: rgba(29, 209, 161, 0.1) !important;
    color: #1dd1a1 !important;
}

.badge-gold {
    background: rgba(254, 202, 87, 0.2) !important;
    color: #d35400 !important;
}

.text-center {
    text-align: center;
}

.mt-60 {
    margin-top: 60px;
}

.chart-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}


/* Price Drop Chart (HQ Redesign) */
.chart-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 60px;
    margin-top: 60px;
    box-shadow: 0 30px 60px rgba(95, 39, 205, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    border: 1px solid var(--border-color);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-image:
        linear-gradient(rgba(223, 230, 233, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 230, 233, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.price-viz {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    height: 350px;
    padding-bottom: 60px;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
}

.viz-bar {
    width: 100px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    animation: growBar 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.viz-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@keyframes growBar {
    from {
        height: 0;
    }
}

.viz-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    font-family: var(--font-heading);
}

.viz-bar .bar-price {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.4rem;
    white-space: nowrap;
}

.bar-1 {
    height: 100%;
    background: #dfe6e9;
    opacity: 0.6;
}

.bar-2 {
    height: 70%;
    background: linear-gradient(to top, #74b9ff, #a29bfe);
    opacity: 0.8;
}

.bar-3 {
    height: 70%;
    background: linear-gradient(to top, var(--accent-blue), #70a1ff);
    box-shadow: 0 10px 30px rgba(72, 219, 251, 0.3);
}

.bar-4 {
    height: 66%;
    background: linear-gradient(to top, var(--primary-color), #a29bfe);
    box-shadow: 0 10px 30px rgba(95, 39, 205, 0.3);
}

.bar-5 {
    height: 60%;
    background: linear-gradient(to top, var(--secondary-color), #ff4757);
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 107, 129, 0.4);
}

.viz-bar .v-discount {
    position: absolute;
    top: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(-5deg);
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.4);
    border: 2px solid white;
    z-index: 5;
    animation: floatBadge 3s infinite ease-in-out;
}

.chart-legend {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;

}

.chart-legend i {
    color: var(--accent-blue);
    margin-right: 5px;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(-5deg) translateY(-5px);
    }
}

.bar-4 .pulse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px var(--secondary-color);
    border-radius: inherit;
    animation: pulseGlow 2s infinite;
}

/* Guarantee Box */
.guarantee-box {
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    box-shadow: 0 15px 35px rgba(95, 39, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.guarantee-box::before {
    content: '\f3ed';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 10rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.g-icon {
    font-size: 4rem;
    color: var(--accent-yellow);
    text-shadow: 0 5px 15px rgba(254, 202, 87, 0.4);
}

.g-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.g-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .how-it-works-hero h1 { font-size: 3rem; }
    .adventure-step { gap: 30px; }
}

@media (max-width: 900px) {
    .privileges-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .price-viz {
        gap: 20px;
        height: 200px;
    }

    .viz-bar {
        width: 45px;
    }

    .viz-bar .bar-price { font-size: 1rem; top: -35px; }
    .viz-bar::after { font-size: 0.8rem; bottom: -35px; }
    .viz-bar .v-discount { font-size: 0.75rem; padding: 2px 6px; }

    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .how-it-works-hero { padding: 140px 20px 60px; }
    .how-it-works-hero h1 { font-size: 2.2rem; }
    .how-it-works-hero p { font-size: 1.1rem; }

    .adventure-step, 
    .adventure-step:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .step-info { width: 100%; }
    .step-image { width: 100%; max-width: 400px; margin: 0 auto; transform: none !important; }
    .step-image:hover { transform: scale(1.02) !important; }

    .section-title { font-size: 2rem; }
    .chart-container { padding: 40px 20px; }
    .chart-title { font-size: 1.4rem; }
}