/* ===== linkedin.css - LinkedIn Page Only ===== */

body {
  background: url("linkedin/1.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 15, 0.82);
  z-index: -1;
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 2rem auto 4rem;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeInUp 0.8s ease both;
}

/* Dashboard Grids */
.linkedin-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  width: 100%;
  align-items: stretch;
}

.linkedin-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  align-items: stretch;
}

/* Common Card style overrides */
.card.premium-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  text-align: left; /* Left align for professional documentation layout */
}

/* Connections Card specific centering */
.connections.card.premium-card {
  text-align: center;
  justify-content: center;
}

.connections-card h2 {
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 4px 20px rgba(185, 219, 107, 0.25);
}

.con-subtitle {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.avatars {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.avatars img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform var(--transition), border-color var(--transition);
}

.avatars img:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent);
}

.linkedin-btn {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: center;
  padding: 0.8rem 2.2rem;
}

.linkedin-btn:hover {
  background: transparent;
  color: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.35);
}

/* Achievements section */
.achievements h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.achieve-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.achievements .badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
  width: 100%;
}

.achievements .badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: none;
}

.achievements .badge i {
  color: var(--accent);
  font-size: 1rem;
}

.achievements .badge:hover {
  transform: translateY(-3px);
  background: rgba(185, 219, 107, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* Recommendations styling */
.recommendations h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
}

.rec-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.rec-card p {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.rec-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Activity & Posts styling */
.activity h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-list .post-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
}

.activity-list .post-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.activity-list .post-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.activity-list .post-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.activity-list .post-card .btn {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .linkedin-top-grid,
  .linkedin-bottom-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 1.5rem;
    margin: 1.5rem auto;
  }

  .card.premium-card {
    padding: 1.75rem;
  }

  .avatars img {
    width: 50px;
    height: 50px;
  }
}
