:root {
    --bg-main: #0a0a0a;
    --bg-card: #111216;
    --text-main: #e9e9e9;
    --text-muted: #a8adb3;
    --accent: #0a66c2;
    --muted-2: #2b2f33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body { height: 100%; }


/* Header / Navigation */
.navbar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(10,102,194,0.95), rgba(10,86,194,0.85));
    height: 64px;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo .logo-icon{
    background: rgba(255,255,255,0.12);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 700;
}

.logo .logo-text{ font-weight: 700; letter-spacing: 0.3px }

.nav-links { display:flex; gap:12px; align-items:center }

.nav-link { color: rgba(255,255,255,0.95); text-decoration:none; padding:8px 12px; border-radius:8px; font-weight:600; transition: background .18s }
.nav-link:hover{ background: rgba(255,255,255,0.04) }

.btn-outline{ border: 1px solid rgba(255,255,255,0.12); padding:6px 10px }
.btn-danger{ background: rgba(255,80,80,0.12); color:#fff; padding:6px 10px; border:none }

.mobile-menu-btn{ display:none; background:transparent; border:none; gap:4px; flex-direction:column }
.mobile-menu-btn span{ display:block; width:22px; height:2px; background:#fff; border-radius:2px }

.container { max-width:1100px; margin:0 auto }

@media (max-width:800px){ .nav-links{ display:none } .mobile-menu-btn{ display:flex } }


.photos {
    height: 250px;
    margin-top: 100px;
 
}




.contain a:hover {
    color: whitesmoke;
    background-color: black;
    margin: 3px;
    padding-top: 15px;
    text-align: center;
    font-weight: 1000;
    transition: all 0.5s;
}
/*******************************************************/



body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 72px; /* space for fixed navbar */
}

.feed {
    margin: 90px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
    align-items: center;
}

article {
    width: 100%;
    max-width: 700px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeIn 0.4s ease; 
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-content {
    padding: 15px;
}

.card-text{
    padding: 12px 15px 8px 15px;
    max-height: 140px;
    overflow: hidden;
    transition: max-height 0.28s ease;
    line-height: 1.6;
}

.card-text.expanded {
    max-height: 1100px;
}

.read-more {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
    width: fit-content;
}

.card img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
}

.card-content h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-family: inherit;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}



@media (max-width: 600px) {

}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b3b8;
    font-size: 14px;
}

.like-btn {
    background: transparent;
    border: none;
    color: #b0b3b8;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
}

.like-btn:hover {
    color: #0a66c2;
}

.like-btn.liked {
    color: #0a66c2;
    animation: pop 0.2s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-count {
    font-weight: 500;
}

.comments {
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.comments.hidden {
    display: none;
}

.comment {
    background: #240e0e;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    display: block;
    width: 100%;
    border: white 0.5px solid;
}

.add-comment {
    display: flex;
    gap: 5px;
}

.add-comment input {
    flex: 1;
    padding: 6px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;

}


.add-comment button {
    background: #0a66c2;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.imp-text {
    font-weight: 700;
    border-radius: 6px;
    background-color: rgba(42,49,176,0.12);
    color: #ffffff;
    padding: 2px 6px;
}

/******************************************/
table {
    width: 100%;
    border-collapse: collapse ;
    min-width: 600px;
    font-family: 'inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

table th {
    padding: 14px;
    text-align: left;
    font-size: 14px;
    color: #cbd5f5;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border-bottom: 1px solid #1f2933;
}

table td {
    padding: 14px;
    font-size: 15px;
    color: #e5e7eb;
    border-bottom: 1px solid #1f2933;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    table th, table td {
        padding: 10px;
    }
}


/*******************video*******************/
.video-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 10px;
    background: #121212;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

/**************Share thinking section ********************/


/* =======================
   Comment Section
======================= */

.comment-section {
  background: var(--bg-card);
  padding: 40px 25px;
  border-radius: 12px;
  max-width: 600px;
  margin: 60px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  font-family: 'Georgia', serif;
  text-align: center;
}

.comment-section h2 {
  font-size: 28px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.comment-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ===== Form ===== */

.comment-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-section input,
.comment-section textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--muted-2);
    background: #0b0b0b;
    font-size: 15px;
    font-family: 'Arial', sans-serif;
    outline: none;
    transition: 0.18s;
}

.comment-section textarea {
  resize: none;
  min-height: 120px;
}

.comment-section input:focus,
.comment-section textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10,102,194,0.12);
}

