/* ========== RESET & ROOT ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Vibrant Palette */
    --bg: #fdf6ff;
    --bg-gradient: linear-gradient(135deg, #fff0f6 0%, #f0f4ff 50%, #f6fff0 100%);
    --card: #ffffff;
    --primary: #ff2e93;
    --primary-light: #ff6fb5;
    --primary-dark: #d6006e;
    --accent: #00d4ff;
    --accent-light: #6ce5ff;
    --accent-dark: #0099cc;
    --purple: #8b2fff;
    --purple-light: #b57aff;
    --yellow: #ffcc00;
    --green: #00e07a;
    --orange: #ff7a00;
    --text: #1a0b2e;
    --text-light: #7a6b8f;
    --border: #f0e6ff;
    --shadow: 0 8px 24px rgba(255, 46, 147, 0.12);
    --shadow-hover: 0 16px 40px rgba(139, 47, 255, 0.2);
    --radius: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    animation: fadeIn 0.8s ease;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 46, 147, 0.4);
    }

    50% {
        box-shadow: 0 0 32px rgba(139, 47, 255, 0.6);
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff2e93, #8b2fff, #00d4ff) 1;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff2e93, #8b2fff, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    animation: gradientShift 4s ease infinite;
}

.logo span {
    -webkit-text-fill-color: #ffcc00;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    width: 340px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 46, 147, 0.15);
    transform: scale(1.02);
}

.search-box i {
    color: var(--primary);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(255, 46, 147, 0.4));
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #ff2e93, #ff7a00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 50px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(255, 46, 147, 0.6);
}

/* ========== LAYOUT ========== */
.container {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 24px;
    max-width: 1300px;
    margin: 28px auto;
    padding: 0 24px;
}

/* ========== LEFT SIDEBAR ========== */
.sidebar-left {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-left ul {
    list-style: none;
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease;
    border: 2px solid var(--border);
}

.sidebar-left li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-left li:hover {
    background: linear-gradient(135deg, #fff0f6, #f0f4ff);
    color: var(--primary);
    transform: translateX(6px);
}

.sidebar-left li.active {
    background: linear-gradient(135deg, #ff2e93, #8b2fff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 46, 147, 0.4);
    transform: translateX(4px);
}

.btn-create {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff2e93, #ff7a00, #ffcc00);
    background-size: 200% auto;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s ease;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 8px 20px rgba(255, 46, 147, 0.35);
}

.btn-create:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px rgba(255, 122, 0, 0.5);
}

/* ========== FEED ========== */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stories */
.stories {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    animation: slideUp 0.6s ease;
}

.stories::-webkit-scrollbar {
    height: 6px;
}

.stories::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff2e93, #8b2fff);
    border-radius: 10px;
}

.story {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.story:hover {
    transform: translateY(-6px) scale(1.05);
}

.story-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 3px;
    background-clip: content-box;
    background-image: linear-gradient(135deg, #ff2e93, #ffcc00, #00d4ff);
    background-origin: border-box;
    box-shadow: 0 0 0 3px transparent, 0 4px 12px rgba(139, 47, 255, 0.2);
    transition: all 0.3s ease;
}

.story:hover .story-circle {
    box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(255, 46, 147, 0.5);
}

.add-story .story-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff, #fff0f6);
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--border);
}

.add-story:hover .story-circle {
    background: linear-gradient(135deg, #ff2e93, #8b2fff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 46, 147, 0.5);
}

.story p {
    font-size: 12px;
    margin-top: 8px;
    color: var(--text-light);
    font-weight: 500;
}

/* Create Post */
.create-post {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideUp 0.7s ease;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.create-post:hover {
    border-color: var(--primary-light);
    box-shadow: 0 12px 28px rgba(255, 46, 147, 0.15);
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ff2e93, #00d4ff);
    padding: 2px;
    background-clip: content-box;
}

.create-post input {
    flex: 1;
    border: none;
    outline: none;
    background: #f7f5fb;
    padding: 12px 18px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: all 0.3s ease;
}

.create-post input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.btn-post {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #00d4ff, #8b2fff);
    background-size: 200% auto;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.35);
}

.btn-post:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 26px rgba(139, 47, 255, 0.5);
}

/* Post Card */
.post {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    animation: slideUp 0.8s ease;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.post-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.post-header span {
    font-size: 12px;
    color: var(--text-light);
}

.more {
    margin-left: auto;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.more:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.post-text {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text);
}

.post-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.post-img:hover {
    transform: scale(1.03);
    filter: saturate(1.2) brightness(1.05);
}

.post-actions {
    display: flex;
    gap: 26px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.post-actions span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-actions span:hover {
    transform: translateY(-3px);
}

.post-actions span:nth-child(1):hover {
    color: #ff2e93;
}

.post-actions span:nth-child(2):hover {
    color: #00d4ff;
}

.post-actions span:nth-child(3):hover {
    color: #00e07a;
}

.post-actions .fa-heart:hover {
    animation: pulse 0.6s ease;
}

/* ========== RIGHT SIDEBAR ========== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    animation: slideUp 0.9s ease;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.15);
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ff2e93, #8b2fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #00d4ff, #ff2e93);
    padding: 2px;
    background-clip: content-box;
}

.suggestion h4 {
    font-size: 14px;
    font-weight: 600;
}

.suggestion span {
    font-size: 12px;
    color: var(--text-light);
}

.suggestion button {
    margin-left: auto;
    padding: 8px 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #fff0f6, #f0f4ff);
    color: var(--primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.suggestion button:hover {
    background: linear-gradient(135deg, #ff2e93, #8b2fff);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(255, 46, 147, 0.4);
}

.trending p {
    font-size: 14px;
    font-weight: 600;
    color: var(--purple);
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px dashed var(--border);
}

.trending p:last-child {
    border-bottom: none;
}

.trending p:hover {
    color: var(--primary);
    transform: translateX(8px);
    padding-left: 6px;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 34px;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(90deg, #ff2e93, #8b2fff, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .sidebar-left {
        display: none;
    }

    .search-box {
        width: 180px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-right {
        gap: 14px;
    }

    .nav-icon {
        font-size: 18px;
    }
}