* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* =====================================================================   SIGNUP PAGE STYLING   ===================================================================== */

.main-container {
    display: flex;
    height: 100vh;
    width: 100%;
    animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(1.06);
    }

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

.left-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

.logo img {
    width: 20%;
}

.signup-pg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.input-grp {
    margin-bottom: 15px;
}

.input-grp label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.input-grp input[type="text"],
.input-grp input[type="email"],
.input-grp input[type="password"],
.input-grp input[type="number"] {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-grp input::placeholder {
    color: #979595ec;
}

.input-grp input:focus {
    border-color: #4f46e5;
}

.password-input {
    position: relative;
}

.toggle-password {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.btn-signup {
    background-color: #4f46e5;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.btn-signup:hover {
    background-color: #4e46e5e8;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e1e1e1;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}


.divider span {
    background-color: #fff;
    padding: 0 10px;
    color: #aaa;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-social:hover {
    background-color: #f8f9fa;
}

.login-link {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.login-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-section,
    .right-section {
        flex: none;
        width: 100%;
        padding: 40px 20px;
    }

    .images-container {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .img-back {
        width: 90%;
        position: relative;
    }
}

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

/* Swal Customization */

.glass-alert {
    backdrop-filter: blur(12px);
    border-radius: 20px;
}
























/* =====================================================================   HOME PAGE STYLING   ===================================================================== */

/* GLOBAL SETTINGS */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.card-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-control:focus {
    box-shadow: none;
    border: 1px solid var(--primary);
    background-color: #fff !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block !important;
        opacity: 0;
        pointer-events: none;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(n+7) {
    animation-delay: 0.7s;
}

.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.btn-primary.rounded-pill {
    animation: softPulse 2s infinite;
}

.navbar-brand,
.nav-item,
.navbar .d-flex {
    opacity: 0;
    animation: slideDownNav 0.8s ease forwards;
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.navbar-brand {
    animation-delay: 0.1s;
}

.nav-item:nth-child(1) {
    animation-delay: 0.2s;
}

/* Home */
.nav-item:nth-child(2) {
    animation-delay: 0.3s;
}

/* My Posts */
.nav-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* Blog */
.nav-item:nth-child(4) {
    animation-delay: 0.5s;
}

/* About */
.nav-item:nth-child(5) {
    animation-delay: 0.6s;
}

/* Contact */

.navbar .d-flex {
    animation-delay: 0.8s;
}


@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh !important;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;

        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;

        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
            opacity 0.8s ease,
            visibility 0.8s;

        display: block !important;
    }

    .navbar-collapse.collapsing {
        height: 100vh !important;
        transform: translateY(-100%);
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 9999;

        transition: transform 0.8s ease, opacity 0.8s ease;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px); /* Glass effect */
}

.nav-link {
    font-size: 15px;
    color: #555 !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 50%;
}



























/* ================= PROFILE BADGE & TOOLTIP STYLING ================= */
.profile-wrapper {
    position: relative;
    display: inline-block;
}

.camera-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#profile-trigger:hover .camera-badge {
    transform: scale(1.1);
}

.profile-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    font-size: 11px;
    position: absolute;
    z-index: 1000;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}

.profile-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

#profile-trigger:hover .profile-tooltip {
    visibility: visible;
    opacity: 1;
    top: 115%;
}






























/* =====================================================================   DETAIL PAGE STYLING   ===================================================================== */

        body {
            background-color: #f9fafb;
        }

        .blog-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            margin-top: 100px;
            margin-bottom: 50px;
        }

        .back-btn {
            text-decoration: none;
            color: #64748b;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            transition: 0.2s;
        }

        .back-btn:hover {
            color: #4f46e5;
            transform: translateX(-3px);
        }

        .post-title {
            font-family: 'Inter', sans-serif;
            font-weight: 800;
            font-size: 2.5rem;
            color: #111827;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 30px;
            color: #6b7280;
            font-size: 0.95rem;
        }

        .post-meta img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
        }

        .post-image-container {
            width: 100%;
            height: 400px;
            overflow: hidden;
            border-radius: 12px;
            margin-bottom: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .post-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .post-image-container:hover img {
            transform: scale(1.02);
        }

        .post-content {
            font-family: 'Merriweather', serif;
            font-size: 1.15rem;
            line-height: 1.8;
            color: #374151;
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word;
            white-space: pre-wrap;
        }