/**
 * WC Membership Frontend Styles
 */

/* Download Button */
.wc-membership-download-wrap {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    text-align: center;
}

.wc-membership-download-btn {
    display: inline-block;
    padding: 12px 30px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3) !important;
    margin-bottom: 10px !important;
}

.wc-membership-download-btn:hover {
    background: #005177 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4) !important;
}

.wc-membership-download-info {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.wc-membership-download-limit {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.wc-membership-limit-msg {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Sign Up Info */
.wc-membership-signup-info {
    margin: 15px 0;
    padding: 15px;
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 6px;
    text-align: center;
}

.wc-membership-signup-info p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
}

.wc-membership-view-plans-btn {
    display: inline-block;
    padding: 8px 20px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wc-membership-view-plans-btn:hover {
    background: #005177 !important;
    color: #fff !important;
}

/* Membership Plans Grid */
.wc-membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wc-membership-plans-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.wc-membership-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wc-membership-plan-card:hover {
    border-color: #0073aa;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.15);
    transform: translateY(-3px);
}

.wc-membership-plan-card.wc-membership-current-plan {
    border-color: #2ecc71;
    background: #f0fff0;
}

.wc-membership-plan-current-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #2ecc71;
    color: #fff;
    padding: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wc-membership-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.wc-membership-plan-price {
    margin-bottom: 20px;
}

.wc-membership-plan-amount {
    font-size: 36px;
    font-weight: 700;
    color: #0073aa;
}

.wc-membership-plan-amount .woocommerce-Price-amount {
    font-size: 36px;
}

.wc-membership-plan-duration {
    font-size: 16px;
    color: #666;
}

.wc-membership-plan-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wc-membership-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.wc-membership-plan-features li {
    padding: 8px 0;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.wc-membership-plan-features li:last-child {
    border-bottom: none;
}

.wc-membership-plan-btn {
    display: inline-block;
    padding: 12px 30px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

.wc-membership-plan-btn:hover {
    background: #005177 !important;
    color: #fff !important;
}

.wc-membership-plan-btn-current {
    background: #2ecc71 !important;
    opacity: 0.7;
}

.wc-membership-plan-btn-current:hover {
    background: #27ae60 !important;
}

.wc-membership-no-plans {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* My Account - Membership Page */
.wc-membership-account-wrap {
    max-width: 800px;
}

.wc-membership-status-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.wc-membership-status-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
}

.wc-membership-status-active {
    border-color: #2ecc71;
    background: #f0fff0;
}

.wc-membership-status-active h3 {
    color: #2ecc71;
}

.wc-membership-status-none {
    border-color: #f39c12;
    background: #fff9e6;
}

.wc-membership-status-none h3 {
    color: #f39c12;
}

.wc-membership-status-details {
    margin-bottom: 20px;
}

.wc-membership-status-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wc-membership-status-row:last-child {
    border-bottom: none;
}

.wc-membership-status-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.wc-membership-status-value {
    color: #666;
}

.wc-membership-days-left {
    color: #0073aa;
    font-weight: 600;
}

.wc-membership-renew-action {
    text-align: center;
    margin-top: 20px;
}

.wc-membership-renew-btn {
    display: inline-block;
    padding: 10px 25px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wc-membership-renew-btn:hover {
    background: #005177 !important;
    color: #fff !important;
}

/* Membership History Table */
.wc-membership-history {
    margin-top: 30px;
}

.wc-membership-history h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.wc-membership-history-table {
    width: 100%;
    border-collapse: collapse;
}

.wc-membership-history-table th {
    background: #f1f1f1;
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

.wc-membership-history-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Badges (shared) */
.wc-membership-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wc-membership-badge.badge-green {
    background: #2ecc71;
    color: #fff;
}

.wc-membership-badge.badge-red {
    background: #e74c3c;
    color: #fff;
}

.wc-membership-badge.badge-yellow {
    background: #f39c12;
    color: #fff;
}

.wc-membership-badge.badge-blue {
    background: #0073aa;
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .wc-membership-plans-grid {
        grid-template-columns: 1fr;
    }

    .wc-membership-status-row {
        flex-direction: column;
        gap: 4px;
    }

    .wc-membership-download-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .wc-membership-plan-amount {
        font-size: 28px;
    }

    .wc-membership-plan-amount .woocommerce-Price-amount {
        font-size: 28px;
    }
}