* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    margin: 0;
}

/* HEADER */
.header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.logo h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 500;
}

/* AVATAR */
.avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.avatar-btn:hover {
    transform: scale(1.08);
}

/* ACCIONES */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.search {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    outline: none;
}

.btn-action {
    padding: 9px 18px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-action:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

/* POST CARD */
.post-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.post-card:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.08);
}

.img {
    height: 160px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
}

.tag {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.post-body {
    padding: 12px 14px;
}

.post-content {
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.5;
}

.post-author {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 10px;
}

.post-footer {
    display: flex;
    align-items: center;
}

.like-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #f87171;
}

.like-btn.liked {
    color: #f87171;
}

.logo-img {
    height: 48px;
    width: auto;
    
}

/* RESPONSIVIDAD */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .header {
        padding: 15px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .header-actions {
        gap: 8px;
    }

    .search-wrap {
        min-width: 100%;
    }
}