/* Import shared styles and variables */
:root {
  --dark-moss: #606C38;
  --pakistan-green: #283618;
  --cornsilk: #FEFAE0;
  --earth-yellow: #DDA15E;
  --tiger-eye: #BC6C25;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #2c3e50;
  
  /* LinkedIn Colors */
  --linkedin-blue: #0077b5;
  --linkedin-light-blue: #378fe9;
  --linkedin-dark-blue: #004182;
  --linkedin-gray: #666666;
  --linkedin-light-gray: #f3f2ef;
  --linkedin-border: #e6e6e6;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--pakistan-green);
  background-color: var(--cornsilk);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tool Section */
.tool-section {
  margin-top: 40px;
  padding: 2rem 0;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tool-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--pakistan-green);
  margin-bottom: 1rem;
}

.tool-subtitle {
  font-size: 1.2rem;
  color: var(--dark-moss);
  max-width: 600px;
  margin: 0 auto;
}

/* Post Creator Card */
.post-creator-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--earth-yellow);
  max-width: 800px;
  margin: 0 auto;
}

.creator-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pakistan-green);
  margin-bottom: 1rem;
}

.profile-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-inputs input,
.profile-inputs select {
  padding: 0.8rem;
  border: 2px solid var(--earth-yellow);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.profile-inputs input:focus,
.profile-inputs select:focus {
  outline: none;
  border-color: var(--dark-moss);
  box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}

.post-input-area {
  margin: 2rem 0;
}

.post-input-area h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pakistan-green);
  margin-bottom: 1rem;
}

#postContent {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  border: 2px solid var(--earth-yellow);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#postContent:focus {
  outline: none;
  border-color: var(--dark-moss);
  box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}

.creator-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.back-to-homepage {
  text-align: center;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--dark-moss);
  color: var(--cornsilk);
}

.btn-primary:hover {
  background: var(--pakistan-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(96, 108, 56, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--tiger-eye);
  border: 2px solid var(--tiger-eye);
}

.btn-secondary:hover {
  background: var(--tiger-eye);
  color: var(--cornsilk);
  transform: translateY(-2px);
}

/* LinkedIn Feed Styles */
.linkedin-feed {
  background: var(--linkedin-light-gray);
  min-height: 100vh;
  position: relative;
}

.linkedin-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* LinkedIn Header */
.linkedin-header {
  background: var(--white);
  border-bottom: 1px solid var(--linkedin-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.linkedin-nav {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.linkedin-logo {
  color: var(--linkedin-blue);
  font-size: 2rem;
  font-weight: bold;
  margin-right: 1rem;
}

.search-bar {
  flex: 1;
  max-width: 300px;
  position: relative;
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--linkedin-gray);
}

.search-bar input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  border: 1px solid var(--linkedin-border);
  border-radius: 4px;
  background: #eef3f8;
  font-size: 0.9rem;
}

.nav-icons {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--linkedin-gray);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--linkedin-blue);
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

/* LinkedIn Main Content - 3 Column Layout */
.linkedin-main {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left Sidebar */
.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--linkedin-border);
  overflow: hidden;
}

.profile-background {
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-info {
  padding: 1rem;
  text-align: center;
  position: relative;
  margin-top: -30px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.profile-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.25rem;
}

.profile-info p {
  font-size: 0.8rem;
  color: var(--linkedin-gray);
  margin-bottom: 0.25rem;
}

.profile-location {
  font-size: 0.75rem !important;
  color: var(--linkedin-gray);
}

.profile-stats {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--linkedin-border);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--linkedin-gray);
}

.stat-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--linkedin-blue);
}

.premium-upsell {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--linkedin-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--linkedin-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.premium-upsell:hover {
  background: var(--linkedin-light-gray);
}

.premium-upsell i {
  color: #f59e0b;
}

/* Activity Card */
.activity-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--linkedin-border);
  overflow: hidden;
}

.activity-section {
  padding: 1rem;
  border-bottom: 1px solid var(--linkedin-border);
}

.activity-section:last-child {
  border-bottom: none;
}

.activity-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.75rem;
}

.page-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--linkedin-gray);
  margin-bottom: 0.5rem;
}

.page-item i {
  font-size: 1rem;
}

.page-activity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--linkedin-gray);
}

