@import url('./global.css');

/* ====== Container dos Planos ====== */
.hplay-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* sempre 3 colunas */
    gap: 2.5rem;
    width: 100%;
}

/* ====== Card ====== */
.hplay-card {
    background-color: rgb(41, 41, 41);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 2rem 0;
}

/* Topo do card */
.hplay-card .card-top {
    background: var(--primary);
    color: var(--secondary);
    font-weight: bold;
    padding: 0.8rem;
    font-size: 2rem;
}

.hplay-card .provider {
    color: var(--background);
    font-weight: normal;
    margin-right: 0.3rem;
}

/* Conteúdo */
.hplay-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 1.5rem;
    color: var(--text-color);
}

/* ====== Preço em Destaque ====== */
.price {
    font-size: 2rem;
    color: var(--text-color);
}

.price strong {
    display: inline-block;
    font-size: clamp(2.5rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--text-color);
}

.price small {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: line-through;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
}

/* ====== Benefícios ====== */
.benefits {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1.2rem 0;
    padding: 0 1rem;
    font-size: 1.5rem;
    list-style: none;
}

.benefits p {
    display: flex;
    align-items: center;
}

.benefits i {
    color: var(--primary);
    margin-right: 20px;
}

/* ====== Botão ====== */
.btn-yellow {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 0.7rem 2rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    align-self: center;
    margin-bottom: 2.5rem;
}

.btn-yellow:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 1024px) {
    .hplay-plans {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hplay-plans {
        grid-template-columns: 1fr;
    }

    .btn-yellow {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hplay-card {
        border-radius: 12px;
    }

    .price {
        font-size: 1rem;
    }

    .price strong {
        font-size: 2rem;
    }

    .btn-yellow {
        width: 100%;
        padding: 0.7rem 1rem;
    }
}

/* Estilo geral do switch */
.plan-switch {
    display: flex;
    background: var(--secondary);
    border-radius: 30px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.plan-switch input[type="radio"] {
    display: none;
}

.plan-switch label {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: all 0.3s ease;
    color: white;
    background: transparent;
}

/* Estado ativo */
.plan-switch label.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hover opcional */
.plan-switch label:hover {
    background: rgba(0, 0, 0, 0.05);
}