@import url('shared-styles.css');

/* note.css - LaoVerse Note Page Styling */


/* Base Styles */

:root {

--neon-blue: #66f0ff;

--light-blue: #00b7d4;

--soft-blue: #8bd8e5;

--black: #000000;

--white: #ffffff;

--gray: #222222;

--light-gray: #333333;

--chat-gray: #1a1a1a;

}


* {

margin: 0;

padding: 0;

box-sizing: border-box;

font-family: 'Noto Sans Lao', sans-serif;

}
.haha{
  color: #000000;
  padding: 10px 20px;
}

body {

background-color: var(--black);

color: var(--white);

line-height: 1.6;

min-height: 100vh;
-webkit-tap-highlight-color: rgba(255, 0, 0, 0.0);

background-image:

radial-gradient(circle at 10% 20%, rgba(102, 240, 255, 0.05) 0%, transparent 20%),

radial-gradient(circle at 90% 80%, rgba(102, 240, 255, 0.05) 0%, transparent 20%);

padding-top: 80px;

}


/* Header Styles */

.main-header {

width: 100%;

padding: 1rem 2rem;

display: flex;

justify-content: space-between;

align-items: center;

background-color: var(--black);

border-bottom: 1px solid var(--neon-blue);

box-shadow: 0 0 15px var(--neon-blue);

position: fixed;

top: 0;

left: 0;

z-index: 1000;

}


.logo img {

width: 200px;

}


.main-nav ul {

display: flex;

list-style: none;

gap: 1.5rem;

}


.main-nav a {

color: var(--white);

text-decoration: none;

transition: all 0.3s ease;

padding: 10px;

border-radius: 10px;

border: 2px solid var(--neon-blue);

background-color: var(--black);

}


.main-nav a:hover {

color: var(--neon-blue);

text-shadow: 0 0 5px var(--neon-blue);

background-color: var(--white);

}


.main-nav a.active {

background-color: var(--neon-blue);

color: var(--black);

font-weight: bold;

}


/* Main Content Styles */

.main-content {

max-width: 800px;

margin: 0 auto;

padding: 2rem 1rem;

}


.page-header {

text-align: center;

margin-bottom: 2rem;

padding: 1rem;

border-bottom: 1px solid rgba(102, 240, 255, 0.3);

}


.page-header h1 {

color: var(--neon-blue);

font-size: 2rem;

margin-bottom: 0.5rem;

text-shadow: 0 0 10px rgba(102, 240, 255, 0.5);

}


/* Notifications Container */

#notificationsContainer {

display: flex;

flex-direction: column;

gap: 1.5rem;

}

/* Posts Container */

.commented-posts-container {

display: flex;

flex-direction: column;

gap: 1.5rem;

}


.no-posts {

text-align: center;

color: #aaa;

padding: 2rem;

background-color: var(--gray);

border-radius: 10px;

border: 1px dashed var(--neon-blue);

}

/* Notification Card Styles */

.notification {

display: flex;

gap: 1rem;

background-color: var(--gray);

padding: 1.5rem;

border-radius: 10px;

border: 1px solid rgba(102, 240, 255, 0.3);

box-shadow: 0 0 10px rgba(102, 240, 255, 0.1);

transition: all 0.3s ease;

align-items: flex-start;

}

.notification:hover {

background-color: var(--light-gray);

border-color: var(--neon-blue);

box-shadow: 0 0 15px rgba(102, 240, 255, 0.3);

transform: translateX(5px);

cursor: pointer;

}

.notification.friend-request-notif {

background: linear-gradient(135deg, rgba(102, 240, 255, 0.05) 0%, rgba(0, 183, 212, 0.05) 100%);

}

.notification.like-notif {

background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0.03) 100%);

}

.notification.comment-notif {

background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.03) 100%);

}

.notif-avatar {
width: 50px;
height: 50px;
min-width: 50px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
border: 2px solid var(--neon-blue);
box-shadow: 0 0 8px rgba(102, 240, 255, 0.4);
}

.notif-content {

flex: 1;

display: flex;

flex-direction: column;

gap: 0.5rem;

}

.notif-message {

color: var(--white);

font-size: 1rem;

line-height: 1.4;

display: flex;

align-items: center;

gap: 0.5rem;

}

