/**
 * GMoney Interactive Tabs - Stylesheet
 * Responsive 3-Column Layout, Dark Card, Pill Navigation Dots, Smooth GPU Transitions
 * Compatible with Elementor Pro, Crocoblock and Motion Page
 */

.gmoney-tabs-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.gmoney-tabs-widget *,
.gmoney-tabs-widget *::before,
.gmoney-tabs-widget *::after {
    box-sizing: border-box;
}

/* ==========================================
 * MAIN CARD CONTAINER
 * ========================================== */
.gmoney-tabs-card {
    display: grid;
    grid-template-columns: 15% 50% 35%;
    align-items: center;
    gap: 32px;
    background-color: #132435;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

/* ==========================================
 * COLUMN 1: LEFT TABS MENU
 * ========================================== */
.gmoney-tabs-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    z-index: 2;
}

.gmoney-tab-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
    user-select: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.gmoney-tab-button span {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.gmoney-tab-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    transform: translateX(3px);
}

.gmoney-tab-button.is-active {
    background-color: #275276;
    border-color: #275276;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gmoney-tab-button:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

/* ==========================================
 * COLUMN 2: CENTER MEDIA (SVG / IMAGE)
 * ========================================== */
.gmoney-tabs-media {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: none;
    filter: none;
}

.gmoney-tab-panel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmoney-tab-panel-media.is-active {
    position: relative;
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
    transform: scale(0.98) translateY(8px);
}

.gmoney-tab-panel-media.is-active.is-animating {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gmoney-media-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gmoney-animated-svg,
.gmoney-tab-image,
.gmoney-media-wrapper svg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
    box-shadow: none;
    transition: filter 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.gmoney-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 48px;
}

/* ==========================================
 * COLUMN 3: RIGHT CONTENT & BUTTON
 * ========================================== */
.gmoney-tabs-content {
    position: relative;
    width: 100%;
    z-index: 2;
    padding-right: 50px;
}

.gmoney-tab-panel-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.gmoney-tab-panel-text.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.gmoney-tab-title {
    font-size: 26px;
    font-weight: 700;
    color: #0084ff;
    line-height: 1.25;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.gmoney-tab-description {
    font-size: 15px;
    font-weight: 400;
    color: #e0e6ed;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.gmoney-tab-description p {
    margin: 0 0 10px 0;
}

.gmoney-tab-description p:last-child {
    margin-bottom: 0;
}

.gmoney-tab-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #0084ff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gmoney-tab-button-link:hover {
    background-color: #0066cc;
    color: #ffffff;
    transform: translateY(-2px);
}

.gmoney-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
    width: 18px;
    height: 18px;
    color: #ffffff;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.gmoney-button-icon i {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    color: #ffffff;
}

.gmoney-button-icon svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: #ffffff;
    fill: currentColor;
}

.gmoney-button-icon svg path {
    fill: currentColor;
}

.gmoney-button-icon svg[fill="none"] path,
.gmoney-button-icon svg line,
.gmoney-button-icon svg polyline {
    stroke: #ffffff;
}

.gmoney-tab-button-link:hover .gmoney-button-icon {
    transform: translateX(4px);
}

/* ==========================================
 * BOTTOM NAVIGATION (DOTS / PILL)
 * ========================================== */
.gmoney-tabs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.gmoney-tab-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0084ff;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    opacity: 0.85;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background-color 0.3s ease, 
                opacity 0.3s ease,
                transform 0.3s ease;
}

.gmoney-tab-dot:hover {
    opacity: 1;
    transform: scale(1.15);
}

.gmoney-tab-dot.is-active {
    width: 30px;
    height: 10px;
    border-radius: 10px;
    background-color: #0084ff;
    opacity: 1;
}

.gmoney-tab-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ==========================================
 * RESPONSIVE BREAKPOINTS
 * ========================================== */
@media (max-width: 1024px) {
    .gmoney-tabs-card {
        grid-template-columns: 20% 45% 35%;
        gap: 24px;
        padding: 32px;
    }

    .gmoney-tab-title {
        font-size: 22px;
    }
}

@media (max-width: 880px) {
    .gmoney-tabs-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px;
    }

    .gmoney-tabs-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gmoney-tabs-media {
        min-height: 250px;
    }

    .gmoney-tabs-content {
        text-align: center;
    }

    .gmoney-tab-panel-text {
        transform: translateY(12px);
    }

    .gmoney-tab-panel-text.is-active {
        transform: translateY(0);
    }
}

@media (max-width: 540px) {
    .gmoney-tabs-menu {
        grid-template-columns: 1fr;
    }

    .gmoney-tabs-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .gmoney-tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }

    .gmoney-tab-title {
        font-size: 20px;
    }

    .gmoney-tab-description {
        font-size: 14px;
    }
}
