/**
 * SHC Partner Hub - Frontend Styles
 *
 * @package SHC\PurchasePlans
 */

/* Plan cards */
.shc-pp-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.shc-pp-plan-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shc-pp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shc-pp-plan-card.featured {
    border-color: #2271b1;
    border-width: 2px;
}

.shc-pp-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2271b1;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.shc-pp-plan-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1d2327;
}

.shc-pp-plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #2271b1;
    margin: 0 0 8px;
}

.shc-pp-plan-price .period {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.shc-pp-plan-funds {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.shc-pp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.shc-pp-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.shc-pp-plan-features li:last-child {
    border-bottom: none;
}

.shc-pp-plan-features li::before {
    content: "✓";
    color: #2271b1;
    font-weight: 700;
    flex-shrink: 0;
}

.shc-pp-plan-cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.shc-pp-plan-cta:hover {
    background: #135e96;
    color: #fff;
}

/* License cards */
.shc-pp-license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.shc-pp-license-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.shc-pp-license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.shc-pp-license-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

.shc-pp-license-price {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
}

.shc-pp-license-description {
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
}

.shc-pp-license-cta {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.shc-pp-license-cta:hover {
    background: #135e96;
    color: #fff;
}

/* My Account tabs */
.shc-pp-my-plan,
.shc-pp-my-licenses,
.shc-pp-funds-history {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.shc-pp-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1d2327;
}

/* Funds balance */
.shc-pp-funds-balance {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 24px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .shc-pp-plan-cards,
    .shc-pp-license-cards {
        grid-template-columns: 1fr;
    }
    
    .shc-pp-plan-price {
        font-size: 36px;
    }
}
