* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f7f8ff;
    color: #101935;
}

a {
    text-decoration: none;
}

.landing,
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f7ff, #eef5ff, #f6edff);
}

.glass-card,
.auth-card,
.glass-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(120, 80, 255, 0.15);
    box-shadow: 0 20px 60px rgba(90, 60, 200, 0.12);
    border-radius: 24px;
}

.glass-card {
    width: 600px;
    padding: 60px;
    text-align: center;
}

.glass-card h1 {
    font-size: 48px;
    color: #121832;
}

.glass-card p {
    margin: 20px 0;
    color: #536079;
}

.btn-group {
    margin-top: 30px;
}

.btn,
.btn-outline,
.auth-card button,
.post-box button,
.create-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: white;
    color: #7b3cff;
    border: 1px solid #7b3cff;
}

.auth-card {
    width: 420px;
    padding: 40px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 10px;
}

.auth-card p {
    text-align: center;
    color: #65708a;
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid #dce2f2;
    border-radius: 12px;
    outline: none;
}

.auth-card button {
    width: 100%;
    font-size: 16px;
}

.error {
    background: #ffe5e5;
    color: #d00000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #edf0f7;
    padding: 30px;
    position: fixed;
    height: 100vh;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
}

.logo span {
    color: #7b3cff;
}

.sidebar nav a {
    display: block;
    padding: 14px;
    margin-bottom: 10px;
    color: #18213d;
    border-radius: 12px;
}

.sidebar nav a:hover {
    background: #f0eaff;
    color: #7b3cff;
}

.create-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.user-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: #f8f7ff;
    padding: 15px;
    border-radius: 16px;
}

.user-box small {
    display: block;
    color: #68728c;
}

.main-content {
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.topbar input {
    width: 60%;
    padding: 16px;
    border-radius: 20px;
    border: none;
    background: #eef1f8;
}

.logout {
    color: #7b3cff;
}

.post-box {
    padding: 25px;
    margin-bottom: 25px;
}

.post-box textarea {
    width: 100%;
    height: 110px;
    border: 1px solid #e0e5f0;
    border-radius: 16px;
    padding: 18px;
    resize: none;
    outline: none;
    margin-bottom: 15px;
}

.feed-card {
    padding: 25px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .topbar input {
        width: 70%;
    }

    .glass-card,
    .auth-card {
        width: 90%;
        padding: 30px;
    }

    .glass-card h1 {
        font-size: 36px;
    }
.post-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.post-content {
    font-size: 15px;
    line-height: 1.6;
    color: #303a55;
    margin-bottom: 16px;
}

.post-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.post-actions {
    display: flex;
    gap: 25px;
    padding: 12px 0;
    border-top: 1px solid #edf0f7;
    border-bottom: 1px solid #edf0f7;
    margin-bottom: 15px;
}

.post-actions a,
.post-actions span {
    color: #6b35ff;
    font-weight: 600;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-form input {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid #dde3f3;
    outline: none;
}

.comment-form button {
    padding: 13px 20px;
    border: none;
    border-radius: 14px;
    background: #7b3cff;
    color: #fff;
    cursor: pointer;
}

.comment {
    background: #f6f4ff;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    color: #34405f;
}

.post-box input[type="file"] {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .comment-form {
        flex-direction: column;
    }

    .post-actions {
        justify-content: space-between;
        gap: 10px;
    }

    .post-image {
        max-height: 300px;
    }
    .profile-header {
    overflow: hidden;
    margin-bottom: 30px;
}

.cover-area {
    height: 220px;
    background: linear-gradient(135deg, #e7dcff, #dceaff, #fff);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
}

.cover-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px 25px;
    margin-top: -45px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    border: 5px solid white;
    color: white;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

.profile-text h2 {
    margin-bottom: 5px;
}

.profile-text p {
    color: #65708a;
    margin-bottom: 6px;
}

.profile-text .bio {
    color: #303a55;
}

.profile-action {
    margin-left: auto;
}

.btn-small {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: white;
}

.profile-stats {
    display: flex;
    gap: 40px;
    padding: 0 28px 28px;
}

.profile-stats div {
    background: #f8f7ff;
    padding: 16px 28px;
    border-radius: 18px;
    text-align: center;
}

.profile-stats strong {
    display: block;
    font-size: 22px;
    color: #121832;
}

.profile-stats span {
    color: #65708a;
    font-size: 14px;
}

.section-title {
    margin-bottom: 20px;
    color: #121832;
}

.edit-profile-card {
    max-width: 700px;
    padding: 35px;
}

.edit-profile-card h2 {
    margin-bottom: 8px;
}

.edit-profile-card p {
    color: #65708a;
    margin-bottom: 25px;
}

.edit-profile-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #303a55;
}

.edit-profile-card input,
.edit-profile-card textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dde3f3;
    border-radius: 14px;
    outline: none;
    margin-bottom: 18px;
    background: white;
}

.edit-profile-card textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-profile-card button {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -55px;
    }

    .profile-action {
        margin-left: 0;
    }

    .profile-stats {
        gap: 10px;
        padding: 0 18px 22px;
    }

    .profile-stats div {
        flex: 1;
        padding: 14px 8px;
    }

    .cover-area {
        height: 160px;
    }

    .edit-profile-card {
        padding: 24px;
    }
.explore-header {
    padding: 30px;
    margin-bottom: 30px;
}

.explore-header h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.explore-header p {
    color: #65708a;
    margin-bottom: 22px;
}

.explore-search {
    display: flex;
    gap: 12px;
}

.explore-search input {
    flex: 1;
    padding: 15px;
    border: 1px solid #dde3f3;
    border-radius: 16px;
    outline: none;
}

.explore-search button {
    padding: 15px 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: white;
    cursor: pointer;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.user-card {
    padding: 25px;
    text-align: center;
}

.user-card-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b35ff, #2f7bff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    overflow: hidden;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card h4 {
    margin-bottom: 5px;
}

.user-card p {
    color: #65708a;
    margin-bottom: 18px;
}

@media (max-width: 992px) {
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .explore-search {
        flex-direction: column;
    }

    .user-grid {
        grid-template-columns: 1fr;
    }

    .explore-header {
        padding: 22px;
    }
.mobile-navbar{
    display:none;
}

@media(max-width:768px){

    .sidebar{
        display:none;
    }

    .mobile-navbar{
        position:fixed;
        bottom:15px;
        left:15px;
        right:15px;

        display:flex;
        justify-content:space-around;
        align-items:center;

        background:rgba(255,255,255,.85);
        backdrop-filter:blur(25px);

        border-radius:24px;

        padding:14px;

        box-shadow:0 15px 40px rgba(0,0,0,.12);

        z-index:9999;
    }

    .mobile-navbar a{
        text-decoration:none;
        font-size:24px;
    }

    .center-btn{
        width:58px;
        height:58px;

        border-radius:50%;

        background:linear-gradient(
            135deg,
            #8b35ff,
            #2f7bff
        );

        color:white;

        display:flex;
        justify-content:center;
        align-items:center;

        margin-top:-35px;
    }

    .main-content{
        padding-bottom:100px;
    }
}