/* Subscription Manager Shortcodes - Modern Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --highlight-color: #ffc107;
    --success-color: #28a745;
    --font-family: 'Cairo', sans-serif; /* Modern Arabic-friendly font */
}

.nahsob-subscription-shortcode {
    font-family: var(--font-family);
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

/* Header Section */
.plans-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.plans-header-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.plans-header-section p {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    direction: rtl;
}

.plans-container > * {
    flex: 1 1 300px;
    min-width: 300px;
}

/* Plan Card */
.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px 25px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #0066cc;
}

.plan-card.highlighted {
    border: 3px solid #0066cc;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.plan-card.current-plan {
    border: 3px solid #00c853;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.highlight-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
}

/* Card Content */
.plan-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.plan-header-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #0066cc;
    margin: 15px 0 20px 0;
    text-align: center;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
}

.price .amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #0066cc;
    line-height: 1;
}

.price .period {
    font-size: 1em;
    color: #666;
}

.plan-description p {
    font-size: 1em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 50px;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 20px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}

.plan-features li {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.plan-features li::before {
    content: '✓';
    color: #00c853;
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2em;
}

/* Buttons */
.plan-actions {
    margin-top: auto;
}

.btn-subscribe, .btn-current, .btn-login-required {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-subscribe {
    background: #0066cc;
    color: white;
}

.btn-subscribe:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.plan-card.highlighted .btn-subscribe {
    background: #00c853;
    color: white;
}

.plan-card.highlighted .btn-subscribe:hover {
    background: #00a043;
}

.btn-current {
    background: #e8f5e9;
    color: #00c853;
    border: 2px solid #00c853;
    cursor: default;
}

.btn-login-required {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Coupon Section */
.coupon-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid #e0e0e0;
}

.coupon-section h4 {
    color: #0066cc;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
}

.coupon-input {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    direction: rtl;
}

.coupon-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    text-align: right;
}

.coupon-input input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.coupon-input button {
    padding: 12px 30px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-input button:hover {
    background: #0052a3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

#shortcode-coupon-result,
#dashboard-coupon-result {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
}

#shortcode-coupon-result.success,
#dashboard-coupon-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#shortcode-coupon-result.error,
#dashboard-coupon-result.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 992px) {
    .plan-card.highlighted {
        transform: none; /* Disable scaling on smaller screens to prevent layout issues */
    }
}

@media (max-width: 768px) {
    .plans-container {
        grid-template-columns: 1fr;
    }
    
    .coupon-section {
        padding: 20px 15px;
    }
    
    .coupon-input {
        flex-direction: column;
    }
    
    .coupon-input input,
    .coupon-input button {
        width: 100%;
    }
}

