/**
 * Upgrade Page Styles
 * Styles for the admin upgrade/upsell page
 */

.tpgl-upgrade-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Hero Section */
.tpgl-upgrade-hero {
    background: #0A4974;
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tpgl-upgrade-hero img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.tpgl-upgrade-hero h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0 15px;
    color: white;
}

.tpgl-upgrade-hero p {
    font-size: 18px;
    margin: 0 auto 30px;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.6;
}

.tpgl-upgrade-cta {
    display: inline-block;
    background: white;
    color: #0A4974;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tpgl-upgrade-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #0A4974;
}

/* Features Grid */
.tpgl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tpgl-feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tpgl-feature-card--new {
    border-color: #0A4974;
}

.tpgl-feature-card--addon {
    border-color: #7c3aed;
}

.tpgl-feature-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #0A4974;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
}

.tpgl-feature-badge--addon {
    background: #7c3aed;
}

.tpgl-new-badge {
    display: inline-block;
    margin-left: 6px;
    background: #0A4974;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 20px;
    vertical-align: middle;
}

.tpgl-addon-price {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #6b21a8;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    padding: 2px 8px;
}

.tpgl-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #0A4974;
}

.tpgl-feature-icon {
    width: 60px;
    height: 60px;
    background: #0A4974;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tpgl-feature-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: white;
}

.tpgl-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #2d3748;
}

.tpgl-feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Pricing Section */
.tpgl-pricing-section {
    margin: 60px 0;
}

.tpgl-pricing-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px;
    color: #2d3748;
}

.tpgl-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tpgl-pricing-card {
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.tpgl-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #0A4974;
}

.tpgl-pricing-card.tpgl-popular {
    border-color: #0A4974;
    box-shadow: 0 5px 20px rgba(10, 73, 116, 0.2);
}

.tpgl-popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #0A4974;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpgl-pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2d3748;
}

.tpgl-plan-desc {
    font-size: 14px;
    color: #718096;
    margin: 0 0 20px;
}

.tpgl-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.tpgl-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #4a5568;
}

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

.tpgl-plan-features li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 10px;
}

.tpgl-plan-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #0A4974;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tpgl-plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Comparison Section */
.tpgl-comparison-section {
    margin: 60px 0;
}

.tpgl-comparison-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px;
    color: #2d3748;
}

.tpgl-comparison-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-collapse: separate;
    border-spacing: 0;
}

.tpgl-comparison-table thead {
    background: #0A4974;
    color: white;
}

.tpgl-comparison-table thead th {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
}

.tpgl-comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.tpgl-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.tpgl-comparison-table tbody td {
    padding: 16px 20px;
    font-size: 15px;
}

.tpgl-comparison-table tbody tr:hover {
    background: #f7fafc;
}

.tpgl-comparison-table .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Final CTA */
.tpgl-final-cta {
    background: #0A4974;
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 12px;
    margin: 60px 0 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tpgl-final-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    color: white;
}

.tpgl-final-cta p {
    font-size: 18px;
    margin: 0 auto 30px;
    max-width: 600px;
    opacity: 0.95;
}

.tpgl-final-cta .button {
    background: white;
    color: #0A4974;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tpgl-final-cta .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
    color: #0A4974;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpgl-upgrade-hero {
        padding: 40px 20px;
    }
    
    .tpgl-upgrade-hero h2 {
        font-size: 28px;
    }
    
    .tpgl-upgrade-hero p {
        font-size: 16px;
    }
    
    .tpgl-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tpgl-comparison-table {
        font-size: 14px;
    }
    
    .tpgl-comparison-table thead th,
    .tpgl-comparison-table tbody td {
        padding: 12px 10px;
    }
    
    .tpgl-final-cta {
        padding: 40px 20px;
    }
    
    .tpgl-final-cta h2 {
        font-size: 24px;
    }
}
