@import './global.css';

* {
    font-family: 'Roboto', sans-serif;
}

/* ===== CONTAINER PRINCIPAL ===== */
.planos-container {
    padding: 80px 20px;
    background: linear-gradient(217deg,
            rgba(79, 18, 100, 1) 0%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 1) 76%,
            rgba(79, 18, 100, 1) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== TÍTULOS E DESCRIÇÕES ===== */
h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p.center {
    text-align: center;
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== LISTA DE PLANOS ===== */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 3rem;
}

.plan {
    background-color: #1a1a1a;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.plan h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.price {
    font-size: 2rem;
    font-weight: 900;
    margin: 1rem 0 0.3rem;
    color: #fff;
}

.sub-price {
    color: #aaa;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ===== BOTÕES ===== */
.btn {
    margin-top: 1.5rem;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    color: var(--text-color);
    transform: scale(1.05);
    filter: brightness(110%);
}

/* ===== TABELA ===== */
.table-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
}

table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-collapse: collapse;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

th, td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th:first-child, td:first-child {
    text-align: left;
}

.check {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
}

.dash {
    color: #777;
    font-size: 1.3rem;
    font-weight: bold;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .price {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }
}

/* ===== ULTRAWIDE (1600px+) ===== */
@media (min-width: 1600px) {
    .plans {
        max-width: 1600px;
        gap: 3rem;
    }

    .plan h2 {
        font-size: 1.8rem;
    }

    .price {
        font-size: 2.3rem;
    }

    .sub-price {
        font-size: 1.1rem;
    }

    table {
        max-width: 1600px;
        font-size: 1.1rem;
    }
}

/* ===== SUPER ULTRAWIDE (2200px+) ===== */
@media (min-width: 2200px) {
    .plans {
        max-width: 1800px;
        gap: 4rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    p.center {
        font-size: 1.3rem;
    }

    .plan h2 {
        font-size: 2rem;
    }

    .price {
        font-size: 2.6rem;
    }

    .sub-price {
        font-size: 1.2rem;
    }

    table {
        max-width: 1800px;
        font-size: 1.2rem;
    }
}
