body {
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/*home section design -------------------------*/
.header {
    background-color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.talk {
    color: #38E078;
}

.business {
    color: #000;
}

.settings-icon {
    font-size: 24px;
    color: #000;
}


.home-content {
    padding: 15px;
    padding-bottom: 70px; /* Add padding to avoid footer overlap */
}

.post-container {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
}


.post-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    font-size: 16px;
}

.post-meta {
    font-size: 12px;
    color: #52946B;
}

.post-meta .date {
    margin-right: 10px;
}

.post-text {
    margin: 10px 0;
    font-size: 14px;
}

.post-media img, .post-media video {
    width: 100%;
    border-radius: 10px;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.post-actions i {
    font-size: 20px;
    cursor: pointer;
    color: #52946B;

}

.like-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-icon {
    font-size: 20px;
    cursor: pointer;
    color: #52946B;
    transition: color 0.3s;
}

.like-icon.liked {
    color: #ff0000;
}

.like-count {
    font-size: 16px;
    color: #52946B;
}


/*animations*/
/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

/* Slide In from Left Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-in-out forwards;
}

/* Slide In from Right Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-in-out forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-in {
    animation: zoomIn 1s ease-in-out forwards;
}

/* Slide In from Bottom Animation */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-bottom {
    animation: slideInBottom 1s ease-in-out forwards;
}

/* Slide In from Top Animation */
@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-top {
    animation: slideInTop 1s ease-in-out forwards;
}






/*profilee page section design ------------------------------------------*/
/* Profile Header */
.pheader {
    background-color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.back-icon {
    font-size: 24px;
    color: black;
    cursor: pointer;
}

.profile-title {
    font-size: 20px;
    color: black;
    text-align: center;
    flex-grow: 1;
}

/* User Info Section */
.puser-info {
    display: flex;
    align-items: center;
    padding: 80px 20px 20px; /* Add padding to accommodate fixed header */
    background-color: #f9f9f9;
}

.profile-pic-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.pprofile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex-grow: 1;
}

.pusername {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.puser-meta {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.pfollow-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: #38E078;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Stats Section */
.pstats-section {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: white;
}

.pstat-box {
    text-align: center;
}

.pstat-count {
    font-size: 20px;
    font-weight: bold;
    color: black;
}

.pstat-label {
    font-size: 14px;
    color: #888;
}

/* User Posts Section */
.puser-posts {
    padding: 20px;
    background-color: white;
}

.post-heading {
    font-size: 18px;
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    text-align: center;
}

.post-divider {
    border: 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Post Container */
.ppost-container {
    margin-bottom: 20px;
}

.ppost-media img, .ppost-media video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ppost-info {
    margin-bottom: 10px;
}

.ppost-title {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.ppost-meta {
    font-size: 14px;
    color: #52946B;
    margin-top: 5px;
}

.ppost-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.ppost-actions i {
    font-size: 18px;
    margin-right: 15px;
    cursor: pointer;
    color: #52946B;
}



/*----------post sections ---------------------------------------*/


.job-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 96%;
    margin: auto;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input, textarea {
    width: 100%;
    height: 60px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background-color: #F5F5F5;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    height: 140px;
}

.add-photos {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.add-photos-icon{
    padding: 15px;
    background-color: #F5F5F5;
    border-radius: 10px;
}

.add-photos-icon, .add-photos-text, .add-photos-arrow {
    margin-right: 16px;
}

.add-photos-text {
    flex-grow: 1;
}


.submit-button {
    background-color: #38E078;
    width: 97%;
    margin: auto;
    margin-left: 5px;
    border: none;
    border-radius: 10px;
    padding: 17px 24px;
    cursor: not-allowed;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-top: 100px;
    color: black;
}

.disabled {
    opacity: 0.5;
    cursor: pointer;
} 

.footer-padding {
    height: 80px; /* Adjust based on the height of the fixed button */
}



/*------------chat lust sections----------------------*/
/* Chat Header */
.cheader {
    background-color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.message-title {
    font-size: 20px;
    color: black;
    text-align: center;
    flex-grow: 1;
}

.chat-pen-icon {
    font-size: 20px;
    color: black;
    cursor: pointer;
}

/* Search Container */
.csearch-container {
    margin-top: 20px; /* Offset for fixed header */
    padding: 10px;
    background-color: white;
    position: relative;
    display: flex;
    align-items: center;
  
}

.search-icon {
    font-size: 20px;
    color: black;
    cursor: pointer;
}

.csearch-input {
    width: 0;
    height: 40px;
    margin-left: 10px;
    padding: 0;
    border: 1px solid #52946B;
    outline: none;
    transition: width 0.3s ease;
    background-color: transparent;
    color: #52946B;
}

.csearch-container.active .csearch-input {
    width: 100%;
    padding: 5px 10px;
    background-color: #f9f9f9;
    border-radius: 20px;
}

/* Chat List */
.cchat-list {
    padding: 10px;
    background-color: white;
    margin-top: 10px;
}

.cchat-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cchat-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.cchat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cchat-info {
    flex-grow: 1;
}

.cchat-name {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.cchat-message {
    font-size: 14px;
    color: #52946B;
    margin-top: 3px;
}

.cchat-time {
    font-size: 12px;
    color: #52946B;
    text-align: right;
}


/*skeleton animation design */
/* Skeleton Loader */
/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  border-radius: 8px;
}

/* Title skeleton (centered) */
.skeleton-title {
  height: 24px;
  width: 60%;
  margin: 0 auto 20px;
}

/* Card layout container with dark background (optional) */
.skeleton-card {
  background-color: #222121; /* Your dark card style */
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* Skeleton content lines inside card */
.skeleton-line {
  height: 12px;
  width: 80%;
  margin-bottom: 0.75rem;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.6s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
