/* PM Community Pro - Public Styles */

:root {
    --pm-primary: #667eea;
    --pm-secondary: #764ba2;
    --pm-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pm-gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b4199 100%);
    --pm-radius-sm: 10px;
    --pm-radius-md: 15px;
    --pm-radius-lg: 20px;
    --pm-shadow-sm: 0 5px 15px rgba(102, 126, 234, 0.1);
    --pm-shadow-md: 0 10px 30px rgba(102, 126, 234, 0.15);
    --pm-shadow-lg: 0 20px 50px rgba(102, 126, 234, 0.2);
}

/* Alerts */
.pm-alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
}

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

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

.pm-notice {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--pm-primary);
    margin: 20px 0;
    border-radius: 5px;
}

.pm-notice-warning {
    background: #fff8e1;
    border-left-color: #ffa726;
}

.pm-notice-warning h3 {
    color: #f57c00;
    margin-top: 0;
    margin-bottom: 10px;
}

.pm-profile-login-required {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.pm-profile-login-required .pm-btn {
    margin-top: 15px;
    display: inline-block;
}

/* Follow Button States */
.pm-follow-btn.following {
    background: #28a745 !important;
    position: relative;
}

.pm-follow-btn.following:hover {
    background: #dc3545 !important;
}

.pm-follow-btn.following:hover:before {
    content: 'Přestat sledovat';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    border-radius: 5px;
}

/* Avatar Upload */
.pm-avatar-upload-container {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
}

.pm-avatar-preview {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.pm-avatar-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #f0f0f0;
    box-shadow: var(--pm-shadow-sm);
}

.pm-avatar-preview.loading {
    opacity: 0.6;
}

.pm-avatar-preview.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--pm-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pm-upload-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.pm-upload-message {
    margin-top: 20px;
}

.pm-avatar-upload-message {
    margin-top: 15px;
}

.pm-alert-loading {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Avatar info styles */
.pm-avatar-requirements {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.pm-avatar-requirements strong {
    color: #dc3545;
}

/* File size error highlight */
.pm-file-size-error {
    color: #dc3545;
    font-weight: bold;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success animation for avatar */
.pm-avatar-success {
    animation: successPulse 1s;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Remove button styling */
.pm-remove-avatar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.pm-remove-avatar:hover {
    background: #c82333;
}

/* Users Grid */
.pm-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pm-user-card {
    background: white;
    border-radius: var(--pm-radius-sm);
    padding: 15px;
    box-shadow: var(--pm-shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.pm-user-card:hover {
    box-shadow: var(--pm-shadow-md);
    transform: translateY(-2px);
}

.pm-user-card a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.pm-user-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

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

.pm-user-info strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.pm-user-info span {
    color: #666;
    font-size: 14px;
}

/* Small Button */
.pm-btn-sm {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 40px;
}

/* Cover Image Upload */
.pm-cover-upload-container {
    position: relative;
    height: 300px;
    background: var(--pm-gradient);
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.pm-cover-upload-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-cover-upload-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pm-cover-upload-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* Profile Edit Form */
.pm-profile-edit-form {
    background: white;
    padding: 30px;
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
}

.pm-profile-edit-form h3 {
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Tabs */
.pm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.pm-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pm-tab:hover {
    color: var(--pm-primary);
}

.pm-tab.active {
    color: var(--pm-primary);
}

.pm-tab.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pm-primary);
}

.pm-tab-content {
    display: none;
}

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

/* Loading Spinner */
.pm-loading {
    text-align: center;
    padding: 40px;
}

.pm-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--pm-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Skrytí admin baru */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* Skrytí WordPress admin odkazů */
.wp-admin-bar-edit,
.wp-admin-bar-new-content,
.wp-admin-bar-comments,
.wp-admin-bar-updates {
    display: none !important;
}

/* Forms */
.pm-registration-wrapper,
.pm-login-wrapper {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.pm-registration-container,
.pm-login-container {
    background: white;
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-md);
    padding: 40px;
}

.pm-registration-title,
.pm-login-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    background: var(--pm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-form {
    margin-top: 30px;
}

.pm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pm-form-row {
        grid-template-columns: 1fr;
    }
}

.pm-form-group {
    margin-bottom: 20px;
}

.pm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.pm-form-group input[type="text"],
.pm-form-group input[type="email"],
.pm-form-group input[type="password"],
.pm-form-group input[type="date"],
.pm-form-group select,
.pm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.pm-form-group input:focus,
.pm-form-group select:focus,
.pm-form-group textarea:focus {
    outline: none;
    border-color: var(--pm-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pm-form-group input.error {
    border-color: #dc3545;
}

.pm-field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.pm-field-hint {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* Password strength indicator */
.pm-password-strength {
    margin-top: 10px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.pm-password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 10px;
}

.pm-password-strength-bar.weak {
    background: #dc3545;
}

.pm-password-strength-bar.medium {
    background: #ffc107;
}

.pm-password-strength-bar.strong {
    background: #28a745;
}

.pm-password-strength-text {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 11px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Checkbox groups */
.pm-checkbox-group {
    display: flex;
    align-items: flex-start;
}

.pm-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.pm-checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.pm-checkbox-group a {
    color: var(--pm-primary);
    text-decoration: none;
}

.pm-checkbox-group a:hover {
    text-decoration: underline;
}

/* Buttons */
.pm-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.pm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pm-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pm-btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pm-btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

.pm-btn-secondary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.pm-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.pm-btn-loading {
    display: none;
}

/* Button with icon */
.pm-btn i {
    margin-right: 8px;
}

/* Button badge for notifications */
.pm-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    position: relative;
    top: -2px;
}

/* Messages button with badge */
.pm-btn-messages {
    position: relative;
}


/* Large button variant */
.pm-btn-lg {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 60px;
}

/* Dashboard action buttons */
.pm-dashboard-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pm-dashboard-actions .pm-btn {
    flex: 0 0 auto;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    padding: 14px 28px;
}

.pm-dashboard-actions .pm-btn:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

/* Success button */
.pm-btn-success {
    background: linear-gradient(135deg, #00C851 0%, #00FF7F 100%);
    color: white;
}

.pm-btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

/* Danger button */
.pm-btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    color: white;
}

.pm-btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

/* Warning button */
.pm-btn-warning {
    background: linear-gradient(135deg, #FFB900 0%, #FFAA00 100%);
    color: white;
}

.pm-btn-warning:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 185, 0, 0.3);
}

/* Form actions */
.pm-form-actions {
    margin-top: 30px;
    text-align: center;
}

.pm-form-message {
    margin-top: 20px;
}

/* Social login */
.pm-social-login {
    margin-top: 30px;
}

.pm-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.pm-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.pm-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 14px;
}

.pm-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pm-social-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pm-social-facebook {
    background: #1877f2;
}

.pm-social-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.pm-social-google {
    background: #ea4335;
}

.pm-social-google:hover {
    background: #d33b2c;
    transform: translateY(-2px);
}

/* Form footer */
.pm-form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pm-form-footer p {
    color: #666;
    font-size: 14px;
}

.pm-form-footer a {
    color: var(--pm-primary);
    text-decoration: none;
    font-weight: 600;
}

.pm-form-footer a:hover {
    text-decoration: underline;
}

/* Login specific */
.pm-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.pm-forgot-password a {
    color: var(--pm-primary);
    text-decoration: none;
    font-size: 14px;
}

.pm-forgot-password a:hover {
    text-decoration: underline;
}

/* Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .pm-registration-wrapper,
    .pm-login-wrapper {
        padding: 10px;
    }
    
    .pm-registration-container,
    .pm-login-container {
        padding: 30px 20px;
    }
    
    .pm-social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Mobile-friendly login form improvements */
@media (max-width: 480px) {
    .pm-login-wrapper,
    .pm-registration-wrapper {
        padding: 0 10px;
        margin: 20px auto;
    }

    .pm-login-container,
    .pm-registration-container {
        padding: 20px 15px;
        border-radius: var(--pm-radius-md);
    }

    .pm-login-title,
    .pm-registration-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .pm-form-group label {
        font-size: 13px;
    }

    .pm-form-group input,
    .pm-form-group select,
    .pm-form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .pm-btn {
        width: 100%;
        font-size: 15px;
        padding: 14px;
        border-radius: 10px;
    }

    .pm-login-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ========================================
   PROFILE PAGE STYLES - OPRAVENÁ VERZE
   ======================================== */

.pm-profile-wrapper {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
}

/* Profile Header */
.pm-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

/* Odstranění parallax efektu */
.pm-profile-header,
.pm-profile-header * {
    transform: none !important;
}

/* Profile Main */
.pm-profile-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* Avatar */
.pm-profile-avatar {
    flex-shrink: 0;
}

.pm-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    object-fit: cover;
}

/* Profile Info */
.pm-profile-info {
    flex: 1;
    color: white;
}

.pm-profile-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.pm-profile-tagline {
    font-size: 18px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.95) !important;
    font-style: italic;
}

.pm-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.95) !important;
}

.pm-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
}

.pm-profile-meta-item span {
    color: white !important;
}

.pm-profile-meta-item a {
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.pm-profile-meta-item a:hover {
    border-bottom-color: white;
}

/* Profile Actions - DŮLEŽITÉ! */
.pm-profile-actions {
    display: flex !important;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Profile Buttons - Přepsání stylů */
.pm-profile-actions .pm-btn {
    padding: 10px 24px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.pm-profile-actions .pm-btn:hover {
    background: white !important;
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.pm-btn-follow.following {
    background: rgba(40, 167, 69, 0.3) !important;
    border-color: rgba(40, 167, 69, 0.8) !important;
}

.pm-btn-follow.following:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Stats Section */
.pm-profile-stats {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.15);
    padding: 20px 25px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.pm-stat-item {
    text-align: center;
    color: white;
    flex: 1;
}

.pm-stat-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.pm-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Profile Content */
.pm-profile-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Profile Sections */
.pm-profile-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pm-profile-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pm-bio-section,
.pm-empty-section {
    grid-column: span 2;
}

.pm-empty-section {
    text-align: center;
    padding: 60px;
}

.pm-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-bio-text {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

/* Tags */
.pm-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pm-tag {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
}

.pm-tag-musical {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.pm-tag-actor {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.pm-tag-interest {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.pm-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Empty States */
.pm-empty {
    color: #999;
    font-style: italic;
}

.pm-edit-link {
    color: var(--pm-primary);
    text-decoration: none;
    font-weight: 600;
}

.pm-edit-link:hover {
    text-decoration: underline;
}

.pm-empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Notifications */
.pm-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    max-width: 350px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease-out;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-notification.show {
    right: 20px;
}

.pm-notification-success {
    border-left: 4px solid #28a745;
}

.pm-notification-success::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.pm-notification-error {
    border-left: 4px solid #dc3545;
}

.pm-notification-error::before {
    content: '✕';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pm-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .pm-profile-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .pm-profile-name {
        font-size: 28px;
    }
    
    .pm-profile-tagline {
        font-size: 16px;
    }
    
    .pm-profile-meta {
        justify-content: center;
    }
    
    .pm-profile-actions {
        justify-content: center;
        width: 100%;
    }
    
    .pm-profile-actions .pm-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .pm-profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .pm-profile-content {
        grid-template-columns: 1fr;
    }
    
    .pm-bio-section,
    .pm-empty-section {
        grid-column: span 1;
    }
    
    .pm-notification {
        right: -100%;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .pm-notification.show {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .pm-profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .pm-profile-name {
        font-size: 22px;
    }
    
    .pm-profile-tagline {
        font-size: 14px;
    }
    
    .pm-profile-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pm-profile-actions .pm-btn {
        width: 100%;
    }
    
    .pm-stat-item {
        flex: 1 1 100%;
    }
    
    .pm-profile-stats {
        gap: 15px;
    }
    
    .pm-tags-grid {
        gap: 8px;
    }
    
    .pm-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* --- Avatar preview (large) & overlay fixes --- */
.pm-avatar-preview-large {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--pm-shadow-sm);
}
#pm-avatar-preview img,
.pm-avatar-preview-large img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.pm-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    opacity: 0;
    transition: opacity .2s ease-in-out;
    pointer-events: none;
}
.pm-avatar-preview-large:hover .pm-avatar-overlay {
    opacity: 1;
    pointer-events: auto;
}
.pm-avatar-change {
    background: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* --- Profile edit layout: make it taller / less wide --- */
.pm-edit-main { max-width: 100%; }
.pm-avatar-editor { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) {
  .pm-avatar-editor { grid-template-columns: auto 1fr; }
}
/* Ensure sections stack nicely on narrower pages with sidebar */
.pm-edit-section { width: 100%; }

.pm-edit-container,.pm-edit-main{max-width:860px;margin:0 auto}
.pm-avatar-editor{display:grid;grid-template-columns:1fr;gap:20px}@media(min-width:1000px){.pm-avatar-editor{grid-template-columns:auto 1fr}}


/* avatar circles in headers */
.pm-header-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.pm-header-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.pm-header-avatar-lg{width:120px;height:120px}


.pm-dashboard-header .pm-dashboard-greeting h1{color:#fff}
.pm-dashboard-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.pm-dashboard-avatar{width:80px;height:80px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06)}


/* FIX: make only message notifications clickable and ensure link works */
.pm-notifications-list .pm-notification-item--clickable { cursor: pointer; }
.pm-notifications-list .pm-notification-item .pm-notification-link { display:inline-block; position:relative; z-index:2; pointer-events:auto; }
.pm-notifications-list .pm-notification-item .pm-notification-time { pointer-events:none; }



/* FIX: clickable notifications only for message items */
.pm-notifications-list .pm-notification-item--clickable { cursor: pointer; }
.pm-notifications-list .pm-notification-link { pointer-events: auto; position: relative; z-index: 2; text-decoration: none; }
.pm-notifications-list .pm-notification-link:hover { text-decoration: underline; }


/* FIX: notif links minimal */
.pm-notification-item--clickable { cursor: pointer; }
.pm-notification-link { pointer-events:auto; position:relative; z-index:1; text-decoration:none; }
.pm-notification-link:hover { text-decoration:underline; }
