/**
 * Wedding Member Plugin - Frontend Styles
 * Version: 1.7.0
 */

/* Tier Selection Grid */
.wvm-tier-selection {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* No Tiers Message */
.wvm-no-tiers {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
}

.wvm-no-tiers p {
    margin: 10px 0;
    color: #6b7280;
    font-size: 16px;
}

.wvm-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Tier Card */
.wvm-tier-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.wvm-tier-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.wvm-tier-header {
    text-align: center;
    margin-bottom: 25px;
}

.wvm-tier-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.wvm-tier-price {
    margin-bottom: 10px;
}

.wvm-price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #3b82f6;
}

.wvm-price-period {
    font-size: 16px;
    color: #6b7280;
}

.wvm-trial-badge {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.wvm-tier-description {
    margin-bottom: 25px;
    color: #6b7280;
    text-align: center;
}

.wvm-tier-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.wvm-tier-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wvm-feature-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

.wvm-feature-limit {
    color: #6b7280;
    font-size: 14px;
}

.wvm-select-tier-btn {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wvm-select-tier-btn:hover {
    background: #2563eb;
}

/* Dashboard Sections */
.wvm-dashboard-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    margin-left: 0 !important; /* Override any default margin */
}

/* WeddingDir Dashboard Integration */
.weddingdir-dashboard .wvm-dashboard-section,
.dashboard-content .wvm-dashboard-section {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
}

.wvm-dashboard-header h2 {
    margin: 0 0 20px 0;
    color: #1f2937;
}

.wvm-subscription-card,
.wvm-features-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wvm-subscription-card h3,
.wvm-features-card h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
}

.wvm-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.wvm-info-row:last-child {
    border-bottom: none;
}

.wvm-label {
    color: #6b7280;
    font-weight: 500;
}

.wvm-value {
    color: #1f2937;
}

/* Status Colors */
.wvm-status-active {
    color: #10b981;
    font-weight: 600;
}

.wvm-status-trialing {
    color: #3b82f6;
    font-weight: 600;
}

.wvm-status-past_due {
    color: #f59e0b;
    font-weight: 600;
}

.wvm-status-canceled {
    color: #ef4444;
    font-weight: 600;
}

.wvm-status-incomplete {
    color: #6b7280;
    font-weight: 600;
}

/* Features List */
.wvm-features-list {
    display: grid;
    gap: 15px;
}

.wvm-feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wvm-feature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wvm-feature-item.enabled {
    border-color: #10b981;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.wvm-feature-item.disabled {
    border-color: #e5e7eb;
    background: #fafafa;
}

.wvm-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wvm-feature-item.enabled .wvm-feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wvm-feature-item.disabled .wvm-feature-icon {
    background: #e5e7eb;
}

.wvm-feature-item .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.wvm-feature-item.enabled .dashicons {
    color: #ffffff;
}

.wvm-feature-item.disabled .dashicons {
    color: #9ca3af;
}

.wvm-feature-content {
    flex: 1;
}

.wvm-feature-content h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.wvm-feature-item.disabled .wvm-feature-content h4 {
    color: #6b7280;
}

.wvm-feature-content p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.wvm-feature-item.disabled .wvm-feature-content p {
    color: #9ca3af;
}

.wvm-feature-value {
    margin-top: 8px !important;
    color: #059669 !important;
    font-size: 15px !important;
}

.wvm-feature-status {
    flex-shrink: 0;
}

.wvm-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wvm-badge-enabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wvm-badge-disabled {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Account Summary Card */
.wvm-account-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.wvm-account-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.wvm-account-avatar {
    flex-shrink: 0;
}

.wvm-avatar-img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wvm-account-info h2 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.wvm-account-email {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.wvm-account-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.wvm-account-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wvm-account-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .wvm-tiers-grid {
        grid-template-columns: 1fr;
    }

    .wvm-info-row {
        flex-direction: column;
        gap: 5px;
    }

    .wvm-account-header {
        flex-direction: column;
        text-align: center;
    }

    .wvm-account-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