.notif-message strong {

color: var(--neon-blue);

font-weight: 600;

}

.notif-icon {

font-size: 1.2rem;

}

.content-preview {

color: #aaa;

font-size: 0.85rem;

padding: 0.5rem 0.8rem;

background-color: rgba(0, 0, 0, 0.3);

border-left: 2px solid var(--neon-blue);

border-radius: 3px;

max-width: 100%;

white-space: normal;

word-wrap: break-word;

}

.friend-request-actions {

display: flex;

gap: 0.5rem;

margin-top: 0.8rem;

}

.accept-request,

.decline-request {

padding: 0.6rem 1rem;

border: none;

border-radius: 5px;

cursor: pointer;

font-weight: 600;

font-size: 0.9rem;

transition: all 0.3s ease;

flex: 1;

max-width: 120px;

}

.accept-request {

background-color: #4CAF50;

color: white;

border: 1px solid #45a049;

}

.accept-request:hover {

background-color: #45a049;

box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);

transform: scale(1.05);

}

.decline-request {

background-color: #f44336;

color: white;

border: 1px solid #da190b;

}

.decline-request:hover {

background-color: #da190b;

box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);

transform: scale(1.05);

}

.notif-time {

color: #777;

font-size: 0.75rem;

margin-top: 0.3rem;

}

/* Post Styles */

.post {

background-color: var(--gray);

padding: 1.5rem;

border-radius: 10px;

border: 1px solid var(--neon-blue);

box-shadow: 0 0 15px rgba(102, 240, 255, 0.2);

}


.post-header {

display: flex;

align-items: center;

margin-bottom: 1rem;

}


.post-profile-pic {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
margin-right: 1rem;
border: 1px solid var(--neon-blue);
}


.post-user-info {

flex: 1;

}


.post-user-info strong {

color: var(--white);

font-size: 1.1rem;

margin-bottom: 0.2rem;

display: block;

}


.post-user-info small {

color: #aaa;

font-size: 0.8rem;

}


.post-content {

margin-bottom: 1rem;

}


.post-text {

color: var(--white);

margin-bottom: 1rem;

line-height: 1.5;

}


.post-image {

max-width: 100%;

max-height: 400px;

border-radius: 5px;

display: block;

margin-top: 1rem;

border: 1px solid var(--neon-blue);

}


.post-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 240, 255, 0.2);
  flex-wrap: wrap;
}

.post-edit-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(102, 240, 255, 0.25);
}

.post-edit-box h4 {
  margin: 0 0 0.6rem;
  color: var(--neon-blue);
}

.post-edit-box textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background-color: var(--light-gray);
  color: var(--white);
  resize: vertical;
}

.post-edit-box textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--neon-blue);
}

.file-input-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(102, 240, 255, 0.4);
  border-radius: 8px;
  margin-top: 1rem;
  cursor: pointer;
  background: rgba(102, 240, 255, 0.05);
  transition: all 0.3s ease;
  color: var(--neon-blue);
  font-weight: 500;
}

.file-input-label:hover {
  background: rgba(102, 240, 255, 0.12);
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(102, 240, 255, 0.2);
}

.file-input-name {
  font-size: 0.8rem;
  color: #aaa;
  font-weight: normal;
}

