/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #ffffff;
  color: #262220;
  display: flex;
}

/* Sidebar Styles */
.sidebar {
  display: none;
  width: 234px;
  background-color: #f9fafb;
  padding: 24px;
  flex-direction: column;
  gap: 25.6px;
  position: fixed;
  height: 100vh;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .sidebar {
    display: flex;
  }
}

.sidebar-title {
  font-size: 20px;
  font-weight: 400;
  color: #262220;
}

.divider {
  margin-top: 8px;
  border-bottom: 1px solid #d1d5db;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #262220;
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: #f3f4f6;
}

.nav-item.active {
  background-color: #262220;
  color: #ffffff;
}

.nav-item .icon {
  flex-shrink: 0;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 9.6px;
}

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(38, 34, 32, 0.6);
  font-weight: 500;
}

.nav-item.external {
  justify-content: space-between;
  position: relative;
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.external-icon,
.copy-icon {
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-item.external:hover .external-icon,
.nav-item.external:hover .copy-icon {
  opacity: 1;
}

.copied-text {
  display: none;
  font-size: 12px;
  color: #16a34a;
}

.copied-text.show {
  display: inline;
}

.copied-text.show ~ .copy-icon {
  display: none;
}

/* Main Container */
.main-container {
  margin-left: 234px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
}

@media (max-width: 639px) {
  .main-container {
    margin-left: 0;
  }
}

.content {
  flex: 1;
}

.page-content {
  max-width: 672px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Profile Image */
.profile-image-wrapper {
  margin-bottom: 24px;
}

.profile-image {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: #f3f4f6;
}

/* Typography */
.subtitle {
  margin-top: 12px;
  color: rgba(38, 34, 32, 0.8);
  line-height: 1.5;
}

.section {
  margin-top: 40px;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 500;
  color: rgba(38, 34, 32, 0.6);
}

.section-title.placeholder {
  color: rgba(38, 34, 32, 0.6);
}

.placeholder-text {
  color: rgba(38, 34, 32, 0.6);
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #262220;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #262220;
  line-height: 1.6;
}

.bookmark-list {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Links */
.link {
  color: #262220;
  text-decoration: underline;
  text-decoration-color: rgba(38, 34, 32, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: rgba(38, 34, 32, 0.6);
}

/* Smooth transitions */
a, button {
  transition: all 0.2s ease;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile Header */
.mobile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 60px;
}

.mobile-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #262220;
  line-height: 1;
}

.mobile-menu-btn {
  position: static;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: #e5e7eb;
}

@media (min-width: 640px) {
  .mobile-header {
    display: none;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Sidebar */
@media (max-width: 639px) {
  body {
    padding-top: 60px;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 50;
    background-color: #f9fafb;
    transition: left 0.3s ease;
    display: flex;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-close-btn {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #262220;
    padding: 0;
    z-index: 51;
  }

  .sidebar-close-btn:hover {
    opacity: 0.7;
  }
}

@media (min-width: 640px) {
  .sidebar-close-btn {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 45;
}

.sidebar-overlay.show {
  display: block;
}

@media (min-width: 640px) {
  .sidebar-overlay {
    display: none !important;
  }
}

