/* /eticks/styles/profile.css */

.et-profile,
.et-profile * {
  box-sizing: border-box;
}

.et-profile {
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(to bottom, #002b2b, #000 140px),
    #000;
  padding: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

.et-profile .profile-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.et-profile .profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: rgba(255,255,255,.92);
}

.et-profile .topbar-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
}

.et-profile .icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}

.et-profile .icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
}

.et-profile .profile-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 18px;
}

.et-profile .profile-header-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 6px;
}

.et-profile .avatar-frame {
  position: relative;
  flex: 0 0 auto;
}

.et-profile .avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #d8cf75;
  background: #222;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.et-profile .online-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7cff6b;
  border: 2px solid #d8cf75;
  position: absolute;
  left: 88px;
  bottom: 12px;
  box-shadow: 0 0 0 4px rgba(124,255,107,.14);
}

.et-profile .profile-meta {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

.et-profile .name {
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  letter-spacing: -.02em;
}

.et-profile .tagline {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
  max-width: 520px;
}

.et-profile .profile-actions-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.et-profile .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.et-profile .btn {
  background: #fff;
  color: #111;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 10px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.et-profile .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255,255,255,.12);
}

.et-profile .edit-fab {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}

.et-profile .edit-fab:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
}

.et-profile .stats-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 14px 10px;
  backdrop-filter: blur(12px);
}

.et-profile .stat {
  text-align: center;
  position: relative;
}

.et-profile .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 12%;
  width: 1px;
  height: 76%;
  background: rgba(255,255,255,.1);
}

.et-profile .stat h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.et-profile .stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.64);
}

.et-profile .content-section {
  max-width: 980px;
  margin: 16px auto 0;
  background: rgba(255,255,255,.94);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  color: #111827;
}

.et-profile .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.et-profile .section-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.et-profile .section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.et-profile .section-head span {
  font-size: 12px;
  color: #6b7280;
}

.et-profile .feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.et-profile .feed img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .25s ease;
}

.et-profile .feed img:hover {
  transform: scale(1.03);
}

.et-profile .skeleton {
  background: linear-gradient(90deg, #212121 25%, #303030 37%, #212121 63%);
  background-size: 400% 100%;
  animation: et-profile-skeleton 1.4s ease infinite;
}

.et-profile .skeleton-light {
  background: linear-gradient(90deg, #eceff3 25%, #dde3ea 37%, #eceff3 63%);
  background-size: 400% 100%;
  animation: et-profile-skeleton-light 1.4s ease infinite;
}

@keyframes et-profile-skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@keyframes et-profile-skeleton-light {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.et-profile .modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 18px;
}

.et-profile .modal-content {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
}

.et-profile .modal h3 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.et-profile .input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8dee6;
  margin-bottom: 12px;
  font-size: 14px;
  outline: none;
}

.et-profile .input:focus {
  border-color: #2b7cff;
  box-shadow: 0 0 0 3px rgba(43,124,255,.12);
}

.et-profile .drop {
  border: 2px dashed #d0d7e2;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  background: #fafcff;
}

.et-profile .upload-box {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.et-profile .upload-box .preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.et-profile .upload-text {
  font-size: 14px;
  color: #667085;
}

.et-profile .save-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.et-profile .save-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.et-profile .notifications {
  position: fixed;
  right: -420px;
  top: 0;
  width: 420px;
  height: 100%;
  background: linear-gradient(180deg, #000 0%, #130025 35%, #160007 100%);
  box-shadow: -10px 0 40px rgba(0,0,0,.12);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
  z-index: 200;
}

.et-profile .notifications.open {
  right: 0;
}

.et-profile .notif-header {
  padding: 18px 22px;
  color: #eee;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.et-profile .notif-close {
  color: #eee;
  cursor: pointer;
  font-size: 18px;
}

.et-profile .notif-list {
  flex: 1;
  overflow-y: auto;
}

.et-profile .notification {
  padding: 16px 20px;
  border-bottom: 1px solid #161616;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.et-profile .notification:hover {
  background: #001325;
}

.et-profile .notif-card {
  display: flex;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
  width: 100%;
}

.et-profile .notif-poster-wrap {
  position: relative;
  flex: 0 0 auto;
}

.et-profile .notif-poster {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.et-profile .notif-badge {
  position: absolute;
  top: -10px;
  left: 9px;
  background: #ff2d55;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  letter-spacing: .5px;
}

.et-profile .notif-info {
  flex: 1;
  min-width: 0;
}

.et-profile .notif-title {
  color: #ff2d55;
  font-weight: 600;
  font-size: 14px;
}

.et-profile .notif-text {
  font-size: 13px;
  opacity: .76;
  margin-top: 2px;
  color: #fff;
  line-height: 1.45;
}

.et-profile .notif-time {
  font-size: 12px;
  opacity: .55;
  margin-top: 4px;
  color: #ffebb4;
}

.et-profile .notif-view-btn {
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6a5cff, #8b7bff);
  color: #fff;
}

.et-profile .empty-notif {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #00c9c9;
  padding: 24px;
}

.et-profile .empty-notif img {
  width: 70px;
  opacity: .6;
  margin-bottom: 10px;
}

.et-profile .notif-skeleton {
  height: 60px;
  background: linear-gradient(90deg, #060014, #252525, #1d1d1d);
  animation: et-profile-notif-load 1.2s infinite;
}

@keyframes et-profile-notif-load {
  0% { opacity: .6; }
  50% { opacity: 1; }
  100% { opacity: .6; }
}

.et-profile .loader {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: et-profile-spin .6s linear infinite;
  display: inline-block;
}

@keyframes et-profile-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .et-profile .profile-header-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .et-profile .profile-meta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .et-profile {
    padding: 14px 10px 30px;
  }

  .et-profile .avatar {
    width: 96px;
    height: 96px;
  }

  .et-profile .name {
    font-size: 19px;
  }

  .et-profile .feed {
    grid-template-columns: repeat(2, 1fr);
  }

  .et-profile .notifications {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .et-profile .profile-header-row {
    gap: 14px;
  }

  .et-profile .avatar {
    width: 86px;
    height: 86px;
  }

  .et-profile .online-dot {
    left: 64px;
    bottom: 10px;
  }

  .et-profile .name {
    font-size: 16px;
  }

  .et-profile .stats-strip {
    gap: 8px;
    padding: 12px 8px;
  }

  .et-profile .stat h3 {
    font-size: 16px;
  }

  .et-profile .feed {
    grid-template-columns: 1fr;
  }

  .et-profile .content-section {
    padding: 16px;
    border-radius: 24px;
  }

  .et-profile .modal-content {
    padding: 18px;
    border-radius: 16px;
  }
}

.menu-wrap {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  background: #111;
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}

.menu-dropdown button {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.menu-dropdown button:hover {
  background: rgba(255,255,255,.08);
}