/* ===== Button ===== */

.comment-section button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.18s;
}

.comment-section button:hover { filter: brightness(0.95) }

/* Composer card specific */
.composer .card-content { padding: 12px; }
.composer input#postTitle, .composer textarea#postBody {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid var(--muted-2);
    background: #080808;
    color: var(--text-main);
}
.composer .composer-actions { display:flex; gap:10px; align-items:center }
.photo-preview img { max-height:80px; border-radius:6px }
.btn-post { margin-left: auto; background: var(--accent); color:#fff; border:none; padding:8px 12px; border-radius:8px }

/* ===== Comments List ===== */

#commentsContainer {
  margin-top: 40px;
  text-align: left;
}

.comment {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  animation: fadeIn 0.4s ease-in;
}

.comment strong {
  color: var(--text-main);
  font-size: 15px;
}

.comment p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 12px;
  line-height: 1.6;
}

/* ===== Like Button ===== */

.comment button {
  background: none;
  border: none;
  color: #c9a55c;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}

.comment button:hover {
  color: #b4934f;
  transform: scale(1.1);
}

/* ===== Animation ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Mobile ===== */

@media (max-width: 480px) {
  .comment-section {
    padding: 30px 20px;
  }

  .comment-section h2 {
    font-size: 24px;
  }
}

/* =============================================
   LinkedIn-Style Post Layout
============================================= */

/* Post Header with Author Info */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #333;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0a66c2;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.post-time {
  font-size: 12px;
  color: var(--text-muted);
}

.delete-post-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.delete-post-btn:hover {
  color: #ff6b6b;
}

/* Post Content */
.post-image {
  width: 100%;
  background: #0b0b0b;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-content {
  padding: 12px 16px;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.post-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  word-wrap: break-word;
}

/* Post Stats */
.post-stats {
  display: flex;
  gap: 20px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid #333;
}

.stat-item {
  cursor: pointer;
  transition: color 0.2s;
}

.stat-item:hover {
  color: var(--accent);
}

/* Post Actions */
.post-actions {
  display: flex;
  gap: 8px;
  padding: 8px 8px;
}

.action-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-btn:hover {
  background: rgba(10, 102, 194, 0.1);
  color: var(--accent);
}

.like-btn.liked {
  color: var(--accent);
}

/* Comments Section */
.comments-section {
  padding: 12px 0;
  border-top: 1px solid #333;
}

.comments-section.hidden {
  display: none;
}

.comments-list {
  padding: 0 16px 12px;
  max-height: 400px;
  overflow-y: auto;
}

/* Individual Comment */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #2b2f33;
}

.comment-item:last-child {
  border-bottom: none;
}

.avatar-comment {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #333;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-header strong {
  font-size: 13px;
  color: var(--text-main);
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
}

.delete-comment-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: auto;
  transition: color 0.2s;
}

.delete-comment-btn:hover {
  color: #ff6b6b;
}

.comment-content p {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}

/* Add Comment Section */
.add-comment-section {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #333;
  align-items: flex-start;
}

.comment-input-wrapper {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-comment-input {
  flex: 1;
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}

.add-comment-input:focus {
  border-color: var(--accent);
  background: #1a1a1a;
}

.add-comment-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s;
}

.add-comment-btn:hover {
  color: #0948a3;
}

.add-comment-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Scrollbar Styling */
.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .post-header {
    padding: 10px 12px 6px;
  }

  .post-content {
    padding: 10px 12px;
  }

  .post-stats {
    padding: 6px 12px;
  }

  .post-actions {
    padding: 6px;
  }

  .action-btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  .comments-list {
    padding: 0 12px 8px;
  }

  .add-comment-section {
    padding: 8px 12px;
  }

  .avatar-small {
    width: 36px;
    height: 36px;
  }

  .avatar-comment {
    width: 28px;
    height: 28px;
  }
}
