/* Profile and Admin Styles for Nova Sapiens Research Platform */

/* Simple Error Body Style */
.simple-error-body {
    font-family: Arial, sans-serif;
    margin: 40px;
}

/* Auth Required Styles */
.auth-required {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.auth-text {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

/* Access Denied Styles */
.access-denied {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.denied-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.denied-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.denied-text {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
}

/* User Not Found Styles */
.user-not-found {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.not-found-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.not-found-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.not-found-text {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Profile Styles */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-avatar.fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Стили для эмодзи-аватарок */
.profile-avatar.emoji-avatar {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid rgba(102, 126, 234, 0.5);
}

.emoji-avatar-display {
    font-size: 40px;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform: scale(1);
    transition: transform 0.2s ease;
}

.profile-avatar.emoji-avatar:hover .emoji-avatar-display {
    transform: scale(1.1);
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-pro {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #8b5a00;
    position: relative;
}

/* PRO смайлик через CSS */
.status-pro::before {
    content: "👑";
    font-size: 16px;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(139, 90, 0, 0.3));
}

.status-free {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
    position: relative;
}

/* FREE смайлик через CSS */
.status-free::before {
    content: "🆓";
    font-size: 16px;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(74, 85, 104, 0.2));
}

.profile-info {
    display: grid;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #212529;
}

.info-value a {
    color: #0088cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #0066aa;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5a67d8;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ee5a5a, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
}

.session-info {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.session-loading {
    color: #999;
    font-style: italic;
}

/* Admin Profile Styles */
.admin-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.admin-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

.user-profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.user-meta {
    color: #7f8c8d;
    font-size: 0.9em;
}

.user-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.btn-logout {
    background: #ffeaa7;
    color: #8b6914;
}

.btn-block {
    background: #ff6b6b;
    color: white;
}

.btn-unblock {
    background: #00b894;
    color: white;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.admin-btn:hover {
    transform: translateY(-2px);
}

.sessions-info {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.session-item {
    background: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 13px;
} 