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

/* ====== Planos Container ====== */
.planContainer {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.planTitleMain {
    padding-top: 60px;
    text-align: center;
    font-size: var(--font-size-3xl);
    /* usa o global, já responsivo */
    margin-bottom: 1.5rem;
}

/* Navegação de abas */
.slider-navigation {
    text-align: center;
    margin-bottom: 2rem;
}

.slider-btn {
    background: #ccc;
    border: none;
    margin: 0.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    transition: background 0.3s, transform 0.2s;
}

.slider-btn:hover {
    background: #888;
    transform: scale(1.05);
}

.slider-btn.active {
    background: var(--primary);
    color: white;
    font-weight: bold;
    transform: scale(1.05);
}

/* ====== Grid de planos ====== */
.speed-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: auto;
}

.speed-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}


.speed-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* ocupa todo espaço do card */
    justify-content: space-between;
    /* topo e rodapé distantes */
    align-items: center;
    padding: 1rem;
    text-align: center;
}


.card-top {
    background: var(--primary);
    color: var(--secondary);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.provider {
    color: var(--background);
}


.mega {
    font-size: var(--font-size-3xl);
    font-weight: bold;
    color: var(--secondary);
    text-shadow: 1px 0px 1px var(--primary-dark);
}


.mega span {
    font-size: var(--font-size-xl);
    font-weight: normal;
}

.benefits {
    flex-grow: 1;
    /* ocupa espaço extra para empurrar preço e botão para baixo */
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    /* mantém centralizado verticalmente */
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.benefits p {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-base);
}

.price {
    margin-top: 0.5rem;
    /* garante espaçamento consistente */
    font-size: var(--font-size-lg);
}

.price strong {
    font-size: var(--font-size-2xl);
}

.price small {
    font-size: 0.8rem;
    color: #777;
    text-decoration: line-through;
}


.price span {
    font-size: 0.9rem;
    color: #555;
}

.btn-yellow {
    display: inline-block;
    background: var(--secondary);
    color: black;
    padding: 0.5rem 2rem;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
    align-self: center;
    /* sempre centralizado */
}

.btn-yellow:hover {
    background: #e6b800;
}

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

    .planTitleMain {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
    }

    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

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

    .mega {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

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

    .benefits {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .planTitleMain {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        padding-top: 40px;
    }

    .price {
        font-size: 1rem;
    }

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

    .slider-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}