@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); 

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
.glass-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
/* 3D Glass Container */
.profile-sidebar-card {
    position: sticky;
    top: 100px;
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    margin: auto;
}

.profile-avatar{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #3b82f6;
    box-shadow:0 0 25px rgba(59,130,246,.4);
}
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
}
.upload-box{
    background-color: #f5f5f5;
    border: 2px dashed #0d1b6b;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    text-align: center;
}

.file-upload{
    width: 100%;
}

.file-upload::file-selector-button{
    background: #0d1b6b;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.file-upload::file-selector-button:hover{
    background: #28a745;
}

.glass-card:hover {
     transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
    border-color: var(--accent);
}
.post-card{
    margin-bottom:20px;
}

.post-card img{
    max-width:100%;
}

.post-card button:hover{
    color:#3b82f6 !important;
}
/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.5px; }
p { color: var(--text-secondary); line-height: 1.6; }

/* Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    width: 100%;
    margin-bottom: 1rem;
    outline: none;
   
}

.glass-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.search-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px;
    text-decoration:none;
    color:#111827;
    border-bottom:1px solid #eee;
}

.search-item:hover{
    background:#f8fafc;
}

.search-item img{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #e5e7eb;
}

.search-item .name{
    font-weight:600;
    font-size:15px;
}

.search-item .info{
    font-size:12px;
    color:#64748b;
}
.create-post-card{
padding:20px;
margin-bottom:25px;
}

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

.create-post-avatar{
width:55px;
height:55px;
border-radius:50%;
object-fit:cover;
border:2px solid var(--accent);
}

.visibility-select{
background:rgba(255,255,255,.08);
border:1px solid var(--glass-border);
color:#fff;
padding:6px 12px;
border-radius:10px;
margin-top:5px;
cursor:pointer;
}

.post-textarea{
width:100%;
background:transparent;
border:none;
resize:none;
min-height:120px;
font-size:22px;
color:#fff;
outline:none;
margin-bottom:20px;
}

.post-textarea::placeholder{
color:#94a3b8;
}

.post-tools{
display:flex;
justify-content:space-around;
align-items:center;
padding:15px;
border-top:1px solid var(--glass-border);
border-bottom:1px solid var(--glass-border);
margin-bottom:15px;
}

.tool-btn{
display:flex;
align-items:center;
gap:8px;
cursor:pointer;
background:none;
border:none;
color:#fff;
font-size:15px;
}

.tool-btn:hover{
color:var(--accent);
}

.post-submit-btn{
width:100%;
padding:12px;
font-size:16px;
}

#imagePreview{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:15px;
}

#imagePreview img{
width:120px;
height:120px;
object-fit:cover;
border-radius:12px;
border:1px solid var(--glass-border);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-premium:hover {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
    transform: translateY(-3px);
}


/* Feed & Profile Layout */
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
/* ==========================================
   MOBILE RESPONSIVE
========================================== */

img{
    max-width:100%;
    height:auto;
}

.glass-card{
    width:100%;
}
.mobile-menu-btn{
    display:none;
}
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr !important; }

    .profile-sidebar-card {
        position: static;
    }

    .profile-avatar-container {
        width: 100px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 3px solid var(--accent);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .post-card {
        margin-bottom: 1.5rem;
    }

    .badge {
        background: rgba(59, 130, 246, 0.2);
        color: var(--accent);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .mobile-menu-btn{
        display:block;
        background:none;
        border:none;
        color:#fff;
        font-size:30px;
        cursor:pointer;
        position:absolute;
        top:20px;
        right:20px;
    }
}

/* Mobile */
@media screen and (max-width:768px){

    body{
        font-size:14px;
    }

    .glass-card{
        padding:15px;
        border-radius:15px;
    }

    .profile-avatar-container {
        width: 100px;
    }

    .profile-avatar{
        width:100px !important;
        height:100px !important;
    }

    h1{
        font-size:28px;
    }

    h2{
        font-size:24px;
    }

    h3{
        font-size:20px;
    }

    h4{
        font-size:16px;
    }

    p{
        font-size:14px;
    }

    .btn-premium{
        width:100%;
        padding:12px;
        font-size:14px;
    }

    .glass-input{
        padding:12px;
        font-size:14px;
    }

    .main-grid{
        padding:10px;
        gap:10px;
    }

    .badge{
        font-size:12px;
        padding:5px 10px;
    }

    .profile-details{
        width:100%;
    }

    .glass-container{
        width:100%;
    }

    table{
        display:block;
        width:100%;
        overflow-x:auto;
        white-space:nowrap;
    }

}

/* Small Mobile */
@media screen and (max-width:480px){


    .profile-avatar-container {
        width: 85px;
    }

    .profile-avatar{
        width:85px !important;
        height:85px !important;
    }

    .glass-card{
        padding:12px;
    }

    h1{
        font-size:24px;
    }

    h2{
        font-size:20px;
    }

    h3{
        font-size:18px;
    }

    .btn-premium{
        font-size:13px;
        padding:10px;
    }

    .glass-input{
        font-size:13px;
    }

    .badge{
        font-size:11px;
    }

    .main-grid{
        padding:8px;
    }

}
.post-gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:10px;
margin-top:15px;
}

.feed-image{
width:100%;
height:250px;
object-fit:cover;
border-radius:12px;
}
/* Prevent Overflow */
video, iframe, canvas, svg, embed, object {
    max-width: 100%;
}

.main-grid,
.glass-card,
.profile-details,
.glass-container{
    overflow-wrap:break-word;
    word-wrap:break-word;
}

table{
    width:100%;
}

iframe,
video,
embed,
object{
    max-width:100%;
}

/* Global Badge Style */
.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Sticky Sidebar Layout */
aside {
    position: sticky;
    top: 90px;
    align-self: start;
    height: max-content;
}

/* Spotlight & Connections Links */
.spotlight-link {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.spotlight-link:hover {
    color: var(--accent) !important;
}


