/**
 * BabyBoomer App Upgrade Styles
 */

/* Container styles */
.bbapp-upgrade-wrapper {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.bbapp-upgrade-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    padding: 30px;
    margin: 0 auto;
}

/* When used as shortcode */
.entry-content .bbapp-upgrade-content {
    margin: 20px auto;
}

/* Header */
.bbapp-header {
    text-align: center;
    margin-bottom: 30px;
}

.bbapp-header h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

.bbapp-header p {
    color: #666;
    margin: 0;
}

/* Current plan */
.bbapp-current-plan {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.bbapp-current-plan strong {
    color: #1976d2;
    font-size: 18px;
}

/* Upgrade options */
.bbapp-upgrade-options {
    margin-bottom: 20px;
}

.bbapp-upgrade-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.bbapp-upgrade-card:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.bbapp-upgrade-card.popular {
    border-color: #1976d2;
}

.bbapp-popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #1976d2;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bbapp-plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.bbapp-plan-price {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 15px;
    font-weight: 700;
}

.bbapp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.bbapp-plan-features li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.bbapp-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Buttons */
.bbapp-upgrade-button,
.bbapp-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.bbapp-upgrade-button:hover,
.bbapp-button:hover {
    background: #1565c0;
    color: white;
    text-decoration: none;
}

.bbapp-return-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    padding: 10px;
    font-size: 14px;
}

.bbapp-return-link:hover {
    color: #333;
}

/* Success state */
.bbapp-upgrade-success {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.bbapp-checkmark {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.bbapp-upgrade-success h2 {
    color: #333;
    margin: 0 0 10px 0;
}

.bbapp-upgrade-success p {
    color: #666;
    margin: 0 0 20px 0;
}

/* Login required */
.bbapp-upgrade-login {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.bbapp-upgrade-login .bbapp-button {
    display: inline-block;
    width: auto;
    padding: 10px 30px;
    margin-top: 10px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .bbapp-upgrade-content,
    .bbapp-upgrade-success,
    .bbapp-upgrade-login {
        padding: 20px;
    }
    
    .bbapp-header h1 {
        font-size: 20px;
    }
    
    .bbapp-plan-name {
        font-size: 18px;
    }
    
    .bbapp-plan-price {
        font-size: 20px;
    }
}

/* Hide WordPress elements when in full page mode */
body.page-template-bbapp-upgrade-template-php #wpadminbar,
body.page-template-bbapp-upgrade-template-php .site-header,
body.page-template-bbapp-upgrade-template-php .site-footer,
body.page-template-bbapp-upgrade-template-php .nav-menu {
    display: none !important;
}

body.page-template-bbapp-upgrade-template-php {
    padding-top: 0 !important;
}