.post-edit-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.post-edit-actions button {
  background-color: transparent;
  color: var(--neon-blue);
  border: 1px solid rgba(102, 240, 255, 0.35);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-edit-actions button:hover {
  background: rgba(102, 240, 255, 0.12);
  box-shadow: 0 0 10px rgba(102, 240, 255, 0.25);
}


/* Icon styling for buttons with theme support */
.btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 1;
  margin-right: 0.2rem;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.like-btn, .comment-btn, .edit-post-btn, .delete-post-btn {
  background: none;
  border: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 6px 10px;
  line-height: 1;
  width: fit-content;
  flex-shrink: 1;
  border-radius: 5px;
  background-color: rgba(102, 240, 255, 0.05);
  border: 1px solid rgba(102, 240, 255, 0.1);
}

.delete-post-btn {
  color: #ff6666;
  border-color: rgba(255, 102, 102, 0.2);
}

.like-btn:hover, .comment-btn:hover, .edit-post-btn:hover, .delete-post-btn:hover {
  background-color: var(--light-blue);
  color: var(--black);
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.reply-to-comment-btn,
.edit-comment-btn,
.delete-comment-btn {
  background: rgba(102, 240, 255, 0.05);
  border: 1px solid rgba(102, 240, 255, 0.1);
  color: var(--neon-blue);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.delete-comment-btn {
  color: #ff6666;
  border-color: rgba(255, 102, 102, 0.1);
}

.reply-to-comment-btn:hover,
.edit-comment-btn:hover {
  background-color: var(--neon-blue);
  color: var(--black);
}

.delete-comment-btn:hover {
  background-color: #ff6666;
  color: white;
}

.like-btn .like-icon {
  color: var(--neon-blue);
  filter: drop-shadow(0 0 2px var(--neon-blue));
}

.like-btn.liked {
  color: #ff4444;
}

.like-btn.liked .like-icon {
  color: #ff4444;
  filter: drop-shadow(0 0 3px #ff4444);
}

.comment-btn .comment-icon {
  color: var(--light-blue);
  filter: drop-shadow(0 0 2px var(--light-blue));
}

.reply-toggle .reply-icon {
  color: var(--soft-blue);
  filter: drop-shadow(0 0 1px var(--soft-blue));
}


/* Comments Section */

.comments-section {

margin-top: 1rem;

padding-top: 1rem;

border-top: 1px dashed rgba(102, 240, 255, 0.2);

}


.comment {

display: flex;

gap: 1rem;

margin-bottom: 1rem;

padding: 0.8rem;

border-radius: 8px;

transition: all 0.3s ease;

}


.comment:hover {

background-color: rgba(102, 240, 255, 0.05);

}


.comment-profile-pic {

width: 40px;

height: 40px;

border-radius: 50%;

object-fit: cover;

box-shadow: 0 0 5px rgba(102, 240, 255, 0.3);

}


.comment-content {

flex: 1;

}


.comment-header {

display: flex;

align-items: center;

gap: 0.5rem;

margin-bottom: 0.3rem;

}


.comment-header strong {

color: var(--white);

font-weight: bold;

}


.comment-header small {

color: #aaa;

font-size: 0.8rem;

}


.comment p {

color: var(--white);

line-height: 1.4;

}


.no-comments {

color: #aaa;

text-align: center;

padding: 1rem;

}


.add-comment {

display: flex;

gap: 0.5rem;

margin-top: 1rem;

}


.comment-input {

flex: 1;

padding: 0.8rem;

border: none;

border-radius: 5px;

background-color: var(--light-gray);

color: var(--white);

font-size: 1rem;

transition: all 0.3s ease;

}


.comment-input:focus {

outline: none;

background-color: var(--gray);

box-shadow: 0 0 0 2px var(--neon-blue);

}


.comment-input::placeholder {

color: #888;

}


.submit-comment {

padding: 0.5rem 1rem;

background-color: transparent;

color: var(--neon-blue);

border: 2px solid var(--neon-blue);

border-radius: 5px;

font-weight: bold;

cursor: pointer;

transition: all 0.3s ease;

}


.submit-comment:hover {

background-color: var(--neon-blue);

color: var(--black);

box-shadow: 0 0 10px var(--neon-blue);

}


/* Loading Animation */

#loading {

display: none;

position: fixed;

top: 0;

left: 0;

width: 100%;

height: 100%;

background-color: rgba(0, 0, 0, 0.7);

z-index: 1001;

justify-content: center;

align-items: center;

flex-direction: column;

}


.spinner {

width: 50px;

height: 50px;

border: 5px solid rgba(255,255,255,.3);

border-radius: 50%;

border-top-color: var(--neon-blue);

animation: spin 1s ease-in-out infinite;

margin-bottom: 1rem;

}


@keyframes spin {

to { transform: rotate(360deg); }

}


/* Message Notification */

.message {

position: fixed;

top: 20px;

left: 50%;

transform: translateX(-50%);

padding: 15px 25px;

border-radius: 8px;

color: var(--white);

font-weight: 500;

font-size: 0.95rem;

text-align: center;

box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

z-index: 1000;

display: none;

animation: fadeIn 0.3s ease-out;

max-width: 90%;

width: max-content;

}


.message.success {

background-color: var(--light-blue);

border: 1px solid var(--neon-blue);

box-shadow: 0 0 15px rgba(102, 240, 255, 0.5);

}


.message.error {

background-color: #f44336;

border: 1px solid #ff6666;

box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);

}


.message.info {

background-color: #2196F3;

color: var(--white);

}


@keyframes fadeIn {

from { opacity: 0; transform: translate(-50%, -20px); }

to { opacity: 1; transform: translate(-50%, 0); }

}

/* Comments Display Section */

.comments-section {

margin: 1.5rem 0;

padding: 1rem 0;

border-top: 1px solid rgba(102, 240, 255, 0.2);

border-bottom: 1px solid rgba(102, 240, 255, 0.2);

}

.comments-section h4 {

color: var(--neon-blue);

margin-bottom: 1rem;

font-size: 0.95rem;

}

.comment-thread {

margin-bottom: 1.2rem;

}

.comment {

display: flex;

gap: 0.8rem;

margin-bottom: 0.5rem;

padding: 0.8rem;

border-radius: 8px;

background-color: rgba(102, 240, 255, 0.03);

transition: all 0.3s ease;

}

.comment:hover {

background-color: rgba(102, 240, 255, 0.08);

}

.comment.child-comment {

margin-left: 2rem;

background-color: rgba(102, 240, 255, 0.05);

border-left: 2px solid var(--neon-blue);

}

.comment-profile-pic {
width: 36px;
height: 36px;
min-width: 36px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
cursor: pointer;
border: 1px solid var(--neon-blue);
}

.comment-content {

flex: 1;

}

.comment-header {

display: flex;

align-items: center;

gap: 0.5rem;

margin-bottom: 0.3rem;

}

.comment-header strong {

color: var(--white);

font-size: 0.9rem;

cursor: pointer;

}

.comment-header strong:hover {

color: var(--neon-blue);

text-decoration: underline;

}

.comment-header small {

color: #888;

font-size: 0.75rem;

}

.comment-content p {

color: var(--white);

font-size: 0.9rem;

margin: 0.3rem 0;

line-height: 1.4;

word-wrap: break-word;

}

.reply-to-comment-btn {

background: none;

border: none;

color: var(--neon-blue);

font-size: 0.8rem;

cursor: pointer;

padding: 0.3rem 0.6rem;

margin-top: 0.3rem;

transition: all 0.3s ease;

}

.reply-to-comment-btn:hover {

color: var(--white);

text-shadow: 0 0 8px var(--neon-blue);

}

.edit-comment-btn,
.delete-comment-btn {
  background: none;
  border: none;
  color: var(--neon-blue);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
}

.delete-comment-btn {
  color: #ff6666;
}

.edit-comment-btn:hover {
  color: var(--white);
  text-shadow: 0 0 8px var(--neon-blue);
}

.delete-comment-btn:hover {
  color: #ffd1d1;
  text-shadow: 0 0 8px rgba(255, 102, 102, 0.7);
}

.comment-edit-box {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.comment-edit-input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 8px;
  background-color: var(--light-gray);
  color: var(--white);
}

.comment-edit-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--neon-blue);
}

