/* Profile Page Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif;
  background-color: #0d1117;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.page-container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: 24px;
  padding-top: 24px;
}

@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    order: -1;
  }
}

/* Card Base Style */
.card {
  background: #1d2226;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

/* Profile Header Card */
.profile-header {
  margin-bottom: 8px;
}

.banner-image {
  width: 100%;
  height: 196px;
  object-fit: cover;
  object-position: center;
  background: #0b1422;
  display: block;
}

.profile-info {
  padding: 0 24px 24px;
  position: relative;
}

.profile-photo-wrapper {
  margin-top: -88px;
  margin-bottom: 12px;
}

.profile-photo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 4px solid #1d2226;
  object-fit: cover;
  background: #0d1117;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
  margin-bottom: 4px;
}

.profile-headline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  margin-bottom: 8px;
}

.profile-location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 8px;
}

.profile-connections {
  font-size: 14px;
  color: #70b5f9;
  font-weight: 600;
}

/* About Section */
.about-section {
  margin-bottom: 8px;
}

.section-header {
  padding: 16px 24px 8px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.about-content {
  padding: 0 24px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Activity/Feed Section */
.activity-section {
  margin-bottom: 8px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 8px;
}

.activity-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.followers-count {
  font-size: 14px;
  color: #70b5f9;
  font-weight: 600;
}

/* Post Card */
.post-card {
  margin-bottom: 8px;
}

.post-header {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
}

.post-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}

.post-author-headline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-timestamp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.post-content {
  padding: 0 16px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.post-content p {
  margin-bottom: 12px;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, 0.92);
}

.post-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: rgba(255, 255, 255, 0.92);
}

.post-content ul, .post-content ol {
  margin: 8px 0 12px 20px;
}

.post-content li {
  margin-bottom: 4px;
}

.post-content em {
  font-style: italic;
}

.post-content strong {
  font-weight: 600;
}

/* Article Link in Post */
.article-preview {
  margin: 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-preview:hover {
  background: rgba(255, 255, 255, 0.04);
}

.article-preview-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.article-preview-content {
  padding: 12px 16px;
}

.article-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  margin-bottom: 4px;
}

.article-preview-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Sidebar Cards */
.sidebar-card {
  margin-bottom: 8px;
  padding: 16px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.sidebar-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

/* Experience Section */
.experience-item {
  display: flex;
  padding: 16px 24px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.experience-item:last-child {
  border-bottom: none;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #0d1117;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.experience-details {
  flex: 1;
}

.experience-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.experience-company {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.experience-duration {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* Read More / Expand */
.read-more {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px 16px;
  display: inline-block;
}

.read-more:hover {
  color: #70b5f9;
}

/* Full Post Expansion */
.post-full-content {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.post-full-content.expanded {
  max-height: none;
}

.post-full-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.post-full-content.expanded::after {
  display: none;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 24px;
}

.site-footer a {
  color: #70b5f9;
  text-decoration: none;
}

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

/* Article Cards Grid (Landing Page) */
.article-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 24px 24px;
}

@media (max-width: 600px) {
  .article-cards {
    grid-template-columns: 1fr;
  }
}

.article-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-card-image {
  height: 120px;
  width: 100%;
  overflow: hidden;
  background: #0d1117;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  padding: 12px;
}

.article-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  margin: 0 0 4px;
}

.article-card-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 8px;
}

.article-card-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Services Section */
.services-section {
  margin-bottom: 8px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.service-tag {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
}

/* Experience Section */
.experience-section {
  margin-bottom: 8px;
}

.experience-details {
  display: flex;
  flex-direction: column;
}

/* Activity Header Link */
.activity-header a {
  text-decoration: none;
}

.activity-header a:hover {
  text-decoration: underline;
}

/* Posts Page - Compact Profile Header */
.profile-header-compact {
  display: flex;
  padding: 16px;
  margin-bottom: 8px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.profile-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.profile-photo-small {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info-compact {
  display: flex;
  flex-direction: column;
}

.profile-name-compact {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.profile-headline-compact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Activity Page Header */
.activity-page-header {
  padding: 16px 24px;
  margin-bottom: 8px;
}

.activity-page-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.activity-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding-bottom: 8px;
}

.activity-tab {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding-bottom: 8px;
  margin-bottom: -9px;
  text-decoration: none;
}

.activity-tab:hover {
  color: rgba(255, 255, 255, 0.92);
}

.activity-tab.active {
  color: #70b5f9;
  font-weight: 600;
  border-bottom: 2px solid #70b5f9;
}

/* Articles Grid Page */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-preview-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.article-preview-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-preview-image {
  width: 200px;
  min-width: 200px;
  height: 134px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-preview-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-preview-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-preview-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  gap: 8px;
}

.article-preview-author {
  font-weight: 600;
}

@media (max-width: 600px) {
  .article-preview-card {
    flex-direction: column;
  }

  .article-preview-image {
    width: 100%;
    height: 180px;
  }
}

/* Full Article Page */
.article-full {
  padding: 24px;
  margin-bottom: 8px;
}

.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.article-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.article-cover {
  margin-bottom: 24px;
}

.article-body {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: rgba(255, 255, 255, 0.92);
}

.article-body ul, .article-body ol {
  margin: 16px 0 16px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: #70b5f9;
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

/* Article Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  margin-bottom: 8px;
}

.nav-link {
  color: #70b5f9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Post Feed */
.post-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Comment Section - Login Gated */
.comment-section {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 12px 16px;
}

.comment-login-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.comment-login-prompt a {
  color: #70b5f9;
  text-decoration: none;
  font-weight: 600;
}

.comment-login-prompt a:hover {
  text-decoration: underline;
}

.comment-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
}

/* Comments List */
.comments-list {
  margin-bottom: 12px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #70b5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-avatar span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.comment-time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}

.comment-edited {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
}

.comment-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  margin-top: 4px;
}

.comment-delete-btn {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}

.comment-delete-btn:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Comment Form */
.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  line-height: 1.4;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #70b5f9;
  box-shadow: 0 0 0 1px #70b5f9;
}

.comment-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.comment-form button {
  align-self: flex-end;
  background: #70b5f9;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form button:hover {
  background: #004182;
}

.comment-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Article Images */
.article-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.article-inline-image {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}

.image-credit {
  text-align: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: -12px;
  margin-bottom: 16px;
}

.article-byline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 16px;
  font-style: italic;
}

.post-content a {
  color: #70b5f9;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* Experience Description */
.experience-description {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 4px;
  line-height: 1.4;
}

/* SEO Hidden Content */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Featured In / Press section (added 2026-04-28) ──────────────────
   Third-party press citations. New entries go on top of the press-list. */
.press-section {
  margin-bottom: 8px;
}
.press-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.press-item {
  display: block;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.press-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(112, 181, 249, 0.35);
}
.press-publisher {
  font-size: 12px;
  font-weight: 600;
  color: rgba(112, 181, 249, 0.95);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.press-headline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 4px;
  line-height: 1.4;
}
.press-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
