/* Frontend CSS for Subscription Management Plugin */

.subscription-plans-section {
    padding: 40px 0;
}

.subscription-plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subscription-plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.subscription-plans-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.subscription-plans-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.subscription-plan-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-plan-card:hover {
    border-color: #0073aa;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subscription-plan-card.featured {
    border-color: #0073aa;
    transform: scale(1.05);
}

.subscription-plan-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.plan-price .period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.plan-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}

.plan-button:hover {
    background: #005a87;
    color: #fff;
}

.plan-button.secondary {
    background: #6c757d;
}

.plan-button.secondary:hover {
    background: #545b62;
}

.subscription-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.subscription-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.subscription-success {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
}

.subscription-success h2 {
    color: #155724;
    margin-bottom: 15px;
}

.subscription-success .success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.payment-method input[type="radio"] {
    margin: 0;
}

.payment-method.selected {
    border-color: #0073aa;
    background: #e7f3ff;
}

.subscription-status {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

.subscription-status.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscription-status.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.subscription-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.subscription-details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.subscription-details h3 {
    margin-bottom: 15px;
    color: #333;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #666;
}

.detail-value {
    color: #333;
}

/* Plan Selection Styles */
.plan-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.plan-card.selected {
    border: 2px solid #28a745 !important;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.selected-indicator {
    z-index: 10;
}

.selected-indicator .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Swiper Customization */
#smpPlansSwiper {
    padding: 20px 0 50px 0;
}

#smpPlansSwiper .swiper-button-prev,
#smpPlansSwiper .swiper-button-next {
    color: #0073aa;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#smpPlansSwiper .swiper-button-prev:hover,
#smpPlansSwiper .swiper-button-next:hover {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
}

#smpPlansSwiper .swiper-button-prev:after,
#smpPlansSwiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

#smpPlansSwiper .swiper-pagination-bullet {
    background: #0073aa;
    opacity: 0.3;
    transition: all 0.3s ease;
}

#smpPlansSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subscription-plan-card.featured {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .subscription-plans-header h1 {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .subscription-plans-container {
        padding: 0 15px;
    }
    
    .subscription-plan-card {
        padding: 20px;
    }
    
    .subscription-form {
        padding: 20px;
    }
}
