/**
 * My Account styles
 * 
 * @package WC_Memberships_Tutor_LMS
 */

.wcmt-my-memberships {
    padding: 20px 0;
}

.wcmt-my-memberships h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.wcmt-section-title {
    margin: 30px 0 20px 0;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.wcmt-section-title:first-of-type {
    margin-top: 0;
}

.wcmt-expired-section {
    margin-top: 40px;
    color: #666;
}

.wcmt-memberships-list {
    display: grid;
    gap: 20px;
}

.wcmt-membership-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.wcmt-membership-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.wcmt-membership-card.expiring-soon {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.wcmt-membership-card.expired {
    border-color: #999;
    background: #f5f5f5;
    opacity: 0.85;
}

.wcmt-membership-card.expired:hover {
    border-color: #667eea;
    opacity: 1;
}

.wcmt-membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.wcmt-membership-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.wcmt-membership-card.expired .wcmt-membership-header h3 {
    color: #666;
}

.wcmt-membership-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wcmt-membership-status.active {
    background: #4caf50;
    color: #fff;
}

.wcmt-membership-status.expired {
    background: #999;
    color: #fff;
}

.wcmt-membership-details {
    margin-bottom: 20px;
}

.wcmt-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wcmt-detail-row:last-child {
    border-bottom: none;
}

.wcmt-detail-label {
    font-weight: 600;
    color: #666;
}

.wcmt-detail-value {
    color: #333;
}

.wcmt-detail-value.expiring {
    color: #ff6b6b;
    font-weight: 600;
}

.wcmt-detail-value.expired-date {
    color: #999;
    font-style: italic;
}

.wcmt-membership-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    margin-top: 15px;
}

.wcmt-membership-warning .dashicons {
    color: #ffc107;
}

.wcmt-membership-expired-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f0f0f0;
    border: 1px solid #999;
    border-radius: 6px;
    color: #666;
    margin-top: 15px;
}

.wcmt-membership-expired-notice .dashicons {
    color: #999;
}

.wcmt-membership-renewed-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 6px;
    color: #155724;
    margin-top: 15px;
}

.wcmt-membership-renewed-notice .dashicons {
    color: #28a745;
}

.wcmt-renew-button-wrapper {
    margin-top: 15px;
}

.wcmt-renew-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    background: #667eea;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.wcmt-renew-button:hover {
    background: #764ba2;
}

.wcmt-membership-courses {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.wcmt-membership-courses h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.wcmt-membership-card.expired .wcmt-membership-courses h4 {
    color: #666;
}

.wcmt-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wcmt-course-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wcmt-course-list li:last-child {
    border-bottom: none;
}

.wcmt-course-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wcmt-course-list a:hover {
    color: #764ba2;
}

.wcmt-course-list .expired-course {
    color: #999;
    font-style: italic;
}

.wcmt-more-courses {
    font-style: italic;
    color: #666;
}

/* Available Memberships Section */
.wcmt-available-memberships {
    margin-top: 30px;
}

.wcmt-available-memberships h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.wcmt-memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wcmt-available-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.wcmt-available-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.wcmt-available-card h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.wcmt-available-price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.wcmt-available-duration {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
}

.wcmt-available-card .button {
    width: 100%;
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wcmt-available-card .button:hover {
    background: #764ba2;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wcmt-membership-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wcmt-detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .wcmt-memberships-grid {
        grid-template-columns: 1fr;
    }
}