.comment-edit-box button {
  background-color: transparent;
  color: var(--neon-blue);
  border: 1px solid rgba(102, 240, 255, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-edit-box button:hover {
  background: rgba(102, 240, 255, 0.12);
  box-shadow: 0 0 10px rgba(102, 240, 255, 0.25);
}

.child-comments {

margin-top: 0.8rem;

}

.no-comments {

color: #aaa;

text-align: center;

padding: 1rem;

font-size: 0.9rem;

}

/* Reply Input Section */

.reply-input-section {

margin: 1rem 0;

padding: 1rem;

background-color: rgba(102, 240, 255, 0.05);

border: 1px solid rgba(102, 240, 255, 0.2);

border-radius: 8px;

}

.add-reply {

display: flex;

gap: 0.5rem;

}

.reply-input-field {

flex: 1;

padding: 0.7rem;

border: 1px solid var(--neon-blue);

border-radius: 5px;

background-color: var(--light-gray);

color: var(--white);

font-size: 0.9rem;

transition: all 0.3s ease;

}

.reply-input-field:focus {

outline: none;

background-color: var(--gray);

box-shadow: 0 0 0 2px rgba(102, 240, 255, 0.3);

}

.reply-input-field::placeholder {

color: #888;

}

.submit-reply-btn,

.cancel-reply-btn {

padding: 0.7rem 1.2rem;

border: none;

border-radius: 5px;

font-weight: 600;

font-size: 0.85rem;

cursor: pointer;

transition: all 0.3s ease;

}

.submit-reply-btn {

background-color: var(--neon-blue);

color: var(--black);

}

.submit-reply-btn:hover {

box-shadow: 0 0 10px var(--neon-blue);

transform: scale(1.05);

}

.cancel-reply-btn {

background-color: transparent;

color: var(--neon-blue);

border: 1px solid var(--neon-blue);

}

.cancel-reply-btn:hover {

background-color: rgba(102, 240, 255, 0.1);

}

/* Post Modal Styles */

.post-modal {

display: none;

position: fixed;

top: 0;

left: 0;

width: 100%;

height: 100%;

background-color: rgba(0, 0, 0, 0.7);

z-index: 2000;

justify-content: center;

align-items: center;

animation: fadeIn 0.3s ease-out;

}

.post-modal[style*="display: block"] {

display: flex !important;

}

.post-modal-content {

background-color: var(--gray);

border-radius: 10px;

border: 2px solid var(--neon-blue);

box-shadow: 0 0 20px rgba(102, 240, 255, 0.5);

max-width: 600px;

width: 90%;

max-height: 80vh;

overflow-y: auto;

padding: 2rem;

position: relative;

animation: modalSlideIn 0.3s ease-out;

}

@keyframes modalSlideIn {

from {

opacity: 0;

transform: translateY(-50px);

}

to {

opacity: 1;

transform: translateY(0);

}

}

.close-modal {

position: absolute;

top: 10px;

right: 10px;

background: none;

border: none;

color: var(--neon-blue);

font-size: 2rem;

cursor: pointer;

transition: all 0.3s ease;

padding: 0;

width: 40px;

height: 40px;

display: flex;

align-items: center;

justify-content: center;

}

.close-modal:hover {

color: var(--white);

transform: scale(1.2);

}

.modal-post {

margin-bottom: 2rem;

}

.reply-section {

padding-top: 1.5rem;

border-top: 1px solid rgba(102, 240, 255, 0.2);

}

.reply-section h4 {

color: var(--neon-blue);

margin-bottom: 1rem;

font-size: 0.9rem;

}

/* Responsive modal for mobile */

@media (max-width: 768px) {

.post-modal-content {

max-width: 95%;

padding: 1.5rem;

}

.modal-post {

padding-bottom: 1rem;

}

.comment {

padding: 0.6rem;

}

.comment.child-comment {

margin-left: 1rem;

}

.add-reply {

flex-direction: column;

gap: 0.5rem;

}

.submit-reply-btn,

.cancel-reply-btn {

width: 100%;

}

.reply-input-field {

width: 100%;

}

}

/* สำหรับหน้าจอขนาดกลาง (แท็บเล็ต) */
@media (max-width: 1024px) {

  
  .main-header {
    padding: 1rem;
  }
  
  .logo img {
    width: 180px;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
}

/* สำหรับหน้าจอขนาดเล็ก (แท็บเล็ตแนวตั้ง) */
@media (max-width: 768px) {
  
  
  
.main-content {

padding-top: 6rem;

}

.post {

padding: 1.2rem;

}

.post-profile-pic {

width: 40px;

height: 40px;

}

}

/* สำหรับหน้าจอขนาดเล็กมาก (โทรศัพท์มือถือ) */
@media (max-width: 480px) {
 
.post {

padding: 1rem;

}

.comment {

flex-direction: column;

gap: 0.5rem;

}

.add-comment {

flex-direction: column;

}

.submit-comment {

width: 100%;

}
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo img {
    width: 160px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .main-nav a {
    padding: 8px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 140px;
  }
  
  .main-nav ul {
    gap: 0.5rem;
  }
  
  .main-nav a {
    padding: 6px 8px;
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 140px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 150px;
  }
}
