/**
 * MOBILE PROFILE - Профиль пользователя для мобильных
 * Современный дизайн с настройками
 */

@media (max-width: 767px) {
  /* ============================================
     PAGE LAYOUT
     ============================================ */
  
  .profile-page,
  .edit-profile-page {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .profile-page .container,
  .edit-profile-page .container {
    padding: 0 16px !important;
  }
  
  /* ============================================
     PROFILE HEADER
     ============================================ */
  
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    text-align: center;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--color-primary, #00d4ff);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  }
  
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary, #00d4ff);
  }
  
  .profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  
  .profile-email {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
  }
  
  .profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 20px;
    color: #000;
    font-size: 12px;
    font-weight: 700;
  }
  
  .profile-badge i {
    font-size: 14px;
  }
  
  /* ============================================
     STATS ROW
     ============================================ */
  
  .profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 20px;
  }
  
  .profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary, #00d4ff);
  }
  
  .profile-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* ============================================
     ACTION BUTTONS
     ============================================ */
  
  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--text-main, #fff);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .profile-action-btn:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.12);
  }
  
  .profile-action-btn--primary {
    background: var(--color-primary, #00d4ff);
    border-color: var(--color-primary, #00d4ff);
    color: #000;
  }
  
  .profile-action-btn--danger {
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
  }
  
  /* ============================================
     SECTIONS
     ============================================ */
  
  .profile-section {
    margin-bottom: 24px;
  }
  
  .profile-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .profile-section-title i {
    color: var(--color-primary, #00d4ff);
  }
  
  /* ============================================
     MENU ITEMS
     ============================================ */
  
  .profile-menu {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-main, #fff);
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .profile-menu-item:last-child {
    border-bottom: none;
  }
  
  .profile-menu-item:active {
    background: rgba(255,255,255,0.06);
  }
  
  .profile-menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-right: 12px;
    font-size: 18px;
    color: var(--color-primary, #00d4ff);
  }
  
  .profile-menu-content {
    flex: 1;
    min-width: 0;
  }
  
  .profile-menu-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  
  .profile-menu-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
  }
  
  .profile-menu-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
  }
  
  /* Toggle switch */
  .profile-menu-toggle {
    width: 48px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .profile-menu-toggle.active {
    background: var(--color-primary, #00d4ff);
  }
  
  .profile-menu-toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  .profile-menu-toggle.active::after {
    transform: translateX(20px);
  }
  
  /* ============================================
     THEME SELECTOR (in profile)
     ============================================ */
  
  .profile-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
  }
  
  .profile-theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .profile-theme-option.active {
    border-color: var(--color-primary, #00d4ff);
    background: rgba(0, 212, 255, 0.1);
  }
  
  .profile-theme-preview {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.2);
  }
  
  .profile-theme-name {
    font-size: 12px;
    font-weight: 600;
  }
  
  /* ============================================
     HISTORY & FAVORITES LISTS
     ============================================ */
  
  .profile-content-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 0 16px;
    scrollbar-width: none;
  }
  
  .profile-content-list::-webkit-scrollbar {
    display: none;
  }
  
  .profile-content-item {
    flex: 0 0 120px;
    width: 120px;
  }
  
  .profile-content-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  
  .profile-content-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .profile-content-title {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .profile-content-progress {
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
  }
  
  .profile-content-progress-bar {
    height: 100%;
    background: var(--color-primary, #00d4ff);
    border-radius: 2px;
  }
  
  /* ============================================
     SUBSCRIPTION SECTION
     ============================================ */
  
  .profile-subscription {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 170, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
  }
  
  .profile-subscription-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .profile-subscription-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 12px;
    color: #000;
    font-size: 24px;
  }
  
  .profile-subscription-title {
    font-size: 18px;
    font-weight: 700;
  }
  
  .profile-subscription-status {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
  }
  
  .profile-subscription-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .profile-subscription-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    font-size: 11px;
    color: #ffd700;
  }
  
  .profile-subscription-feature i {
    font-size: 12px;
  }
  
  .profile-subscription-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
  }
  
  .profile-subscription-btn:active {
    transform: scale(0.98);
  }
  
  /* ============================================
     LOGOUT & DANGER ZONE
     ============================================ */
  
  .profile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    color: #ff4444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 32px;
  }
  
  .profile-logout:active {
    background: rgba(255, 68, 68, 0.2);
  }
}

/* ============================================
   EDIT PROFILE FORM
   ============================================ */
@media (max-width: 767px) {
  .edit-profile-form {
    padding: 16px 0;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
  }
  
  .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--text-main, #fff);
    font-size: 16px;
    transition: all 0.2s ease;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--color-primary, #00d4ff);
    background: rgba(255,255,255,0.12);
  }
  
  .form-control::placeholder {
    color: rgba(255,255,255,0.4);
  }
  
  .avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
  }
  
  .avatar-upload-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .avatar-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-upload-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
  }
  
  .form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: var(--color-primary, #00d4ff);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
  }
  
  .form-submit:active {
    transform: scale(0.98);
  }
}
