/**
 * Member Dashboard Styles
 * Simplified styling for the member profiles module
 * Independent of WooCommerce templates
 */

/* Main Dashboard Layout */
.member-dashboard-wrapper {
    padding: 20px 0;
    min-height: 60vh;
}

/* Dashboard Container */
.nwc-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Dashboard Header */
.nwc-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nwc-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nwc-dashboard-profile h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    color: #333;
}

/* Status Indicators */
.nwc-status-active {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.nwc-status-inactive {
    display: inline-block;
    background: #F44336;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.nwc-subscribe-button {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.nwc-subscribe-button:hover {
    background: #d35400;
    color: white;
    text-decoration: none;
}

/* Tabs Navigation */
.nwc-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.nwc-tabs-nav li {
    margin-right: 0;
    margin-bottom: 0;
    flex: 1;
}

.nwc-tabs-nav li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nwc-tabs-nav li.active a {
    background: #e67e22;
    color: white;
    border: none;
}

.nwc-tabs-nav li a:hover {
    background: #f8f8f8;
    color: #333;
}

.nwc-tabs-nav li.active a:hover {
    background: #d35400;
    color: white;
}

.nwc-tab-content {
    display: none;
    background: #fff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

.nwc-tab-content.active {
    display: block;
}

/* Avatar Display */
.nwc-user-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nwc-avatar-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.nwc-avatar-preview img {
    border-radius: 50%;
    max-width: 150px;
    height: auto;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nwc-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Avatar Upload Form */
.nwc-avatar-upload-container {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.nwc-avatar-upload-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}

.nwc-avatar-form {
    max-width: 400px;
    margin: 0 auto;
}

.nwc-avatar-field {
    margin-bottom: 1rem;
}

.nwc-avatar-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.nwc-avatar-field input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.nwc-avatar-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.nwc-avatar-form button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.nwc-avatar-form button:hover {
    background: #d35400;
}

/* Profile Editor */
.nwc-profile-editor {
    margin-bottom: 2rem;
}

.nwc-profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.nwc-profile-section:last-child {
    border-bottom: none;
}

.nwc-form-row {
    margin-bottom: 1.5rem;
}

.nwc-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.nwc-form-row input[type="text"],
.nwc-form-row input[type="email"],
.nwc-form-row input[type="password"],
.nwc-form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.nwc-form-actions {
    margin-top: 2rem;
}

.nwc-form-actions .button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.nwc-form-actions .button:hover {
    background: #d35400;
}

/* Messages */
.nwc-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.nwc-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nwc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nwc-avatar-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.nwc-avatar-success {
    background: #d4edda;
    color: #155724;
}

.nwc-avatar-error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nwc-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nwc-dashboard-status {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nwc-tabs-nav {
        flex-direction: column;
    }
    
    .nwc-tabs-nav li {
        width: 100%;
    }
    
    .nwc-tabs-nav li a {
        width: 100%;
        text-align: center;
    }
    
    .nwc-tab-content {
        padding: 1rem;
    }
    
    .nwc-dashboard-container {
        padding: 1rem;
    }
}

/* WooCommerce Integration (if needed) */
.nwc-woo-content {
    /* Styles for WooCommerce content when integrated */
}

/* Profile Display */
.nwc-user-profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.nwc-user-profile .nwc-user-avatar {
    margin-bottom: 0.5rem;
}

.nwc-user-profile .nwc-user-name {
    font-weight: 500;
    color: #333;
}

.nwc-profile-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nwc-name-left .nwc-profile-horizontal {
    flex-direction: row;
}

.nwc-name-right .nwc-profile-horizontal {
    flex-direction: row-reverse;
}
