:root {
    --bg-color: #f0f2f5;
    /* BACKGROUND COLOR */
    --white-color: #ffffff;
    /* WHITE COLOR */
    --text-dark: #050505;
    /* BLACK TEXT COLOR */
    --text-light: #65676b;
    /* LIGHT BROWN TEXT COLOR */
    --blue-color: #1877f2;
    /* BLUE FACEBOOK COLOR */
    --hover-color: #e4e6eb;
    /* HOVER COLOR */
    --border-color: #ced0d4;
    /* BORDERS COLOR */
    --green-color: #42b72a;
    /* ONLINE DOT COLOR */
    --red-color: #e41e3f;
    /* NOTIFICATION RED COLOR */
    --shadow-light: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* LIGHT SHADOW */
}

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* PROFILE PHOTOS SAARI  */


.profile-pic {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.small-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.small-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* TOP NAVBAR  */

.top-bar {
    background-color: var(--white-color);
    padding: 0 16px;
    height: 56px;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-part {
    width: 300px;
}

.fb-icon {
    color: var(--blue-color);
    font-size: 2rem !important;
}

.search-area {
    position: relative;
}

.search-small-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 2;
}

.search-box {
    background-color: var(--bg-color);
    border: none;
    border-radius: 50px;
    padding: 10px 16px 10px 40px;
    font-size: 0.95rem;
    width: 240px;
    transition: all 0.3s ease;
}

.search-box:focus {
    width: 240px;
    outline: none;
    background-color: #e4e6eb;
    box-shadow: none;
}

/* PLACEHOLDER KA COLOR */
.search-box::placeholder {
    color: var(--text-light);
    font-size: 0.95rem;
}


/* HOME, REEELS, STORE WALA AREA */

.middle-buttons {
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* MENU BUTTONS */
.menu-btn {
    height: 100%;
    width: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.menu-btn:hover {
    background-color: var(--bg-color);
    border-radius: 8px;
}

.active-menu {
    color: var(--blue-color);
    border-bottom: 3px solid var(--blue-color);
    border-radius: 0;
}

.number-badge {
    position: absolute;
    top: 10px;
    right: 25px;
    background-color: var(--red-color);
    color: white;
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 50%;
}


.circle-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background-color: var(--hover-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.circle-icon:hover {
    background-color: rgba(0, 0, 0, 0.2);
}


/* LEFT SIDEBAR  */

.left-menu {
    padding-right: 8px;
}

.left-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2px;
}

.left-item:hover {
    background-color: var(--hover-color);
}

.icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 1.2rem;
}

.blue-bg {
    color: #1877f2;
    background: #e7f3ff;
}

.purple-bg {
    color: #a033ff;
    background: #f3e5ff;
}

.gray-bg {
    background: #e4e6eb;
    border-radius: 8px;
}

.shortcut-section {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 10px;
}

.heading-small {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 10px 8px;
}

/* CENTER FEED - JAHAN POSTS HOTI HN  */

.main-body {
    padding-top: 20px;
}

/* POST BOX -  CENTER POSTING AREA */
.post-box {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

/* POST HEADER */
.post-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.close-icon {
    cursor: pointer;
}

.post-text-area {
    padding: 8px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hashtag {
    color: var(--text-light);
}

.post-img-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.post-img-box img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.post-stats-line {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.reactions {
    display: flex;
    align-items: center;
}

.reaction {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 10px;
    margin-right: -6px;
    border: 2px solid white;
}

.like-bg {
    background: #1877f2;
}

.love-bg {
    background: #e41e3f;
}

/* POST BUTTONS - LIKE, COMMINTS, SHARE */
.post-buttons {
    padding: 4px 16px;
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.action {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.action:hover {
    background-color: var(--hover-color);
}

.action i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* OPTION PR HOVER EFFECT CREATE POST K LIYE */
.option-hover {
    transition: background-color 0.2s ease;
}

.option-hover:hover {
    background-color: #f0f2f5;
}

.option-hover:active {
    background-color: #e4e6eb;
}

STORIES SECTION .stories-scroll {
    scrollbar-width: none;

}

/* Story card */
.story-card {
    height: 190px !important;
    width: 110px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-light);
    position: relative;
}

.story-create {
    height: 190px !important;
    width: 110px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-light);
}

.story-profile {
    height: 37px;
    width: 37px;
    border: 4px solid var(--blue-color);
    border-radius: 50%;
    margin: 10px 0px 0px 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.story-name {
    color: white;
    font-weight: 500;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px black;
}

.story-top-img {
    height: 75%;
    width: 100%;
    object-fit: cover;
}

.story-bottom-part {
    height: 25%;
    position: relative;
    background-color: white;
}

.plus-circle {
    width: 30px;
    height: 30px;
    background: var(--blue-color);
    border-radius: 50%;
    border: 3px solid white;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.story-label {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* DIFFERENT STORYS BACKGROUND */
.story-one {
    background-image: url('images/sstory.jpg');
    background-size: cover;
    background-position: center;
}

.story-two {
    background-image: url('images/story3.jpg');
    background-size: cover;
    background-position: center;
}

.story-three {
    background-image: url('images/gstory1.jpg');
    background-size: cover;
    background-position: center;
}

.story-four {
    background-image: url('images/story2.jpg');
    background-size: cover;
    background-position: center;
}

.story-five {
    background-image: url('images/gstory2.jpg');
    background-size: cover;
    background-position: center;
}


/* RIGHT SIDEBAR */

.right-column {
    padding-left: 8px;
}

.side-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-light);
}

.no-bg {
    border: none;
    box-shadow: none;
    background: transparent;
}

.ad-img-box {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-title {
    font-size: 0.9rem;
}

.ad-link {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.contact-row {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.contact-row:hover {
    background-color: var(--hover-color);
}


.contact-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.contact-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: var(--green-color);
    border: 2px solid var(--white-color);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.contact-person {
    font-weight: 500;
}

.icons-right {
    display: flex;
    gap: 12px;
    color: var(--text-light);
}

.line-spacer {
    border-color: var(--border-color);
    margin: 8px 0;
}

/* YAHAN SCREEN SIZE K HISAAB SE CHANGES KREN HN */

/* JAB sSCREEN 1100px SE CHOTI HO */
@media (max-width: 1100px) {
    .search-box {
        width: 40px;
        padding: 10px;
        border-radius: 50%;
        background: transparent;
    }

    .search-box:focus {
        width: 200px;
        background-color: #e4e6eb;
        padding-left: 40px;
        border-radius: 50px;
    }

    .search-box::placeholder {
        color: transparent;
    }
}

@media (max-width: 900px) {
    .right-column {
        display: none;
    }

    .middle-buttons {
        margin-left: 0;
    }
}


/* MOBILE RESPONSIVE - CHHOTI SCREEN K LIYE */


/* 768px SE CHOTI SCREEN */
@media (max-width: 768px) {
    .left-menu {
        display: none;
    }

    .post-box {
        margin-bottom: 10px;
    }

    .post-box .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    /* Profile + input wala hissa */
    .post-box .d-flex.align-items-center.flex-grow-1 {
        width: 100% !important;
    }

    .post-box input {
        max-width: 100% !important;
        width: 100%;
    }

    /* Right side options */
    .post-box .d-flex.align-items-center.gap-3.ms-3 {
        margin-left: 0 !important;
        width: 100%;
        justify-content: space-around;
        gap: 4px !important;
    }

    .post-box .d-flex.align-items-center.option-hover {
        padding: 6px 8px !important;
    }

    .stories-scroll {
        padding-bottom: 8px;
        gap: 6px;
    }

    .story-card,
    .story-create {
        height: 170px !important;
        width: 100px !important;
    }

    .story-name {
        font-size: 0.7rem;
        bottom: 6px;
        left: 6px;
    }

    .story-profile {
        height: 32px;
        width: 32px;
        border-width: 3px;
        margin: 6px 0px 0px 6px;
    }

    .plus-circle {
        width: 26px;
        height: 26px;
        top: -13px;
    }

    .story-label {
        font-size: 0.7rem;
        margin-top: 8px;
    }

    .post-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }

    .action {
        font-size: 0.8rem;
        padding: 8px 4px;
    }

    .action i {
        margin-right: 4px;
        font-size: 1rem;
    }

    .post-stats-line {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* BAHUT CHHOTI SCREEN K LIYE (480px se neeche) */

@media (max-width: 480px) {

    .story-card,
    .story-create {
        height: 150px !important;
        width: 90px !important;
    }

    .story-name {
        font-size: 0.65rem;
    }

    .story-profile {
        height: 28px;
        width: 28px;
        border-width: 2.5px;
    }

    .plus-circle {
        width: 24px;
        height: 24px;
        top: -12px;
    }

    .story-label {
        font-size: 0.65rem;
        margin-top: 6px;
    }

    /* TOP NAVBAR MOBILE K LIYE */

    .left-part {
        width: auto;
    }

    .search-box {
        width: 36px;
        padding: 8px;
    }

    .search-box:focus {
        width: 160px;
    }

    .circle-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .profile-pic {
        width: 36px;
        height: 36px;
    }
}


/* TABLET KE LIYE  */

@media (min-width: 769px) and (max-width: 992px) {
    .post-box input {
        max-width: 350px !important;
    }

    .story-card,
    .story-create {
        height: 180px !important;
        width: 105px !important;
    }
}


/* STORY BACKGROUNDS  */

.story-one {
    background-image: url('images/sstory.jpg');
    background-size: cover;
    background-position: center;
}

.story-two {
    background-image: url('images/story3.jpg');
    background-size: cover;
    background-position: center;
}

.story-three {
    background-image: url('images/gstory1.jpg');
    background-size: cover;
    background-position: center;
}

.story-four {
    background-image: url('images/story2.jpg');
    background-size: cover;
    background-position: center;
}

.story-five {
    background-image: url('images/gstory2.jpg');
    background-size: cover;
    background-position: center;
}