/* ===========================
   HOW IT WORKS PAGE STYLES
   =========================== */

/* ===========================
   ACCORDION STYLES
   =========================== */
.how-accordion {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f3f4f2;
    overflow: hidden;
}

.how-accordion .accordion-item {
    border: 0;
    background: transparent;
}

.how-accordion .accordion-item + .accordion-item {
    border-top: 4px solid #ffffff;
}

.how-accordion .accordion-header {
    margin: 0;
}

.how-accordion .accordion-button {
    background: #f3f4f2;
    color: #343434;
    font-weight: 800;
    padding: 14px 18px;
    box-shadow: none;
}

.how-accordion .accordion-button:focus {
    box-shadow: none;
}

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

.how-accordion .how-acc-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.how-accordion .how-acc-number {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.how-accordion .how-acc-number img {
    width: 28px;
    height: 28px;
    display: block;
}

.how-accordion .how-acc-heading {
    color: rgb(105, 67, 155);
    font-size: 30px;
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: 0.2px;
}

.how-accordion .accordion-button:not(.collapsed) {
    background: #f3f4f2;
    color: #343434;
}

.how-accordion .accordion-body {
    padding: 0 18px 18px;
    background: #f3f4f2;
}

.how-accordion .how-acc-body-inner {
    background: #f3f4f2;
    border-radius: 3px;
    padding: 14px 16px;
    color: #343434;
    font-size: 16px;
    line-height: 1.5;
}

/* ===========================
   BID BUTTONS SECTION
   =========================== */
.how-bid-buttons-section {
    margin-top: 44px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-bid-buttons-title {
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    color: #343434;
    text-align: center;
    margin: 0 0 22px;
}

.how-bid-buttons-title .highlight {
    color: rgb(105, 67, 155);
}

/* Top button row */
.how-bid-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    width: 100%;
}

.how-bid-button-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.how-letter-badge {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.how-letter-badge img {
    width: 28px;
    height: 28px;
    display: block;
}

.how-bid-buttons-row img {
    max-height: 43px;
    width: auto;
    object-fit: contain;
}

/* ===========================
   FAKE BID BUTTONS (CSS replicas of BidButton.vue)
   =========================== */

/* A) Standard mode: input + BIETEN */
.how-fake-bid-standard {
    display: flex;
    height: 45px;
    border-radius: 22.5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.how-fake-bid-input {
    width: 50px;
    height: 45px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: 3px solid #41c55f;
    border-right: none;
    border-radius: 22.5px 0 0 22.5px;
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.how-fake-bid-btn {
    height: 45px;
    padding: 0 15px;
    background: linear-gradient(to right, #41c55f, #216f33);
    border-radius: 0 22.5px 22.5px 0;
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    white-space: nowrap;
}

/* B) Bot mode: input + BIETEN + remaining bids bar */
.how-fake-bid-bot {
    width: 165px;
    border-radius: 27.5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.how-fake-bid-bot-top {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
}

.how-fake-bid-bot-input {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    height: 100%;
    background-color: white;
    border: 4px solid #41c55f;
    border-right: none;
    border-radius: 27.5px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    box-sizing: border-box;
    line-height: 1;
}

.how-fake-bid-bot-btn {
    flex: 1;
    min-width: 50px;
    height: 100%;
    background: linear-gradient(to right, #41c55f, #216f33);
    border-radius: 0 27.5px 0 0;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.how-fake-bid-bot-bottom {
    width: 100%;
    height: 15px;
    background-image: linear-gradient(90deg, #69439b, #24154a);
    border-radius: 0 0 27.5px 27.5px;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
    overflow: hidden;
}

/* ===========================
   CENTERED TEXT LIST
   =========================== */
.how-bid-buttons-list {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 45px auto 0;
}

.how-bid-buttons-list-inner {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.how-bid-buttons-list-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: flex-start;
    column-gap: 16px;
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
}

.how-bid-buttons-list-item:last-child {
    margin-bottom: 0;
}

.how-bid-buttons-list-item .how-letter-badge img {
    margin-bottom: -10px;
}

/* ===========================
   GRAPHICS
   =========================== */
.how-graphics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 10px 0 18px;
}

.how-graphic {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.how-graphic img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.how-graphic-caption {
    font-size: 13px;
    font-weight: 600;
    color: #343434;
    margin-top: 6px;
}

/* ===========================
   MONITOR FRAME (Desktop)
   =========================== */
.how-monitor-frame {
    position: relative;
    display: inline-block;
    padding: 20px 20px 60px 20px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 16px;
    box-shadow: 
        0 0 0 4px #333,
        0 0 0 8px #1a1a1a,
        0 30px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.how-monitor-frame::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.how-monitor-frame::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.how-monitor-screen {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.how-monitor-screen img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
}

/* ===========================
   PHONE FRAME (Mobile)
   =========================== */
.how-phone-frame {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 36px;
    box-shadow: 0 0 0 3px #333,
        0 0 0 6px #1a1a1a,
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.how-phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.how-phone-screen {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.how-phone-screen img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
}

.how-phone-number {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: how-pulse 2s infinite ease-in-out;
}

.how-phone-number img {
    width: 100%;
    height: 100%;
    display: block;
}

.how-phone-number:hover {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(105, 67, 155, 0.7));
}

/* ===========================
   INTRO ILLUSTRATION NUMBERS
   =========================== */
.how-intro-illustration-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.how-intro-illustration-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.how-intro-number {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.how-intro-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(105, 67, 155, 0.6);
    border-radius: 50%;
    animation: how-ring-pulse 2s ease-out infinite;
}

@keyframes how-ring-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.how-intro-number img {
    width: 100%;
    height: 100%;
    display: block;
}

.how-intro-number:hover {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 0 4px rgba(105, 67, 155, 0.5));
}

/* ===========================
   HOVER TOOLTIPS FOR NUMBERS
   =========================== */
.how-intro-number .how-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 18px);
    bottom: auto;
    transform: translateY(-50%);
    width: 330px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(105, 67, 155, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(105, 67, 155, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
    animation: none;
}

.how-intro-number .how-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(105, 67, 155, 0.3) transparent transparent;
}

.how-intro-number .how-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #f8f8f8 transparent transparent;
}

.how-intro-number:hover .how-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

.how-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    color: #69439b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.how-tooltip-title img {
    width: 20px;
    height: 20px;
}

.how-tooltip-text {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    margin: 0;
    text-align: left;
}

/* Hide tooltips on mobile - touch devices use click instead */
@media (max-width: 991.98px) {
    .how-intro-number .how-tooltip {
        display: none;
    }
}

/* ===========================
   PAGE SPECIFIC STYLES
   =========================== */
.how-page-title {
    margin-top: 120px;
}

.how-page-title .highlight {
    color: rgb(105, 67, 155);
}

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

.how-illustration-wrapper {
    padding-bottom: 40px;
}

/* ===========================
   ANIMATION
   =========================== */
@keyframes how-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */
@media (max-width: 575.98px) {
    .how-graphics-row {
        grid-template-columns: 1fr;
    }

    .how-accordion .how-acc-heading {
        font-size: 18px;
    }

    .how-bid-buttons-title {
        font-size: 26px;
    }

    .how-bid-buttons-row {
        gap: 16px;
    }

    .how-bid-buttons-row img {
        max-height: 52px;
    }

    .how-bid-buttons-list-item {
        max-width: 100%;
    }

    .how-intro-number {
        width: 28px;
        height: 28px;
    }

    /* Phone frame mobile adjustments */
    .how-phone-frame {
        padding: 8px;
        border-radius: 28px;
    }

    .how-phone-frame::before {
        width: 60px;
        height: 18px;
        top: 6px;
    }

    .how-phone-screen {
        border-radius: 20px;
    }

    .how-phone-number {
        width: 28px;
        height: 28px;
    }

    /* Intro illustration: full-width on mobile */
    .how-intro-illustration-wrapper {
        display: block;
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .how-intro-illustration-image {
        width: 100%;
        max-width: 100%;
    }
}
