/**
 * Frontend CSS
 * File: assets/css/frontend.css
 */

/* Pricing Table */
.wlt-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.wlt-pricing-card {
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wlt-pricing-card:hover {
    border-color: #2271b1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.wlt-pricing-card.wlt-highlighted {
    border-color: #2271b1;
    border-width: 3px;
    box-shadow: 0 5px 20px rgba(34, 113, 177, 0.2);
}

.wlt-pricing-card.wlt-featured {
    border-color: #ffd700;
    border-width: 3px;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}

.wlt-pricing-card.wlt-featured:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.wlt-pricing-card.wlt-current-plan {
    border-color: #46b450;
    background: #f0f9f1;
}

.wlt-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2271b1;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wlt-badge.wlt-featured-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    font-size: 13px;
    padding: 6px 25px;
}

.wlt-tier-header {
    margin-bottom: 30px;
}

.wlt-tier-name {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.wlt-tier-price {
    margin: 20px 0;
}

.wlt-price-currency {
    font-size: 24px;
    vertical-align: top;
    color: #666;
}

.wlt-price-amount {
    font-size: 48px;
    font-weight: bold;
    color: #2271b1;
}

.wlt-price-interval {
    font-size: 16px;
    color: #666;
}

.wlt-tier-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.wlt-tier-features {
    flex-grow: 1;
    margin: 20px 0;
}

.wlt-tier-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wlt-tier-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    display: flex;
    align-items: center;
}

.wlt-tier-features li:last-child {
    border-bottom: none;
}

.wlt-feature-icon {
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

.wlt-feature-included .wlt-feature-icon {
    color: #46b450;
}

.wlt-feature-excluded .wlt-feature-icon {
    color: #dc3232;
}

.wlt-feature-excluded {
    color: #999;
    text-decoration: line-through;
}

.wlt-trial-info {
    background: #cfe2ff;
    color: #084298;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 15px 0;
}

.wlt-tier-action {
    margin-top: 20px;
}

/* Buttons */
.wlt-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wlt-button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wlt-button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.wlt-button-secondary {
    background: #fff;
    color: #2271b1;
    border-color: #2271b1;
}

.wlt-button-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.wlt-button-current {
    background: #46b450;
    color: #fff;
    border-color: #46b450;
    cursor: default;
}

.wlt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subscription Status */
.wlt-subscription-status {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wlt-subscription-status h3 {
    margin-top: 0;
    font-size: 24px;
    color: #1a1a1a;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 15px;
}

.wlt-status-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wlt-status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e1e1e1;
}

.wlt-status-row:last-child {
    border-bottom: none;
}

.wlt-status-label {
    font-weight: 600;
    color: #666;
}

.wlt-status-value {
    color: #1a1a1a;
    font-weight: 600;
}

.wlt-status-active {
    color: #46b450;
}

.wlt-status-trialing {
    color: #2271b1;
}

.wlt-status-canceling,
.wlt-status-canceled {
    color: #dc3232;
}

.wlt-status-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Usage Meter */
.wlt-usage-meter {
    margin: 20px 0;
}

.wlt-usage-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.wlt-usage-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.wlt-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #46b450, #2271b1);
    transition: width 0.3s ease;
}

.wlt-usage-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 13px;
}

.wlt-usage-warning a {
    color: #2271b1;
    text-decoration: underline;
}

/* Notices */
.wlt-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.wlt-notice p {
    margin: 0;
}

.wlt-notice-success {
    background: #d4edda;
    border-color: #46b450;
    color: #155724;
}

.wlt-notice-error {
    background: #f8d7da;
    border-color: #dc3232;
    color: #721c24;
}

.wlt-notice-info {
    background: #cfe2ff;
    border-color: #2271b1;
    color: #084298;
}

.wlt-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Upgrade Message */
.wlt-upgrade-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wlt-upgrade-notice h4 {
    margin-top: 0;
    color: #856404;
}

.wlt-tier-options {
    list-style: none;
    padding: 0;
}

.wlt-tier-options li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wlt-tier-options li:last-child {
    border-bottom: none;
}

/* Restricted Content */
.wlt-restricted {
    background: #f8d7da;
    border: 2px solid #dc3232;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .wlt-pricing-table {
        grid-template-columns: 1fr;
    }
    
    .wlt-status-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .wlt-status-actions {
        flex-direction: column;
    }
    
    .wlt-button {
        width: 100%;
    }
}