.activity-count {
  font-weight: 600;
}

.grow-business h4 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.business-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--linkedin-gray);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.business-option:hover {
  color: var(--linkedin-blue);
}

.business-option i {
  font-size: 0.9rem;
}

.quick-links {
  padding: 0;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--linkedin-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.link-item:hover {
  background: var(--linkedin-light-gray);
}

.link-item i {
  font-size: 0.9rem;
  width: 16px;
}

/* Center Feed */
.feed-column {
  background: transparent;
  max-width: 550px;
  margin: 0 auto;
}

/* Start a Post Container */
.start-post-container {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--linkedin-border);
  margin-bottom: 1rem;
  padding: 1rem;
}

.start-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.start-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.start-post-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--linkedin-border);
  border-radius: 25px;
  background: var(--linkedin-light-gray);
  color: var(--linkedin-gray);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.start-post-input:hover {
  background: #e8e8e8;
}

.start-post-actions {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.post-action-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--linkedin-gray);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.post-action-item:hover {
  background: var(--linkedin-light-gray);
}

.post-action-item i {
  font-size: 1.1rem;
}

.text-blue { color: var(--linkedin-blue); }
.text-green { color: #057642; }
.text-orange { color: #c37d16; }
.text-red { color: #e16745; }

/* LinkedIn Post Styles */
.linkedin-post {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--linkedin-border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.linkedin-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.linkedin-post.user-post {
  border: 2px solid var(--linkedin-blue);
  box-shadow: 0 4px 20px rgba(0, 119, 181, 0.2);
}

.post-header {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1rem 0.5rem 1rem;
  gap: 0.75rem;
}

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

.post-author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: #000;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.author-title {
  color: var(--linkedin-gray);
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.post-time {
  color: var(--linkedin-gray);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-content {
  padding: 0.5rem 1rem 1rem 1rem;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.post-content-preview {
  padding: 0.5rem 1rem 0 1rem;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.post-content-full {
  padding: 0 1rem 1rem 1rem;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.see-more-btn {
  background: none;
  border: none;
  color: var(--linkedin-gray);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1rem 1rem 1rem;
  transition: color 0.3s ease;
}

.see-more-btn:hover {
  color: var(--linkedin-blue);
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-engagement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--linkedin-border);
  font-size: 0.8rem;
  color: var(--linkedin-gray);
}

.engagement-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--linkedin-border);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--linkedin-gray);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.action-btn:hover {
  background: var(--linkedin-light-gray);
  color: var(--linkedin-blue);
}

.action-btn.liked {
  color: var(--linkedin-blue);
}

/* Right Sidebar */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.linkedin-news {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--linkedin-border);
}

.linkedin-news h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.news-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linkedin-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background: var(--linkedin-light-gray);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-title {
  font-size: 0.85rem;
  color: #000;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--linkedin-gray);
}

.show-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--linkedin-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.show-more:hover {
  color: var(--linkedin-blue);
}

/* Puzzles Section */
.puzzles-section {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--linkedin-border);
}

.puzzles-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.puzzle-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linkedin-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.puzzle-item:hover {
  background: var(--linkedin-light-gray);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.puzzle-item:last-of-type {
  border-bottom: none;
}

.puzzle-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.puzzle-icon.zip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.puzzle-icon.tango {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.puzzle-icon.queens {
  background: linear-gradient(135deg, #10b981, #059669);
}

.puzzle-info {
  flex: 1;
}

.puzzle-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  display: block;
  margin-bottom: 0.25rem;
}

.puzzle-plays {
  font-size: 0.75rem;
  color: var(--linkedin-gray);
}

.puzzle-item i {
  color: var(--linkedin-gray);
  font-size: 0.8rem;
}

/* Back to Editor */
.back-to-editor {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.back-to-editor .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .linkedin-main {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .left-sidebar,
  .right-sidebar {
    order: 2;
  }
  
  .feed-column {
    order: 1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .profile-inputs {
    grid-template-columns: 1fr;
  }
  
  .creator-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-icons {
    gap: 1rem;
  }
  
  .nav-item span {
    display: none;
  }
  
  .linkedin-main {
    padding: 0.5rem;
  }
  
  .back-to-editor {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--linkedin-border);
  border-radius: 50%;
  border-top-color: var(--linkedin-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 