/**
 * User Profile Styles
 *
 * @package    Magazines_Collection
 * @since      0.0.50
 */

/* Profile Header */
.user-profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--border-color, #ddd);
}

.user-info-detail {
    flex: 1;
}

.user-info-detail h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.user-full-name {
    font-size: 1.1rem;
    color: var(--text-secondary, #666);
    margin: 0 0 0.25rem 0;
}

.user-username {
    font-size: 0.95rem;
    color: var(--text-muted, #999);
    margin: 0 0 0.5rem 0;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.user-email .dashicons {
    font-size: 1rem;
}

.user-bio {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-light, #f9f9f9);
    border-radius: 8px;
    line-height: 1.6;
}

/* Statistics Grid */
.user-statistics {
    margin: 2rem 0;
}

.user-statistics h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light, #f9f9f9);
    border-radius: 8px;
    border: 2px solid var(--border-color, #e0e0e0);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #2271b1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color, #2271b1);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666);
}

/* Collections List */
.user-collections {
    margin: 2rem 0;
}

.user-collections h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.collections-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.collection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.collection-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.collection-card h3 a {
    color: var(--text-primary, #000);
    text-decoration: none;
}

.collection-card h3 a:hover {
    color: var(--primary-color, #2271b1);
}

.collection-description {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.collection-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Edit Profile Form */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
}

.form-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.form-help {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Avatar Section in Edit Form */
.avatar-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.current-avatar {
    flex-shrink: 0;
}

.current-avatar img {
    border-radius: 50%;
    border: 3px solid var(--border-color, #ddd);
}

.avatar-info {
    flex: 1;
}

.avatar-info p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

.avatar-info .button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #666;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.avatar-info .button:hover {
    background: #444;
}

.avatar-info .button-secondary {
    background: #666;
}

.avatar-info .button-secondary:hover {
    background: #444;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #000);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary, #666);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2271b1);
    box-shadow: 0 0 0 1px var(--primary-color, #2271b1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .user-avatar {
        margin: 0 auto;
    }

    .user-email {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .collections-list {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .button {
        width: 100%;
    }
    
    .avatar-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Private Profile Notice */
.private-profile-notice {
    text-align: center;
    max-width: 500px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color, #ddd);
}

.notice-icon {
    margin-bottom: 1.5rem;
    color: var(--text-secondary, #666);
}

.notice-icon svg {
    display: inline-block;
}

.private-profile-notice h1 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.private-profile-notice p {
    color: var(--text-secondary, #666);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Privacy Toggle */
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid var(--border-color, #ddd);
    transition: all 0.2s;
}

.privacy-toggle:hover {
    background: #f0f0f0;
}

.privacy-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.toggle-label {
    font-weight: 600;
    font-size: 1rem;
}

.privacy-description {
    margin-top: 0.75rem;
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Anonymous Avatar */
.avatar-anonymous {
    border-radius: 50%;
    background: #f0f0f0;
    border: 3px solid var(--border-color, #ddd);
}
