/* ========================================
   TUH STEAM — Tab Layout
   ======================================== */

.tuh-steam-wrap {
    display: flex;
    align-items: stretch;
    max-width: 100%;
    margin: 0;
    background: #171a21;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(102,192,244,0.1);
    position: relative;
}

.tuh-steam-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #66c0f4, #417a9b);
    z-index: 1;
}

/* TUTORIAL (esquerda) */
.tuh-steam-left {
    flex: 1 1 55%;
    min-width: 0;
    padding: 32px 28px;
    border-right: 1px solid rgba(102,192,244,0.1);
    display: flex;
    flex-direction: column;
}

.tuh-steam-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tuh-steam-brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.tuh-steam-brand h2 {
    color: #66c0f4;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.tuh-steam-subtitle {
    color: #ff9900;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 20px;
}

.tuh-steam-alert {
    background: rgba(255,153,0,0.08);
    border-left: 3px solid #ff9900;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    color: #ff9900;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
}

.tuh-steam-steps {
    margin-bottom: 20px;
}

.tuh-steam-steps h3 {
    color: #66c0f4;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
}

.tuh-steam-steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steam-step;
}

.tuh-steam-steps li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    color: #c7d5e0;
    font-size: 13px;
    line-height: 1.6;
    counter-increment: steam-step;
}

.tuh-steam-steps li:last-child {
    margin-bottom: 0;
}

.tuh-steam-steps li::before {
    content: counter(steam-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    background: #66c0f4;
    color: #171a21;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.tuh-steam-footer-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(102,192,244,0.08);
}

.tuh-steam-tutorial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(102,192,244,0.2) 0%, rgba(65,122,155,0.2) 100%);
    border: 1px solid rgba(102,192,244,0.4);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.tuh-steam-tutorial-link svg {
    color: #66c0f4;
    width: 16px;
    height: 16px;
}

.tuh-steam-tutorial-link:hover {
    background: linear-gradient(135deg, rgba(102,192,244,0.3) 0%, rgba(65,122,155,0.3) 100%);
    border-color: #66c0f4;
    color: #fff !important;
    transform: translateY(-1px);
}

.tuh-steam-extra-fee {
    color: #ff9900;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    text-align: center;
}

/* BUSCADOR (direita) */
.tuh-steam-right {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    background: linear-gradient(180deg, rgba(42,71,94,0.3) 0%, rgba(27,40,56,0.3) 100%);
}

/* Fallback quando shortcode indisponivel */
.tuh-steam-unavailable {
    padding: 40px;
    text-align: center;
    color: #8f98a0;
    font-size: 14px;
}

/* Overrides do shortcode [steam_guard_request] dentro da tab */
.tuh-steam-right .steam-guard-wrapper {
    min-height: auto !important;
    padding: 0 !important;
    background: none !important;
}

.tuh-steam-right .steam-guard-container {
    max-width: 100% !important;
    width: 100% !important;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%) !important;
    border: 1px solid #3c5a73 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    padding: 28px 24px !important;
}

/* Give input more breathing room */
.tuh-steam-right .steam-input {
    padding: 12px 40px 12px 16px !important;
}

.tuh-steam-right .input-wrapper {
    margin-bottom: 16px;
}

/* Fix botão SEARCH CODE */
.tuh-steam-right .steam-button {
    background: linear-gradient(135deg, #66c0f4 0%, #417a9b 100%) !important;
    color: #1b2838 !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.tuh-steam-right .steam-button:hover {
    background: linear-gradient(135deg, #4d9bd6 0%, #2d5980 100%) !important;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 920px) {
    .tuh-steam-wrap {
        flex-direction: column;
        border-radius: 8px;
    }

    .tuh-steam-left {
        border-right: none;
        border-bottom: 1px solid rgba(102,192,244,0.1);
        padding: 24px 20px;
    }

    .tuh-steam-right {
        flex: 1 1 100%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tuh-steam-left {
        padding: 20px 16px;
    }

    .tuh-steam-right {
        padding: 16px;
    }

    .tuh-steam-brand h2 {
        font-size: 20px;
    }

    .tuh-steam-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
